Thank you David. It's great to know I am on the right path. I followed the example described here http://cwiki.apache.org/GMOxDOC21/jms-mdb-jms-and-mdb-sample-application.html and my deploy files are identical when it comes to the EJB. Instead of the using the servlet to put messages in the queue, I use a plain jms client (just a java class not running inside an app server). That is the only difference. I do use the ActiveMQ RA and replaced tcp://localhost:61616 with tcp://the5thcomputer:61616 for the url.
However the message consumer (my EJB MessageDrivenBean) does not pick up the messages posted on the AMQ (on the 5th computer). I doesn't produce any error neither and I suppect it's waiting for messages on the local AMQ (in its appserver) which I didn't disable yet. I could use a recommendation of a good Geronimo book as well. Regards djencks wrote: > > > On Aug 10, 2008, at 11:16 AM, devdev wrote: > >> >> Thank you Kevin for your reply. I was under the impression I don't >> need to >> use an embedded broker. > > That should work fine. If not it's a bug we'd like to fix. You > should be able to deploy a amq resource adapter using the geronimo- > activemq-ra and without a dependency on activemq-broker. > >> I took the example deployment xml as if I was using >> ActiveMQ that is running the appserver but I would change the url to >> the 5th >> computer. That is using the MessageDrivenBean in my EJB. But >> somehow I >> couldn't not connect to the ActiveMQ sitting on that 5th computer. >> After >> trying many things, I am wondering if there is something wrong w/ my >> XML >> deploy file or the whole approach is not supported. > > Ideally we would have an integration test to demonstrate this works. > Meanwhile seeing your geronimo plan and any error messages you can > find might be helpful. > > thanks > david jencks > > > >> >> >> Regards >> JFR >> >> >> >> Kevan Miller wrote: >>> >>> >>> On Aug 8, 2008, at 2:13 PM, devdev wrote: >>> >>>> >>>> Regarding #1, would you please point me to some instructions or >>>> examples? I >>>> have a 4 appservers running on different computers and I'd like to >>>> install >>>> an ActiveMQ on a 5th computer and have the 4 appservers sending/ >>>> receiving >>>> message from AMQ. >>> >>> I don't know of any explicit documentation for this use case. Perhaps >>> someone would be interested in generating some? >>> >>> This URL shows the deployment plan used for the embedded ActiveMQ >>> resource adapter -- >>> http://cwiki.apache.org/GMOxDOC21/deployment-plans.html#Deploymentplans-EmbeddedActiveMQresourceadapter >>> >>> Note the property setting for 'ServerUrl'. If you're using the same >>> version of ActiveMQ that Geronimo embeds (G 2.1.2 uses 4.1.2), you >>> could use the above plan as a guide and deploy a new resource adapter >>> for the external ActiveMQ server. Alternatively, if you're using a >>> different ActiveMQ version, deploy the activemq rar file (in lib/ >>> optional of the activemq installation) using the same general scheme >>> -- setting the ServerUrl property in your deployment plan (assuming >>> ActiveMQ has not changed their RA config properties). >>> >>> --kevan >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/ActiveMQ-questions-tp6326283s134p18915577.html >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> > > > -- View this message in context: http://www.nabble.com/ActiveMQ-questions-tp6326283s134p18918413.html Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.