Hi,
I am having issues configuring ofbiz with apache ActiveMQ as JMS provider. Particularly, I am unable to bind a Queue with activeMQ jndi. I am running activeMQ and ofbiz in the same machine. I have configured JNDI settings as described in activeMQ and ofbiz documentation. 1) Defined jms-service in serviceengine.xml as, <jms-service name="entitlementServiceMessenger" send-mode="all"> <server jndi-server-name="activeMQ" jndi-name="ConnectionFactory" topic-queue="example.A" type="queue" username="" password="" listen="false"/> </jms-service> 2) Defined jndi-server in activeMQ as, <jndi-server name="activeMQ" context-provider-url="tcp://127.0.0.1:61616" initial-context-factory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" url-pkg-prefixes="" security-principal="" security-credentials=""/> I am able to connect to the activeMQ and get the initial context. However, I am getting NamingException when trying to lookup a queue with name "example.A" as defined in jms-service. Can someone please suggest a solution for this issue? Please let me know if I need to provide any other info. for better understanding of the problem. Early reply is appreciated. Thanks, Sudheer --------------------------------- You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. |
Administrator
|
You might be interested by my recent work on Geronimo. There is ActiveMQ there and I guess it shoulb be easier in your case to run
under Geronimo (2.0.3) or WASCE . Have a look at http://docs.ofbiz.org/pages/viewpage.action?pageId=4098 BTW, I will soon commit a new version that allows to run OFBiz multi-instances under Geronimo. Actually there are, at least, 2 cases for multi-instances. 1.. Instances are all the same (simple case) 2.. Instances are differents or mixed (some instances maybe same) In simple case we need only one root (ofbiz.home) and only one classpath. In the second case there are as many as roots and classpathes couples that there are of different instances. I have already in code all what is needed to deal with both cases but an issue when writing to modules web.xml (the xml root node is readonly and I don't understand why). In simple case it's not a problem as we need to write only in the 1st web.xml (webtools's) and we can do it statically (we don't need to put an intance number in it). So I will wait a bit to backport (the work was done for a client) and document except is someone has an idea about why I can't write in a web.xml file since the root node is readonly (I'm not an xml specialist, I must confess) BTW the new version is easier to use (I introduced a properties file as I had more parameters) and works well under WASCE 2 and Geronimo 2.0.3 under Windows and Linux as well. I have already better documented all that in the README file and will update Guidelines as soon as possible. Thanks for any help on the readonly root node.. Jacques From: "sudheer baddam" <[hidden email]> > Hi, > I am having issues configuring ofbiz with apache ActiveMQ as JMS provider. Particularly, I am unable to bind a Queue with > activeMQ jndi. I am running activeMQ and ofbiz in the same machine. I have configured JNDI settings as described in activeMQ and > ofbiz documentation. > > 1) Defined jms-service in serviceengine.xml as, > <jms-service name="entitlementServiceMessenger" send-mode="all"> > <server jndi-server-name="activeMQ" > jndi-name="ConnectionFactory" > topic-queue="example.A" > type="queue" > username="" > password="" > listen="false"/> > </jms-service> > 2) Defined jndi-server in activeMQ as, > <jndi-server name="activeMQ" > context-provider-url="tcp://127.0.0.1:61616" > initial-context-factory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" > url-pkg-prefixes="" > security-principal="" > security-credentials=""/> > > I am able to connect to the activeMQ and get the initial context. However, I am getting NamingException when trying to lookup a > queue with name "example.A" as defined in jms-service. > > Can someone please suggest a solution for this issue? Please let me know if I need to provide any other info. for better > understanding of the problem. > Early reply is appreciated. > > Thanks, > Sudheer > > > > > --------------------------------- > You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. |
In reply to this post by sudheer baddam
Hi,
Reference the physical ActiveMQ queue name in the jndi.properties file, say "example.A=physical.queue.name". This is needed for ActiveMQ but not for the likes of SonicMQ...strange but true! Calum sudheer baddam wrote: > Hi, > I am having issues configuring ofbiz with apache ActiveMQ as JMS provider. Particularly, I am unable to bind a Queue with activeMQ jndi. I am running activeMQ and ofbiz in the same machine. I have configured JNDI settings as described in activeMQ and ofbiz documentation. > > 1) Defined jms-service in serviceengine.xml as, > <jms-service name="entitlementServiceMessenger" send-mode="all"> > <server jndi-server-name="activeMQ" > jndi-name="ConnectionFactory" > topic-queue="example.A" > type="queue" > username="" > password="" > listen="false"/> > </jms-service> > 2) Defined jndi-server in activeMQ as, > <jndi-server name="activeMQ" > context-provider-url="tcp://127.0.0.1:61616" > initial-context-factory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" > url-pkg-prefixes="" > security-principal="" > security-credentials=""/> > > I am able to connect to the activeMQ and get the initial context. However, I am getting NamingException when trying to lookup a queue with name "example.A" as defined in jms-service. > > Can someone please suggest a solution for this issue? Please let me know if I need to provide any other info. for better understanding of the problem. > Early reply is appreciated. > > Thanks, > Sudheer > > > > > --------------------------------- > You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. > |
Free forum by Nabble | Edit this page |