Using Hermes JMS to watch JBOSS JMS
许昆
2023-12-01
Using Hermes JMS to watch JBOSS JMS
1.install SOAP-UI in my ubuntu system first.
http://hi.baidu.com/luohuazju/blog/item/e3b95f1bb3e468efae51333a.html
2. click [Tools] ---->[HermesJMS] to open the HermesJMS tool
>vi /home/luohua/tools/soapUI-3.6.1/bin/soapUI-3.6.1
add this line to the content:
export GDK_NATIVE_WINDOWS=true
3. configure the JBOSS JMS
click a yellow round button[Configure]
enter the name as JBOSS5.1
click the tab [Providers], right click the mouse and get the menu, choose [Add group]
add JBOSS5.1 to the groups
right click the [Library] and choose [Add jars]. select these jar packages:
JBOSS_HOME/client/jboss-client.jar
JBOSS_HOME/client/jbossall-client.jar
JBOSS_HOME/client/jmx-invoker-adaptor-client.jar
JBOSS_HOME/client/jnp-client.jar
JBOSS_HOME/lib/jboss-jmx.jar
JBOSS_HOME/lib/concurrent.jar
click [create JNDI initialcontext] to add 'JBOSS_CLEAN', enter these informations:
loader : JBOSS5.1
securityCredentials: admin
securityPrincipal: admin
initialContextFactory: org.jnp.interfaces.NamingContextFactory
providerURL: jnp://localhost:1099
double click our [JBOSS_CLEAN], which we just create it.
select [XAConnectionFactory] and click button [Create a session with this connection factory ]
enter name JBOSS
click [search the queue/topic], we can see:
queue/IUserQueue1
queue/IUserQueue2
topic/IUserTopic
There are all my configured queues and topics in JBOSS.
we can double click them or select them and click [browse the queue, topic, context]
But I can not see my queue object, I put my customized objects in queue,
so I got these error messages:
unable to display message
java.lang.RuntimeException: com.sillycat.core.webservice.model.IUser
how to solve this problem. I need to add my API packages which contains IUser class to JBOSS.
Just use the [Add jars] button to do that.
references:
http://www.hermesjms.com/demos/jboss_config.html