29 Replies - 597 Views - Last Post: 31 December 2012 - 09:58 PM
#1
Question about objects
Posted 30 December 2012 - 02:30 PM
Replies To: Question about objects
#2
Re: Question about objects
Posted 30 December 2012 - 03:04 PM
#3
Re: Question about objects
Posted 30 December 2012 - 06:28 PM
This post has been edited by blackcompe: 30 December 2012 - 06:39 PM
#4
Re: Question about objects
Posted 30 December 2012 - 09:03 PM
Can this happen across a remote connection?
#5
Re: Question about objects
Posted 31 December 2012 - 07:48 AM
But I wonder how blackcompe would exchange the Object pointer between the Client and the Server even if they run on the same JVM ?
#6
Re: Question about objects
Posted 31 December 2012 - 12:58 PM
Quote
But I wonder how blackcompe would exchange the Object pointer between the Client and the Server even if they run on the same JVM ?
Huh? Client and Server classes running in the same JVM instance, sharing the same memory, can't pass references?
#7
Re: Question about objects
Posted 31 December 2012 - 04:27 PM
#8
Re: Question about objects
Posted 31 December 2012 - 05:38 PM
Quote
Would like to see a code snippet about that
A few lines will do blackcompe
I don't you understand what I said. Note that I never implied anything about sockets being used.
This post has been edited by blackcompe: 31 December 2012 - 07:13 PM
#9
Re: Question about objects
Posted 31 December 2012 - 07:03 PM
Completly false assesment -1 all the way
#10
Re: Question about objects
Posted 31 December 2012 - 07:04 PM
Quote
Completly false assesment -1 all the way
What are you talking about? Nonsense pbl. Complete nonsense!?!?!
#11
Re: Question about objects
Posted 31 December 2012 - 07:08 PM
Show me an example of a Client and a Server using the same JVM and I'll +1 you for the rest of my life
#12
Re: Question about objects
Posted 31 December 2012 - 07:10 PM
blackcompe, on 01 January 2013 - 12:38 AM, said:
Quote
Would like to see a code snippet about that
A few lines will do blackcompe
I don't you understand what I said. This is what I said. Note that I never implied anything about sockets being used.
Where on earth do you get sockets from? He's asking for a code snippet- a small piece of your code. I think it seems perfectly reasonable.
#13
Re: Question about objects
Posted 31 December 2012 - 07:12 PM
Quote
Show me an example of a Client and a Server using the same JVM and I'll +1 you for the rest of my life
But you're mistaken in thinking a client/server architecture can only be applied to networking. It's a general concept. Yes, the OP may have been talking that networking, but he didn't explicitly say it and neither did I. I'm really saying you can pass a message to any object, where the object can modify it without having to pass it back. Interpret it how you want...
This post has been edited by blackcompe: 31 December 2012 - 07:12 PM
#14
Re: Question about objects
Posted 31 December 2012 - 07:17 PM
You claimed that a Client/Server architecture can have Client and a Server running inside the same JVM into which a Client (or a Server) sends to the other one a pointer to an object that the other one can modify... so it will be modified in both application
I asked you to show me an example using a few (preferably) lines of code. You failed on providing this example
#15
Re: Question about objects
Posted 31 December 2012 - 07:18 PM
But in fact, if we need a use case, here's one: at my office, the linux team is replacing desktop linux machines with virtual machines on a server. It's not too hard to imagine a slightly different configuration, in which we return to the original multiuser arrangement that Unix was designed for. In that case, it would be perfectly reasonable to write a chat client for communication on the local machine, and to pass client objects around on that machine. This would work more or less as blackcompe described, and it would be a good design for that purpose.
EDIT: came in a little late, but here's your example, pbl. I think I get +1 forever, no?
This post has been edited by jon.kiparsky: 31 December 2012 - 07:20 PM
|
|

New Topic/Question
Reply



MultiQuote



|