Hi All,

I'd like to use Mina 2 to send/receive messages to a J2EE messaging system. Right, I know how to handle receiving messages: Setup socket acceptor. Add handler with messageReceived(), which then creates and sends a message to a J2EE messaging subsystem, such as a queue or a topic.

How do I reverse the process (assuming I have a single open session) with Mina 2?

Let's say I have a separate thread from the Mina reading messages off the J2EE messaging subsystem. Is there anything in the API that would help me gain access to this connection and create non-blocking writes to the socket? For example, I could imagine having singleton pointer to the session after it is created, but I'm concerned multiple threads accessing it might cause a blocking/concurrency issue.

Any suggestions?
-Scott

Reply via email to