Java Reference
In-Depth Information
rar-info.bat /usr/doc/activemq-rar-5.9.0.rar
Tip
Troubleshooting the rar-info shell
The rar-info command shell includes a set of libraries that are used to execute the
main utility class. In order to inspect the JMS adapter, however, you need to manually edit
the shell file and add jboss-jms-api_2.0_spec-1.0.0.Final and jboss-
transaction-api_1.2_spec-1.0.0.Final.jar to the classpath. Those JAR
files are contained in the main folder under JBOSS_HOME/modules/system/lay-
ers/base/javax/jms/api/ and JBOSS_HOME/modules/system/layers/
base/javax/transaction/api/ . Simply add paths for them in the rar-
info.bat file (separated by character); for example, refer to the following (assuming
the jars are in the same directory as rar-info.bat ):
java -classpath
ironjacamar-as.jar;..\..\lib\ironjacamar-common-spi.jar;..\..\lib\jboss-logging.jar;..\..\lib\jboss-common-core.jar;..\..\lib\ironjacamar-spec-api.jar;..\..\lib\jandex.jar;..\..\lib\ironjacamar-common-impl.jar;..\..\lib\ironjacamar-common-api.jar;..\..\lib\ironjacamar-core-impl.jar;..\..\lib\ironjacamar-core-api.jar;..\..\lib\ironjacamar-validator.jar;..\..\lib\jandex.jar;..\..\lib\validation-api.jar;..\..\lib\hibernate-validator.jar;jboss-jms-api_2.0_spec-1.0.0.Final.jar;jboss-transaction-api_1.2_spec-1.0.0.Final.jar
org.jboss.jca.as.rarinfo.Main %*
This will generate a file called activemq-rar-5.9.0-report.txt , which will
provide you with the required information to construct your own JBoss' JCA configura-
tion file that needs to be named ironjacamar.xml . Feel free to check out its contents.
In the following code, you can find a sample ironjacamar.xml file that defines a new
queue ( java:jboss/activemq/queue/TicketQueue ):
<ironjacamar>
<connection-definitions>
<connection-definition
class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory"
jndi-name="java:jboss/activemq/TopicConnectionFactory"
pool-name="TopicConnectionFactory">
<pool>
<min-pool-size>1</min-pool-size>
<max-pool-size>200</max-pool-size>
<prefill>false</prefill>
</pool>
<security>
Search WWH ::




Custom Search