Freeman
Freeman

Reputation: 21

what can I use for a messenger server in Java

instead of java socket, what else I can use for a messenger server in Java.

My goal is to maintain more client.I know a little about RMI. But I'm not sure what should I use. I want to maintain more than 100,000 client at a time.

Upvotes: 1

Views: 180

Answers (4)

Kevin Bigler
Kevin Bigler

Reputation: 266

I don't really know what you're asking so I'm sorry if this is a terrible answer but I'll do my best. If you have a deadline to meet I would use a well coded library like JMS, however I haven't ever looked at the source code but I'd say its a safe bet it uses Sockets. If there is another way to make the type of connection you're trying to I don't know what it is.

If this is for personal use or educational purposes I would make your own, that's how I learned. I studied some source code I found and java2s.com for a chat program then made my own implementation. The program I made is more like an instant messenger than a chat, I did it in Java because it's easy to programs cross-platform and I think that's important for something like an instant messenger.

If you'd like to take a look at the source code send me your e-mail address. My e-mail address is [email protected]. Good luck, sorry I couldn't be more help.

Upvotes: 0

Rakesh
Rakesh

Reputation: 4334

You can also use Apache ActivemQ, its easy to get started with. Find more about ActivemQ here

Upvotes: 0

omnomnom
omnomnom

Reputation: 9149

It looks like you need JMS with clustered broker (I'd recommend HornetQ).

Upvotes: 0

Peter Lawrey
Peter Lawrey

Reputation: 533560

Without more information I would suggest JMS.

100,000 client is a lot. Is this concurrent clients or registered clients?

Is this on the internet, or internal network?

Upvotes: 2

Related Questions