-
1. Re: Resource Adapter sample code
ataylor May 20, 2013 4:46 AM (in response to raviteja457)moved to correct forum
-
2. Re: Resource Adapter sample code
ataylor May 20, 2013 4:47 AM (in response to ataylor)take a look at the jca-remote example, it does exactly this
-
3. Re: Resource Adapter sample code
raviteja457 May 20, 2013 5:02 AM (in response to raviteja457)Hi Andy Taylor,
I saw the example it is clear to understand and when i run the build.sh file its working fine withour error But my question is how to configure with jboss 7 and eclipse .
And how to run when i am starting the standalone hornetq
-
4. Re: Resource Adapter sample code
ataylor May 20, 2013 5:23 AM (in response to raviteja457)I saw the example it is clear to understand and when i run the build.sh file its working fine withour error But my question is how to configure with jboss 7 and eclipse .
Im not sure what you mean by run with eclipse but the example shows you how to configure with AS7
-
5. Re: Resource Adapter sample code
raviteja457 May 20, 2013 5:43 AM (in response to ataylor)I am using ubuntu so when i execute the build.sh file through terminal its works good but i am unable to understand for configuring with jboss7
Requesting you to provide me steps how to configure with jboss7.1
-
6. Re: Resource Adapter sample code
ataylor May 20, 2013 5:44 AM (in response to raviteja457)take a look at the standalone-*.xml config files at pooled-connection-factory, other wise try reading the AS7 docs
-
7. Re: Resource Adapter sample code
raviteja457 May 24, 2013 2:13 AM (in response to raviteja457)Hi andy
actually i am trying to connect standalone server with jboss 7
but,
i am getting the error org.hornetq.ra.HornetQRAManagedConnectionFactory not a valid connection definition
can you tell me why i am getting this ..
-
8. Re: Resource Adapter sample code
ataylor May 24, 2013 4:52 AM (in response to raviteja457)actually i am trying to connect standalone server with jboss 7
but,
i am getting the error org.hornetq.ra.HornetQRAManagedConnectionFactory not a valid connection definition
The configuration will be the same for standalone, simple configure your pooled connection factory as in th eexample.
-
9. Re: Resource Adapter sample code
raviteja457 May 24, 2013 5:13 AM (in response to raviteja457)Please see the my standalone.xml Andy
i am deploying mdb in jboss/deployments adn my mdb wants to connect to stanalone hornetq server started by command prompt i am totally confusing
please see below my standalone-full.xml and my mdb class
And i am using @ResourceAdapter("hornetq-ra.rar")
Very Greatful in advance
-
ra.xml 16.0 KB
-
standalone.xml 17.7 KB
-
MailProcessMDB.java.zip 698 bytes
-
-
10. Re: Resource Adapter sample code
ataylor May 24, 2013 5:30 AM (in response to raviteja457)you dont need an ra.xml file for AS7, simply configure the pooled connection factory as in the example i pointed you at.
-
11. Re: Resource Adapter sample code
raviteja457 May 24, 2013 5:51 AM (in response to raviteja457)My Problem is
i have Jboss 7.1 and i downloaded hronetq
after that i written MDB class and deployed in jboss
now i want to connect to remote hornetq using @resourceadapter
how to configure with some example code
-
12. Re: Resource Adapter sample code
ataylor May 24, 2013 5:56 AM (in response to raviteja457)The example i pointed you at does exactly this, just configure the pooled connection factory as needed. look at the pooled connection factories in standalone-example.xml.
-
13. Re: Resource Adapter sample code
raviteja457 May 24, 2013 6:02 AM (in response to ataylor)I have configured a stand-alone HOrnetQ server and have few destinations in the HQ server. I have an java EE6 application which I have deployed in a JBoss AS 7 standalone server. I need to write an Message Driven Bean in my application running in JBoss Server and this bean should listen to my Topic which is in the standalone HQ Server.
-
14. Re: Resource Adapter sample code
ataylor May 24, 2013 6:07 AM (in response to raviteja457)I have configured a stand-alone HOrnetQ server and have few destinations in the HQ server. I have an java EE6 application which I have deployed in a JBoss AS 7 standalone server. I need to write an Message Driven Bean in my application running in JBoss Server and this bean should listen to my Topic which is in the standalone HQ Server.
Thats exactly what the example i pointed you at does, although with a queue. Its pretty simple really. look for the following snippets
<netty-connector name="remote-netty" socket-binding="remote-messaging"/>
..........
<pooled-connection-factory name="hornetq-remote-ra">
<transaction mode="xa"/>
<user>guest</user>
<password>password</password>
<connectors>
<connector-ref connector-name="remote-netty"/>
</connectors>
<entries>
<entry name="java:/RemoteJmsXA"/>
</entries>
</pooled-connection-factory>
...............
<socket-binding name="remote-messaging" port="5545" fixed-port="true"/>