This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes transfer data from thread to threads Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "transfer data from thread to threads" Watch "transfer data from thread to threads" New topic
Author

transfer data from thread to threads

zniter goh
Greenhorn

Joined: Sep 23, 2001
Posts: 29
hi how do i transfer data from one thread to another thread...
coz i doing a server using socket and when one connected client need to send a message to another client....
or u have any better idea....thanks
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
since all clients are talking through different socket instances, keep references to all the socket connections, possibly n an array / array list and then transmit the message across all socket connections when somec lient sends a message to the server.
karthik
Originally posted by zniter goh:
hi how do i transfer data from one thread to another thread...
coz i doing a server using socket and when one connected client need to send a message to another client....
or u have any better idea....thanks

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: transfer data from thread to threads
 
Similar Threads
How to use Oacle Export and Import in JAVA
How to use Oracle Export and Import in JAVA
DAO & DTO Difference?
Copying data from one DB to another
transfer data from one DB to another DB ?