users@genericjmsra.java.net

When to use which JNDI name

From: <Kerstin.Pfitzner_at_atosorigin.com>
Date: Fri, 5 Mar 2010 11:35:26 +0100

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-prop
erty-name>
        
<activation-config-property-value>javax.jms.Queue</activation-config-pro
perty-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-pr
operty-value>
                                        </activation-config-property>
                                        <activation-config-property>
        
<activation-config-property-name>ConnectionFactoryJndiName</activation-c
onfig-property-name>
        
<activation-config-property-value>TibcoJmsConnectionFactoryXAQueue</acti
vation-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



________________________________________________________________________________________________________________________
Atos Origin GmbH, Theodor-Althoff-Straße 47, D-45133 Essen, Postfach 100 123, D-45001 Essen
Telefon: +49 201 4305 0, Fax: +49 201 4305 689095, www.atosorigin.de
ING Bank AG, Frankfurt/Main: Konto 001 014 0937, BLZ 500 210 00, Swift / BIC INGBDEFF, IBAN DE74 5002 1000 0010 1409 37
Geschäftsführer: Winfried Holz, Handelsregister Essen HRB 19354, Ust.-ID.-Nr.: DE147861238
________________________________________________________________________________________________________________________