Hi,

Can MINA be deployed as an Inbound Resource Adapter (JCA 1.5) within a J2EE 
container? 

Some details on the scenario:

1. Through the new JCA 1.5 specification, we can now extend the "application 
server" capabilities to make it act like a normal server accepting client 
connections on TCP sockets (for eg. a telnet server can be implemented through 
the application server). In short, this is achieved by writing a resource 
adapter and deploying it in the J2EE container where the MDB (Message Driven 
Bean) to implement the actual processing of the client connection is also 
deployed. On receiving incoming client packets, the RA invokes the MDB and 
hence the client requests are serviced. The RA thus deployed acts like a 
connection manager for clients connecting to a particular TCP port, also taking 
advantage of pooling mechanisms provided by the app server (since RA is 
deployed within a J2EE container). 

2. My question is, Can I use MINA so that it behaves like an inbound RA 
deployed within the J2EE container so that it can accept client connections and 
invoke the MDB deployed in the same container?

3. The problem I can see there is that the app server has its own pooling 
mechanisms and MINA has its own pooling mechanisms. How will they work 
together? Also, a resource adapter is required to adhere to some system 
contracts making it use the facilities provided by the J2EE container. If MINA 
is to be dpeloyed as the resource adapter, how will it implement the system 
contracts?

I would be grateful to you if you can enlighten me in this regard.

Kindly Note: My question is NOT "How to make a resource adapter FOR mina so 
that it can work with a J2EE component". Rather, I want to know whether MINA 
can be deployed within a J2EE container as a resource adapter so as to provide 
the above mentioned functionality.

Thanks and regards,
Vishal.
                        
---------------------------------
 Yahoo! Mail
 Use Photomail to share photos without annoying attachments.

Reply via email to