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?
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