-
1. Re: which JBOSS AS server is best for the integrating active MQ 5.9
jaysensharma Dec 9, 2014 2:05 AM (in response to srikanthvaddi)Always latest is the best. So WildFly 8.2.Final (wildFly 9 alpha2 is also available for download) you can try.
As after JBoss AS 7.1.1 separate JBoss AS7 downloads are not available so if you want to use JBoss AS7.2, AS 7.1.2 ..etc then you will have to build it. However using WildFly 8.2 will be best recommended.
But it is quite possible to add activeMQ resource adapter in JBoss AD7.1.1 as well as it's later releases. Some examples you can find in the following links. You can declare your resource adapter configuration inside the resource-adapters subsystem as mentioned in [1] OR [2]
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
<resource-adapters>
<resource-adapter id="activemq_5.9.rar">
<archive> activemq_5.9.rar</archive>
[1] http://blog.coffeebeans.at/?p=606
[2] http://rastkososkic.blogspot.in/2013/12/deploying-activemq-590-resource-adapter.html
Similarly for WildFly you can refer to [3]:
[3] http://java.dzone.com/articles/connecting-jboss-wildfly-7
-
2. Re: which JBOSS AS server is best for the integrating active MQ 5.9
srikanthvaddi Dec 9, 2014 2:36 AM (in response to jaysensharma)hi Jay Kumar SenSharma .
thanks for you quick reply ,
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
the same i have tried in JBOSS AS 7.1.1 , when copy active MQ ra.ra in showing unresolved content in logs when i start the srever
so your suggesting me try with wild fly 8.2 ?.
-
3. Re: which JBOSS AS server is best for the integrating active MQ 5.9
jaysensharma Dec 9, 2014 3:44 AM (in response to srikanthvaddi)Yes, WildFly 8.2 is the latest release. (wildfly 9 is still in alpha2 build) You can get it from [1] (even though the resource adapter and activeMQ integration should work fine in JBoss AS 7.1.1 , If you paste your AS 7.1.1 log then we can debug it, but WildFly 8 will be more preferred)
WildFly 8.2 has many enhancements and bug fixes with more latest components see the release notes of WildFly 8.2 [2], So it is much better than previous releases.
[1] WildFly Download: Downloads · WildFly
-
4. Re: which JBOSS AS server is best for the integrating active MQ 5.9
srikanthvaddi Dec 9, 2014 4:11 AM (in response to jaysensharma)Thanks i will try with JBoss wildfly 8.2,
the belwo are teh config files and errors ,
i have followed same steps from http://java.dzone.com/articles/connecting-jboss-wildfly-7
and i have changed below in standalone-full.xml
<subsystem xmlns=
"urn:jboss:domain:resource-adapters:1.0"
/> to
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
<resource-adapters>
<resource-adapter id="activemq-rar.rar">
<module slot="main" id=" org.apache.activemq "/>
<transaction-support>NoTransaction</transaction-support>
<config-property name="ServerUrl">
tcp://localhost:61616
</config-property>
<connection-definitions>
<connection-definition class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory" jndi-name=" java:/AMQConnectionFactory " enabled="true" use-java-context="true" pool-name="AMQConnectionFactory"/>
</connection-definitions>
<admin-objects>
<admin-object class-name="org.apache.activemq.command.ActiveMQQueue" jndi-name=" queue/JMSBridgeTargetQ " use-java-context="true" pool-name="target_queue">
<config-property name="PhysicalName">
JMSBridgeTargetQ
</config-property>
</admin-object>
</admin-objects>
</resource-adapter>
</resource-adapters>
</subsystem>
and
<mdb>
<resource-adapter-ref resource-adapter-name="activemq-rar.rar"/>
<bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
</mdb>
and eclipse i am trying import server i have choosen standalone-full.xml , when i start the server it is not showing any Bounded JNDI name like below
eg:->
14:36:31,129 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
the below are console logs
14:36:29,334 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA
14:36:29,532 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA
14:36:29,614 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
14:36:30,286 INFO [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
14:36:30,286 INFO [org.xnio] XNIO Version 3.0.3.GA
14:36:30,301 INFO [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
14:36:30,301 INFO [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
14:36:30,317 INFO [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
14:36:30,317 INFO [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
14:36:30,364 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
14:36:30,380 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
14:36:30,364 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
14:36:30,379 INFO [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
14:36:30,379 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
14:36:30,474 INFO [org.jboss.as.connector] (MSC service thread 1-8) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
14:36:30,552 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-8) JBoss Web Services - Stack CXF Server 4.0.2.GA
14:36:30,567 INFO [org.jboss.as.naming] (MSC service thread 1-8) JBAS011802: Starting Naming Service
14:36:30,599 INFO [org.jboss.as.security] (MSC service thread 1-8) JBAS013100: Current PicketBox version=4.0.7.Final
14:36:30,599 INFO [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
14:36:30,630 INFO [org.jboss.as.mail.extension] (MSC service thread 1-2) JBAS015400: Bound mail session [java:jboss/mail/Default]
14:36:31,004 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory C:\servers\jboss-as-7.1.1.Final\standalone\deployments
14:36:31,004 INFO [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on localhost/127.0.0.1:4447
14:36:31,020 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-3) Starting Coyote HTTP/1.1 on http-localhost-127.0.0.1-8080
14:36:31,067 INFO [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999
14:36:31,129 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
14:36:31,207 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
14:36:31,223 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 2123ms - Started 133 of 208 services (74 services are passive or on-demand)
-
5. Re: Re: which JBOSS AS server is best for the integrating active MQ 5.9
jaysensharma Dec 9, 2014 4:56 AM (in response to srikanthvaddi)I see that in the above log you are trying JBoss AS 7.1.1
Your configuration you said you have placed inside the standalone-full.xml but looks like you are starting standalone.xml. Else you must have got Parsing Error.
Still even if you will try starting the correct JBoss AS 7.1.1 profile with above resource adapter configuration still it will fail with Parsing Error because in JBoss AS 7.1.1 you can not define module for the resource adapter <module slot="main" id=" org.apache.activemq "/>. Check the XSD "jboss-as-7.1.1.Final/docs/schema/jboss-as-resource-adapters_1_0.xsd" for your reference. It belongs to 1.0 version there is no 1.1 version.
If you want to use activemq rar in JBoss AS 7.1.1 then you should try, The previous links which i provided was for later versions of AS 7.1.1 (which are not available for direct download like AS 7.2 you will need to build them) : Integrate JBoss AS 7.1 with ActiveMQ 5.6
-
6. Re: which JBOSS AS server is best for the integrating active MQ 5.9
srikanthvaddi Dec 9, 2014 5:19 AM (in response to jaysensharma)hi Jay Kumar SenSharma .
thanks for you repsonses , sorry earlier post i have started with standalone.xml
now i have started with standalone-full.xml,
i got the error saying
5:44:27,377 ERROR [org.jboss.as.server] JBAS015956: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:141) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.ServerService.boot(ServerService.java:266) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_17]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[328,4]
Message: JBAS014789: Unexpected element '{urn:jboss:domain:resource-adapters:1.1}subsystem' encountered
at org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:85) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.remoting.RemotingSubsystem11Parser.readElement(RemotingSubsystem11Parser.java:107) [jboss-as-remoting-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.remoting.RemotingSubsystem11Parser.readElement(RemotingSubsystem11Parser.java:69) [jboss-as-remoting-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:894) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:330) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:127) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:100) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69) [staxmapper-1.1.0.Final.jar:1.1.0.Final]
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:133) [jboss-as-controller-7.1.1.Final.jar:7.1.1.Final]
... 3 more
15:44:27,409 FATAL [org.jboss.as.server] JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
15:44:27,409 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final "Brontes" stopped in 5ms
the row in my standalone-full,xml
is
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
-
7. Re: Re: which JBOSS AS server is best for the integrating active MQ 5.9
jaysensharma Dec 9, 2014 5:22 AM (in response to srikanthvaddi)As mentioned earlier you will definitely get Parsing Error:
even if you will try starting the correct JBoss AS 7.1.1 profile with above resource adapter configuration still it will fail with Parsing Error because in JBoss AS 7.1.1 you can not define module for the resource adapter <module slot="main" id=" org.apache.activemq "/>. Check the XSD "jboss-as-7.1.1.Final/docs/schema/jboss-as-resource-adapters_1_0.xsd" for your reference. It belongs to 1.0 version there is no 1.1 version.
If you want to use activemq rar in JBoss AS 7.1.1 then you should try, The previous links which i provided was for later versions of AS 7.1.1 (which are not available for direct download like AS 7.2 you will need to build them) : Integrate JBoss AS 7.1 with ActiveMQ 5.6
-
8. Re: Re: which JBOSS AS server is best for the integrating active MQ 5.9
srikanthvaddi Dec 9, 2014 7:49 AM (in response to jaysensharma)hi Sensharma,
after changing the Subsystem URN to <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> getting the below Error
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[328,4]
Message: JBAS014789: Unexpected element '{urn:jboss:domain:resource-adapters:1.0}subsystem' encountered
, as u suggested what is the below tag ,do i need add or remove
<module slot="main" id=" org.apache.activemq "/>.
-
9. Re: Re: which JBOSS AS server is best for the integrating active MQ 5.9
srikanthvaddi Dec 9, 2014 1:25 PM (in response to jaysensharma)hi Sensharma,
after changing the Subsystem URN to <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> getting the below Error
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[328,4]
Message: JBAS014789: Unexpected element '{urn:jboss:domain:resource-adapters:1.0}subsystem' encountered
, as u suggested what is the below tag ,do i need add or remove
<module slot="main" id=" org.apache.activemq "/>.