Re: ActiveMQ questions

2009-11-27 Thread easyl

thanks,

But I cannot find activemq.xml
under Geronimo_HOME/var/activemq/conf

I would still give it a try..

btw, should the activemq.xml look like this
http://activemq.apache.org/configuring-brokers.html



RunHua Chi wrote:
 
 Go to Geronimo_HOME/var/activemq/conf directory and update activemq.xml
 file according to your needs. You can have the same experiences as you can
 do for a standalone ActiveMQ server.
 If you need to update ActiveMQ default port in Geronimo, you may update
 the
 value of ActiveMQPort in /var/config/config-substitutions.properties file.
 
 Hope this helps.
 
 Jeff C
 
 
 
 On Tue, Nov 24, 2009 at 11:09 PM, easyl easy@gmail.com wrote:
 

 I use geronimo 2.1.2.
 It seems that the only way to configurate embedded AMQ is through
 ServerUrl.

 For example:
 config-property-setting

 name=ServerUrltcp://localhost:61616?jms.copyMessageOnSend=falseamp;jms.watchTopicAdvisories=falseamp;socket.tcpNoDelay=trueamp;wireFormat.tcpNoDelayEnabled=true/config-property-setting


 Now I want to completely disable advisory message.
 See: http://activemq.apache.org/advisory-message.html
 The configuration is through XML config data.
  broker advisorySupport=false...

 How can I do that in geronimo?
 I try to follow the instructions from
 http://activemq.apache.org/resource-adapter-properties.html

 To add this in deploy plan...
 config-property-setting
 name=BrokerXmlConfigxbean:config.xml/config-property-setting

 But geronimo can not handle xbean schema.
 ...did not start because Failed to startup an embedded broker:
 xbean:config.xml, due to: java.io.IOException: Could load xbean
 factory:java.lang.NoClassDefFoundError:
 org/springframework/beans/BeansException





 --
 View this message in context:
 http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26497537.html
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


 
 

-- 
View this message in context: 
http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26540192.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: ActiveMQ questions

2009-11-26 Thread chi runhua
Go to Geronimo_HOME/var/activemq/conf directory and update activemq.xml
file according to your needs. You can have the same experiences as you can
do for a standalone ActiveMQ server.
If you need to update ActiveMQ default port in Geronimo, you may update the
value of ActiveMQPort in /var/config/config-substitutions.properties file.

Hope this helps.

Jeff C



On Tue, Nov 24, 2009 at 11:09 PM, easyl easy@gmail.com wrote:


 I use geronimo 2.1.2.
 It seems that the only way to configurate embedded AMQ is through
 ServerUrl.

 For example:
 config-property-setting

 name=ServerUrltcp://localhost:61616?jms.copyMessageOnSend=falseamp;jms.watchTopicAdvisories=falseamp;socket.tcpNoDelay=trueamp;wireFormat.tcpNoDelayEnabled=true/config-property-setting


 Now I want to completely disable advisory message.
 See: http://activemq.apache.org/advisory-message.html
 The configuration is through XML config data.
  broker advisorySupport=false...

 How can I do that in geronimo?
 I try to follow the instructions from
 http://activemq.apache.org/resource-adapter-properties.html

 To add this in deploy plan...
 config-property-setting
 name=BrokerXmlConfigxbean:config.xml/config-property-setting

 But geronimo can not handle xbean schema.
 ...did not start because Failed to startup an embedded broker:
 xbean:config.xml, due to: java.io.IOException: Could load xbean
 factory:java.lang.NoClassDefFoundError:
 org/springframework/beans/BeansException





 --
 View this message in context:
 http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26497537.html
 Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.




Re: ActiveMQ questions

2009-11-24 Thread easyl

I use geronimo 2.1.2.
It seems that the only way to configurate embedded AMQ is through
ServerUrl.

For example:
config-property-setting
name=ServerUrltcp://localhost:61616?jms.copyMessageOnSend=falseamp;jms.watchTopicAdvisories=falseamp;socket.tcpNoDelay=trueamp;wireFormat.tcpNoDelayEnabled=true/config-property-setting


Now I want to completely disable advisory message. 
See: http://activemq.apache.org/advisory-message.html
The configuration is through XML config data.
  broker advisorySupport=false...

How can I do that in geronimo? 
I try to follow the instructions from
http://activemq.apache.org/resource-adapter-properties.html

To add this in deploy plan...
config-property-setting
name=BrokerXmlConfigxbean:config.xml/config-property-setting

But geronimo can not handle xbean schema.
...did not start because Failed to startup an embedded broker:
xbean:config.xml, due to: java.io.IOException: Could load xbean
factory:java.lang.NoClassDefFoundError:
org/springframework/beans/BeansException





-- 
View this message in context: 
http://old.nabble.com/ActiveMQ-questions-tp6326283s134p26497537.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: ActiveMQ questions

2008-08-10 Thread Kevan Miller


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



Re: ActiveMQ questions

2008-08-10 Thread devdev

Thank you Kevin for your reply.  I was under the impression I don't need to
use an embedded 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.

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.



Re: ActiveMQ questions

2008-08-10 Thread David Jencks


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.






Re: ActiveMQ questions

2008-08-10 Thread devdev

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.