JBoss Community

Accessing JNDI in a Session bean ckient

created by Ri Ma in IronJacamar Development - View the full discussion

I want to to use a JCA Resource Adapter to connect from JBOSS AS 7.1.1 to the IBM host.

 

I created an Session Bean to connect to the access the the JNDI-Name

 

My source code looks like this

InitialContext ctx = new Intiacontext());

IMSConnectionFactory  cf   = (IMSConnectionFactory)ctx.lookup("eis/IMSConnectionFactory");

 

I always get an exception

 

javax.naming.NameNotFoundException: eis.IMSConnectionFactory -- service jboss.naming.context.java."eis.IMSConnectionFactory"

 

The

 

                <connection-definitions>
                    <connection-definition class-name="com.ibm.connector2.ims.ico.IMSConnectionnFactory" jndi-name="java:/eis/IMSConnectionFactory" enabled="true" use-java-context="true" pool-name="java:/eis/IMSConnectionFactory">
                        <config-property name="Name">
                            IMS Connection
                        </config-property>
                        <xa-pool>
                            <min-pool-size>10</min-pool-size>
                            <max-pool-size>100</max-pool-size>
                        </xa-pool>
                        <security>
                            <application/>
                        </security>
                    </connection-definition>
                </connection-definitions>

Please help me!!

Reply to this message by going to Community

Start a new discussion in IronJacamar Development at Community