users@genericjmsra.java.net

RE: When to use which JNDI name

From: Deepu Syamaladevi Janardhananachary (UST, IND) <"Deepu>
Date: Fri, 5 Mar 2010 17:00:30 +0530

Is this not required?

<jndi-name>jms/tQueue</jndi-name>

This jms/tQueue as the jndi name given in the Resources-> connectors-> admin object resources in glassfish.

 

Is this what u meant?

 

Regards,

Deepu Janardhananachary

 

From: Kerstin.Pfitzner_at_atosorigin.com [mailto:Kerstin.Pfitzner_at_atosorigin.com]
Sent: Friday, March 05, 2010 4:05 PM
To: users_at_genericjmsra.dev.java.net
Subject: When to use which JNDI name

 

Hi,

in my project we are using the generic resource adapter 2.0 to integrate TIBCO EMS 5.1.3 with Glassfish 2.1.

The integration works well. But I have a question regarding the JNDI-names to be used for the destinations.

At the moment in the sun-ejb-jar.xml we are specifying the queue names as defined in TIBCO. But when we lookup a destionation from inside a Bean e.g. for sending a message to it, we use the JNDI name as defined for the Glassfish administered object. Below you can find an example sun-ejb-jar.xml:

<sun-ejb-jar>
        <enterprise-beans>
                <ejb>
                        <ejb-name>MyMDB</ejb-name>
                        <pass-by-reference>false</pass-by-reference>
                        <jms-max-messages-load>1</jms-max-messages-load>
                        <is-read-only-bean>false</is-read-only-bean>
                        <refresh-period-in-seconds>-1</refresh-period-in-seconds>
                        <cmt-timeout-in-seconds>0</cmt-timeout-in-seconds>
                        <gen-classes />

                        <mdb-resource-adapter>
                                <resource-adapter-mid>genericra</resource-adapter-mid>
                                <activation-config>
                                        <activation-config-property>
                                                <activation-config-property-name>DestinationType</activation-config-property-name>

                                                <activation-config-property-value>javax.jms.Queue</activation-config-property-value>

                                        </activation-config-property>
                                        <activation-config-property>
                                                <activation-config-property-name>DestinationJndiName</activation-config-property-name>

                                                <activation-config-property-value>TIBCO.QUEUE.NAME</activation-config-property-value>

                                        </activation-config-property>
                                        <activation-config-property>
                                                <activation-config-property-name>ConnectionFactoryJndiName</activation-config-property-name>

                                                <activation-config-property-value>TibcoJmsConnectionFactoryXAQueue</activation-config-property-value>

                                        </activation-config-property>
                                </activation-config>
                        </mdb-resource-adapter>
                </ejb>
        </enterprise-beans>
</sun-ejb-jar>

Is this correct, or can it be accomplished to use only the JNDI name of one side, Glassfish or TIBCO?

Thanks in advance and best regards,
Kerstin Pfitzner