-
1. Re: JBoss Messaging RA configuration
kdeboer Feb 13, 2008 11:09 AM (in response to kdeboer)I am using JBoss 4.2.2GA and JBoss Message 1.4.SP3
-
2. Re: JBoss Messaging RA configuration
ataylor Feb 14, 2008 4:04 AM (in response to kdeboer)Could you clarify please? Are you saying you want to run messaging JBM clients without having to run a JBM server? This is not possible with JBM1.4!
-
3. Re: JBoss Messaging RA configuration
kdeboer Feb 14, 2008 10:08 AM (in response to kdeboer)Hi,
No i wanted to implement a JBoss messaging client talking to a JBM clustered server without installing a Jboss Messaging implementation on the server (just throwing jboss-messaging.jar in the lib dir).
But I solved this part using remote JNDI lookup on the cluster. What is not mentioned in the documentation is that you need in fact also libs from the cluster configuration (the all configuration) in a non clustered JBoss Appserver (the message producer). At least jbossha.jar.
Perhaps it was a bad idea to do this with JCA.
But for the consumer side i would like to set up a JBoss RA configuration to the remote cluster to be used in an EJB3 MDB. Is this posssible. I know it is possible to configure a remote connection factory. But how can i configure the remote queue as administered object just like the examples on JBoss ActiveMQ and JBoss WebsphereMQ examples. I assume this is needed.
Thanks for the quick reply -
4. Re: JBoss Messaging RA configuration
ataylor Feb 14, 2008 10:46 AM (in response to kdeboer)No i wanted to implement a JBoss messaging client talking to a JBM clustered server without installing a Jboss Messaging implementation on the server (just throwing jboss-messaging.jar in the lib dir).
JBM must be installed and configured on the server.But I solved this part using remote JNDI lookup on the cluster. What is not mentioned in the documentation is that you need in fact also libs from the cluster configuration (the all configuration) in a non clustered JBoss Appserver (the message producer). At least jbossha.jar. Perhaps it was a bad idea to do this with JCA.
I'm still a little unclear as to what you are doing here. Are you looking up the connection factory, if this is the case then JBM must be installed.But how can i configure the remote queue as administered object just like the examples on JBoss ActiveMQ and JBoss WebsphereMQ examples.
Can you direct me at these examples and maybe i'll be able to grasp exactly what you are trying to achieve. -
-
6. Re: JBoss Messaging RA configuration
kdeboer Feb 15, 2008 4:30 AM (in response to kdeboer)Thanks for the link. I was aware of this wiki page.
But there is something unclear to me:
If you have a handle to a remote connectionFactory, how can you get a handle to a queue running in a remote server. Is this automatically done in the correct JNDI namespace (the remote server one) or are other tricks needed. That is why i thought about some admin object referencing a remote queue.
The inspiration (or confusement) comes from the way JBoss integrates with ActiveMQ.
Her is a sample of a connection factory and an admin object for the remote queue:<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>
<tx-connection-factory>
<jndi-name>activemq/QueueConnectionFactory</jndi-name>
<xa-transaction/>
<track-connection-by-tx/>
<rar-name>activemq-rar-5.1.0.rar</rar-name>
<connection-definition>javax.jms.QueueConnectionFactory</connection-definition>
<ServerUrl>tcp://messagebroker1:61616</ServerUrl>
<!--
<UserName>sa</UserName>
<Password></Password>
-->
<min-pool-size>1</min-pool-size>
<max-pool-size>200</max-pool-size>
<blocking-timeout-millis>30000</blocking-timeout-millis>
<idle-timeout-minutes>3</idle-timeout-minutes>
</tx-connection-factory>
<tx-connection-factory>
<jndi-name>activemq/TopicConnectionFactory</jndi-name>
<xa-transaction/>
<track-connection-by-tx/>
<rar-name>activemq-rar-5.1.0.rar</rar-name>
<connection-definition>javax.jms.TopicConnectionFactory</connection-definition>
<ServerUrl>tcp://messagebroker1:61616</ServerUrl>
<!--
<UserName>sa</UserName>
<Password></Password>
-->
<min-pool-size>1</min-pool-size>
<max-pool-size>200</max-pool-size>
<blocking-timeout-millis>30000</blocking-timeout-millis>
<idle-timeout-minutes>3</idle-timeout-minutes>
</tx-connection-factory>
<mbean code="org.jboss.resource.deployment.AdminObject" name="activemq.topic:name=inboundTopic">
<attribute name="JNDIName">queue/receiver</attribute>
<depends optional-attribute-name="RARName">jboss.jca:service=RARDeployment,name='activemq-rar-5.1.0.rar'</depends>
<attribute name="Type">javax.jms.Queue</attribute>
<attribute name="Properties">PhysicalName=queue.receiver</attribute>
</mbean>
</connection-factories>
BTW After doing several tests with ActiveMQ and JBoss Messaging (with clustering and persistency) i chose for Jboss Messaging. -
7. Re: JBoss Messaging RA configuration
timfox Feb 15, 2008 7:04 AM (in response to kdeboer)"kdeboer" wrote:
Thanks for the link. I was aware of this wiki page.
But there is something unclear to me:
If you have a handle to a remote connectionFactory, how can you get a handle to a queue running in a remote server. Is this automatically done in the correct JNDI namespace (the remote server one) or are other tricks needed.
You can either use a resource-ref to reference the remote queue or create an initial context using the remote provider jndi properties, see:
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossMQHAOverview for some examples.
E.g.
<resource-ref>
<res-ref-name>jms/Queue</res-ref-name>
<jndi-name>jnp://myremoteserver:1099/queue/A</jndi-name>
</resource-ref> -
8. Re: JBoss Messaging RA configuration
kdeboer Feb 15, 2008 8:40 AM (in response to kdeboer)I am using an EJB3 MessageDrivenBean using the activation-config property
destination and destinationType
Can the destination be reconfigured as a resource reference in jboss.xml deployment descriptor? This is more an EJB3 question, but perhaps you know. Or should i use a different strategy to configure an MDB to a remote queue.
Anyway it would be best to do this in an JCA RA type of configuration.
Thanks (again :-))
Karl -
9. Re: JBoss Messaging RA configuration
timfox Feb 17, 2008 3:00 PM (in response to kdeboer)"kdeboer" wrote:
Can the destination be reconfigured as a resource reference in jboss.xml deployment descriptor?
See my previous post.