You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Kanchana Welagedara <ka...@opensource.lk> on 2007/02/15 10:58:22 UTC

JCA sample to use in Instance messaging

Hi All

I think geronimo needs more samples in the area of JCA presently it has
only one sample in the JBOSS to geronimo migration.

So I'm trying out a sample application which has the following dynamic
view

  1.EJB looks up the JNDI for the instant messenger Java Connector.
This   returns the javax.cci.ConnectionFactory. 
     2. EJB then requests a connection from the ConnectionFactory. 
     3. ConnectionFactory utilizes the ConnectionManager to request for
        a connection. 
     4. The ConnectionManager checks to see if there are any pooled
        connections. If there are none, it uses the
        ManagedConnectionFactory to create a ManagedConnection. 
     5. The application server creates a Connection using the
        ManagedConnection. 
     6. The application server sets up the event listener on the
        Connection. 
     7. The application server returns Connection to the
        ConnectionFactory. 
     8. The ConnectionFactory returns the Connection to the EJB. 
     9. EJB calls the send method on the Connection to send an instant
        message to another user. 
    10. EJB closes the Connection. 
    11. Connection informs the ManagedConnection so that it can be
        returned to the pool by ConnectionManager.
    12. 
Are there any blocking issues of geronimo jca implementation to
implement this type of an application.I assumed the "MockManagedConn*"
are geronimo specific for "ManagedConn*"

I used following dependencies in geronimo-ra.xml to deploy the above
application as a rar and still giving an error saying no deployer
found. 

 
    <dep:dependencies>
      <dep:dependency>
        <dep:groupId>org</dep:groupId>
        <dep:artifactId>apache</dep:artifactId>
        <dep:version>geronimo</dep:version>
        <dep:type>Server</dep:type>
      </dep:dependency>

<dep:dependency>
        <dep:groupId>geronimo</dep:groupId>
        <dep:artifactId>connector</dep:artifactId>
        <dep:type>car</dep:type>
      </dep:dependency>

<dep:dependency>
        <dep:groupId>geronimo</dep:groupId>
        <dep:artifactId>connector-builder</dep:artifactId>
        <dep:type>car</dep:type>
      </dep:dependency>

can anyone please help me in this.

Regards
Kanchana