geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: How to refer to an external resource from web.xml
Date Tue, 08 Aug 2006 00:30:16 GMT
That's what I was suggesting.  Your plan looks ok to me, but I  
haven't tested it.

thanks
david jencks

On Aug 7, 2006, at 5:00 PM, avin98 wrote:

>
> Hi David,
>
> Correct me if I am wrong. In short what you are suggesting is to  
> create a
> JMS-deployment plan, and deploy it on Geronimo 1.0.
>
> I change the "ServerUrl" to point to the active MQ module on my remote
> server.
>
> Please refer to the plan below:
>
>
> My JMS deployment plan is something like:
>
> <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/ 
> connector-1.0"
> 	configId="myJMS" parentId="geronimo/activemq-broker/1.0/car">
>
>     <resourceadapter>
>         <resourceadapter-instance>
>             <resourceadapter-name>myJMSResources</resourceadapter- 
> name>
>             <config-property-setting
> name="ServerUrl">tcp://remote_server_name:61616</config-property- 
> setting>
>             <config-property-setting
> name="UserName">geronimo</config-property-setting>
>             <config-property-setting
> name="Password">geronimo</config-property-setting>
>             <workmanager>
>                 <gbean-link>DefaultWorkManager</gbean-link>
>             </workmanager>
>         </resourceadapter-instance>
>         <outbound-resourceadapter>
>             <connection-definition>
>
> <connectionfactory-interface>javax.jms.ConnectionFactory</ 
> connectionfactory-interface>
>                 <connectiondefinition-instance>
>                     <name>MyQueueConnectionFactory</name>
>
> <implemented-interface>javax.jms.QueueConnectionFactory</ 
> implemented-interface>
>
> <implemented-interface>javax.jms.TopicConnectionFactory</ 
> implemented-interface>
>                     <connectionmanager>
>                         <xa-transaction>
>                             <transaction-caching/>
>                         </xa-transaction>
>                         <single-pool>
>                             <max-size>5</max-size>
>
> <blocking-timeout-milliseconds>3000</blocking-timeout-milliseconds>
>                             <match-one/>
>                         </single-pool>
>                     </connectionmanager>
>                 </connectiondefinition-instance>
>             </connection-definition>
>         </outbound-resourceadapter>
>     </resourceadapter>
>     <adminobject>
>         <adminobject-interface>javax.jms.Queue</adminobject-interface>
>
> <adminobject-class>org.codehaus.activemq.message.ActiveMQQueue</ 
> adminobject-class>
>         <adminobject-instance>
>             <message-destination-name>Queue1</message-destination- 
> name>
>             <config-property-setting
> name="PhysicalName">Queue1</config-property-setting>
>         </adminobject-instance>
>     </adminobject>	
> </connector>
>
>
> Also I refer to these resources in my web.xml as
>
>         <resource-ref>
> 		<description>
> 		</description>
> 		<res-ref-name>MyQueueConnectionFactory</res-ref-name>
> 		<res-type>javax.jms.ConnectionFactory</res-type>
> 		<res-auth>Container</res-auth>
> 		<res-sharing-scope>Shareable</res-sharing-scope>
> 	</resource-ref>
> 	<message-destination-ref>
> 		<description>
> 		</description>
> 		<message-destination-ref-name>Queue1</message-destination-ref-name>
> 		<message-destination-type>javax.jms.Queue</message-destination-type>
> 		<message-destination-usage>Produces</message-destination-usage>
> 		<message-destination-link>Queue1</message-destination-link>
> 	</message-destination-ref>
>
>
> Let me know if this is correct ???
>
> I am using Geronimo 1.0 , and active MQ 3.2.2
> -- 
> View this message in context: http://www.nabble.com/How-to-refer-to- 
> an-external-resource-from-web.xml-tf2069514.html#a5698227
> Sent from the Apache Geronimo - Users forum at Nabble.com.
>


Mime
View raw message