users@glassfish.java.net

Mapping MDB to Activation Spec?

From: <glassfish_at_javadesktop.org>
Date: Tue, 16 Sep 2008 23:43:41 PDT

Hello experts;

I want to deploy an MDB which listens to a swiftmq queue. Installed and configured the swiftmq adapter as described on
http://www.swiftmq.com/developers/howto_swiftmq_glassfishv2/index.html, the examples work fine.

Now I have two questions:

1) the sun-ejb-jar.xml in the examples declare the element 'mdb-resource-adapter-mid'. That means the software developer is forced to use the same module-id as on testsystem, and on all other systems (integration, education, production etc)
the adapter must have the same id which is known to the developer?

2) the ejb-jar.xml contains the activation config properties. so the developer must know about queuenames, usernames, passwords, poolsizes etc and all settings must be the same for all environments (test, integration, education, production etc)?

In Websphere Application server, the ibm-ejb-jar-bnd.xmi (ibm pendant to sun-ejb-jar.xml) declares a jndi reference to the activation spec, the activation spec is administered in the server. So the developer can use his own settings
(maybee even another JMS Provider), and all other environments can be configured by the activation spec. Is there an equivalent way to do this in glassfish, maybee using JNDI Resources (Custom / External) and if so, how to reference it from sun-ejb-jar.xml?


Thank you very much...

Ivo
[Message sent by forum member 'jdrive' (jdrive)]

http://forums.java.net/jive/thread.jspa?messageID=299742