aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes passing object to methods by sockets Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "passing object to methods by sockets" Watch "passing object to methods by sockets" New topic
Author

passing object to methods by sockets

Thomas Paul Bigbee
Ranch Hand

Joined: Jun 28, 2005
Posts: 71
Hi all;
My question is this...

I know how to pass serialized objects over a socket to a server using Socket.getOutputStream() and Sockte.getOutputStream(), however I don't know how to call methods within a server passing objects or receiving objects from a called method on the server. Does anybody know how this can be done?

Thank You, in advance.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8265

Perhaps you could give us an example of some code that's giving you trouble? If you want to invoke a method on on a serialized object, you do it the same way you do with any other object:


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: passing object to methods by sockets
 
Similar Threads
How to put an RMI server on a webserver
Servlet global variables
IBM Test: Coupling question
Stuck using AJAX & WebService
What does "pass object to constuctor" mean?