Hi
We need to record user chat information in DB.
Does EJB will be do some help for our chat server?
What need to consider to design supporting 10000 concurrent connection to our chat server?
Any suggestion?
Regards,
John
-
Can we need EJB in our chat server? (1 messages)
- Posted by: John lee
- Posted on: August 16 2004 00:13 EDT
Threaded Messages (1)
- Can we need EJB in our chat server? by Mircea Crisan on August 16 2004 04:25 EDT
-
Can we need EJB in our chat server?[ Go to top ]
- Posted by: Mircea Crisan
- Posted on: August 16 2004 04:25 EDT
- in response to John lee
Hi,
I suggest putting the user chat line into a JMS queue. The chat lines messages are consumed by a message driven bean that precesses the lines. In this way the a chat line processing seems to be fast because the inserting into the DB is done asynchronuously.
However, you have to consider how you deal with a exceptions thrown by the chat line processing: because this is done asynchronuously the user cannot be notified imediately and directly.
Best regards, Mircea