geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From easyl <easy....@gmail.com>
Subject Re: How to configure ActiveMQ (persistence, flow control etc.)
Date Thu, 08 Apr 2010 09:55:30 GMT

btw, may I ask a general question for setting up EAR Application for JMS?

For example, I have two EAR Application.
Each EAR have a Queue and MDB.
The two EAR Application would send Message to the other.

What I have done is...
1) I leave var/config.xml untouched
2) I declare JMS resource in each EAR geronimo-application.xml (GA2.1)

In EAR a


> <conn:resourceadapter>
>     <conn:resourceadapter-instance>
>     <conn:resourceadapter-name>resource_a</conn:resourceadapter-name>
>     <conn:config-property-setting
> name="ServerUrl">tcp://localhost:61616</conn:config-property-setting>
>     ...
>   </conn:resourceadapter-instance>
>   <conn:outbound-resourceadapter>
>     <conn:connection-definition>
>      
> <conn:connectionfactory-interface>javax.jms.ConnectionFactory</conn:connectionfactory-interface>
>       <conn:connectiondefinition-instance>
>         <conn:name>jms/CF</conn:name>
>         ....
>       </conn:connectiondefinition-instance>
>     </conn:connection-definition>
>   </conn:outbound-resourceadapter>
> </conn:resourceadapter>
> <conn:adminobject>
>   <conn:adminobject-interface>javax.jms.Queue</conn:adminobject-interface>
>  
> <conn:adminobject-class>org.apache.activemq.command.ActiveMQQueue</conn:adminobject-class>
>   <conn:adminobject-instance>
>    
> <conn:message-destination-name>jms/queue_a</conn:message-destination-name>
>     <conn:config-property-setting
> name="PhysicalName">jms/queue_a</conn:config-property-setting>
>   </conn:adminobject-instance>
>   <conn:adminobject-instance>
>    
> <conn:message-destination-name>jms/queue_b</conn:message-destination-name>
>     <conn:config-property-setting
> name="PhysicalName">jms/queue_b</conn:config-property-setting>
>   </conn:adminobject-instance>
> </conn:adminobject>
> 

In EAR b


> <conn:resourceadapter>
>     <conn:resourceadapter-instance>
>     <conn:resourceadapter-name>resource_b</conn:resourceadapter-name>
>     <conn:config-property-setting
> name="ServerUrl">tcp://localhost:61616</conn:config-property-setting>
>     ...
>   </conn:resourceadapter-instance>
>   <conn:outbound-resourceadapter>
>     <conn:connection-definition>
>      
> <conn:connectionfactory-interface>javax.jms.ConnectionFactory</conn:connectionfactory-interface>
>       <conn:connectiondefinition-instance>
>         <conn:name>jms/CF</conn:name>
>         ....
>       </conn:connectiondefinition-instance>
>     </conn:connection-definition>
>   </conn:outbound-resourceadapter>
> </conn:resourceadapter>
> <conn:adminobject>
>   <conn:adminobject-interface>javax.jms.Queue</conn:adminobject-interface>
>  
> <conn:adminobject-class>org.apache.activemq.command.ActiveMQQueue</conn:adminobject-class>
>   <conn:adminobject-instance>
>    
> <conn:message-destination-name>jms/queue_b</conn:message-destination-name>
>     <conn:config-property-setting
> name="PhysicalName">jms/queue_a</conn:config-property-setting>
>   </conn:adminobject-instance>
>   <conn:adminobject-instance>
>    
> <conn:message-destination-name>jms/queue_a</conn:message-destination-name>
>     <conn:config-property-setting
> name="PhysicalName">jms/queue_b</conn:config-property-setting>
>   </conn:adminobject-instance>
> </conn:adminobject>
> 

where should I declare broker? in conf.xml? or in each EAR?
should I declare different resourceadapter in each EAR plan?

thanks


-- 
View this message in context: http://n3.nabble.com/How-to-configure-ActiveMQ-persistence-flow-control-etc-tp703178p705528.html
Sent from the Users mailing list archive at Nabble.com.

Mime
View raw message