Hi Uday,
You can have multiple MDBs, listening to destination from different
brokers, this is certainly allowed. You can achieve this by configuring
the addresslist of the mdb connection factory to point to the
appropriate broker.
The jms service type (Configuration -> JMS service ) , only indicates
how the life cycle of the broker is managed by glassfish. If the type
is LOCAL or EMBEDDED, then the broker lifecycle (start and stop) is
managed by glassfish.
The default_jms_host (in the hosts) section, is the jms broker which
will be used by default (if you do not specify an address list in the
connection factory) in an application.
So if you want to use 2 different brokers in your MDBs just create 2
connection factories with the appropriate addresslist ,
https://glassfish.dev.java.net/javaee5/docs/AG/abljw.html
shows you how you can create the connection factories.
Thanks
-Ramesh
glassfish_at_javadesktop.org wrote:
> [a basic question]
> In GF, Can i have more than 1 JMS "active" JMS providers?
>
> Currently i have 2 JMS hosts(default local & remote MQ) in my GF installation. I changed the JMS service(via Admin Console: Configuration -> JMS service) to the remote MQ.
>
> I have one MDB listening to the default local and another one listening to the external remote MQ in the GF. Is this is an allowed configuration? (its looks not, as i am seeing the connection error the default local jms)
>
> Thanks,
> -Uday.
> [Message sent by forum member 'udaysubbarayan' (udaysubbarayan)]
>
> http://forums.java.net/jive/thread.jspa?messageID=243980
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>