-
15. Re: Resource Adapter sample code
vinodhvalleri May 24, 2013 6:22 AM (in response to ataylor)Hi,
If I use the pooled-connection-factory in the standalone.xml, will it Jboss start the local hornetQ?
Thanks
Vinodh.V
-
16. Re: Resource Adapter sample code
ataylor May 24, 2013 6:24 AM (in response to vinodhvalleri)yes, but you can just strip back everything you dont need, i.e. acceptors, destinations etc so in essence it wont be running
-
17. Re: Resource Adapter sample code
raviteja457 May 24, 2013 7:15 AM (in response to ataylor)Hi Andy
I understood but i want to invoke remote hornetq server with resource adapter like this
(standalone.xml) and hornetq-ra.rar in deployments folder
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
<resource-adapters>
<resource-adapter>
<archive>hornetq-ra.rar</archive>
<transaction-support>XATransaction</transaction-support>
<config-property name="UserName">guest</config-property>
<config-property name="Password">guest</config-property>
<connection-definitions>
<connection-definition class-name="org.hornetq.ra.HornetQRAManagedConnectionFactory" jndi-name="java:/jms/RemoteConnectionFactory" enabled="true" use-java-context="true" pool-name="JmsRemoteConnectionFactory" use-ccm="true">
<config-property name="UserName">guest</config-property>
<config-property name="ConnectionParameters">host=localhost;port=5445</config-property>
<config-property name="ConnectorClassName">org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</config-property>
<config-property name="SessionDefaultType">javax.jms.Queue</config-property>
<config-property name="Password">guest</config-property>
<security>
<application>true</application>
</security>
</connection-definition>
</connection-definitions>
</resource-adapter>
</resource-adapters>
</subsystem>
-
18. Re: Resource Adapter sample code
ataylor May 24, 2013 8:27 AM (in response to raviteja457)like i say, you dont need to, pooled connection factories are supplied so you can avoid all this complex configuration.
However if you do want to persist with this approach then you are better off using the AS7 forums.
-
19. Re: Resource Adapter sample code
ataylor May 24, 2013 8:30 AM (in response to ataylor)just out of curiosity, is there a reason you want to configure it this way?