Re: persistence problems in consumer having java exception

2008-10-23 Thread Imagine_David
i think the main problem is how can i make JMS and JDBC operations in one transaction. if the answer is yes. can i solve the problem by using Jenck? Hans Bausewein wrote: > > Which ActiveMQ version do you use? > > Where does the exception occur? > > During a MessageConsumer.receive() ? > In t

Re: Is it possible to integrate ActiveMQ with JBoss 5 Release 2 on a Windows XP machine

2008-10-23 Thread ilango_g
Do I have to download the spring jars and drop it into Jboss somewhere? I am a little lost here. ilango_g wrote: > > Is the Spring jar a separate download for ActiveMQ? > > > bsnyder wrote: >> >> On Thu, Oct 23, 2008 at 3:13 PM, ilango_g <[EMAIL PROTECTED]> wrote: >>> >>> Actually I have jus

Re: Is it possible to integrate ActiveMQ with JBoss 5 Release 2 on a Windows XP machine

2008-10-23 Thread ilango_g
Is the Spring jar a separate download for ActiveMQ? bsnyder wrote: > > On Thu, Oct 23, 2008 at 3:13 PM, ilango_g <[EMAIL PROTECTED]> wrote: >> >> Actually I have just tried this and this is what I got: >> An error that says: >> 16:31:26,544 WARN [ActiveMQResourceAdapter] Could not start up emb

Re: Add simple service registry to ActiveMQ

2008-10-23 Thread Bruce Snyder
On Thu, Oct 23, 2008 at 3:26 PM, Maarten_D <[EMAIL PROTECTED]> wrote: > > Is it possible to strip ServiceMix down to just the registry and the broker? That's more or less ServiceMix 3 without any of the JBI components. Bruce -- perl -e 'print unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>

Re: Add simple service registry to ActiveMQ

2008-10-23 Thread Maarten_D
Is it possible to strip ServiceMix down to just the registry and the broker? bsnyder wrote: > > On Thu, Oct 23, 2008 at 7:42 AM, Maarten_D <[EMAIL PROTECTED]> > wrote: >> >> Hi Matthew & Joe, >> >> Thanks for the tips. I looked into ZeroConf as well, but that feature of >> ActiveMQ has almost n

Re: Is it possible to integrate ActiveMQ with JBoss 5 Release 2 on a Windows XP machine

2008-10-23 Thread Bruce Snyder
On Thu, Oct 23, 2008 at 3:13 PM, ilango_g <[EMAIL PROTECTED]> wrote: > > Actually I have just tried this and this is what I got: > An error that says: > 16:31:26,544 WARN [ActiveMQResourceAdapter] Could not start up embeded > ActiveMQ > Broker 'xbean:broker-config.xml': Could not load xbean > fac

Re: Do you think it will work for JBoss 5

2008-10-23 Thread Hans Bausewein
ilango_g wrote: > > Do you think this integration will work on JBoss 5? > It should. But I had some problems on (5.0 CR2) when I tried it recently. 2008-10-07 11:48:59,871 DEBUG [org.jboss.ejb.MessageDrivenContainer] (main) Initialization failed jboss.j2ee:jndiName=local/[EMAIL PROTECTED],s

Re: Is it possible to integrate ActiveMQ with JBoss 5 Release 2 on a Windows XP machine

2008-10-23 Thread ilango_g
Actually I have just tried this and this is what I got: An error that says: 16:31:26,544 WARN [ActiveMQResourceAdapter] Could not start up embeded ActiveMQ Broker 'xbean:broker-config.xml': Could not load xbean factory:java.lang.NoClas sDefFoundError: org/springframework/core/io/FileSystemReso

Re: Is it possible to integrate ActiveMQ with JBoss 5 Release 2 on a Windows XP machine

2008-10-23 Thread Bruce Snyder
On Thu, Oct 23, 2008 at 1:30 PM, ilango_g <[EMAIL PROTECTED]> wrote: > > Hi > I have integrated ActiveMQ with JBoss 4.2.2. Will the same instructions work > for JBoss 5. > The instructions I used were: > http://activemq.apache.org/integrating-apache-activemq-with-jboss.html I wrote the instruction

Problem starting embedded broker in JBoss 5

2008-10-23 Thread ilango_g
Hi I tried embedding ActiveMQ inside JBoss 5, but it does not seem to work. I am getting the following error: 16:31:26,544 WARN [ActiveMQResourceAdapter] Could not start up embeded ActiveMQ Broker 'xbean:broker-config.xml': Could not load xbean factory:java.lang.NoClas sDefFoundError: org/spring

Do you think it will work for JBoss 5

2008-10-23 Thread ilango_g
Do you think this integration will work on JBoss 5? thanks Hans Bausewein wrote: > > > ilango_g wrote: >> >> ... >> I think the two remaining steps are to to do the following: (This is from >> "http://activemq.apache.org/jboss-integration.html"; >> ... >> > > looks like the way to go. > >

Is it possible to integrate ActiveMQ with JBoss 5 Release 2 on a Windows XP machine

2008-10-23 Thread ilango_g
Hi I have integrated ActiveMQ with JBoss 4.2.2. Will the same instructions work for JBoss 5. The instructions I used were: http://activemq.apache.org/integrating-apache-activemq-with-jboss.html thanks in advance -- View this message in context: http://www.nabble.com/Is-it-possible-to-integrate-

Re: Add simple service registry to ActiveMQ

2008-10-23 Thread Bruce Snyder
On Thu, Oct 23, 2008 at 7:42 AM, Maarten_D <[EMAIL PROTECTED]> wrote: > > Hi Matthew & Joe, > > Thanks for the tips. I looked into ZeroConf as well, but that feature of > ActiveMQ has almost no documentation, and the project that it relies on, > jmDNS, has literally no documentation that I could fi

Re: STOMP - Reject Message

2008-10-23 Thread James Strachan
2008/10/23 Innomin8 <[EMAIL PROTECTED]>: > > Hi All, > > I'm looking to make a reliable processor of messages in Perl. As part of > this, I have the requirement to reject messages (such as in the event of a > temporary issue which prevents the request from being completed). > > Is there any way, t

activemq-cpp durable subscriptions

2008-10-23 Thread subrash
does anybody hav an example of a simple durable subscription using activemq-cpp. it does not seem to work correctly in my case . It seems to work fine if i use a JAVA subscriber but does not work with activem-cpp subscriber. # a Subscriber Starts and the establishes a durable connection with a

STOMP - Reject Message

2008-10-23 Thread Innomin8
Hi All, I'm looking to make a reliable processor of messages in Perl. As part of this, I have the requirement to reject messages (such as in the event of a temporary issue which prevents the request from being completed). Is there any way, through the Stomp protocol to 'reject' a message withou

How to disconnect a client connection on the server side

2008-10-23 Thread xuyl
Hello everyone. I use the activeMQ5.1 as embeded server, anyone can tell me how to disconnect a client on the server side without JMX. I Send a message to client to tell client to disconnect by itself. It can runs correctly on same computer but it runs badly over the internet. Thanks in advance!

Re: No valid response received for command activemq-CPP

2008-10-23 Thread subrash
that solved the issue Timothy Bish wrote: > > I'd recommend updating to the 2.2.1 release as this will probably > resolve the issue since it still looks like you are running into a case > where producer flow control is needed to block you from producing more > messages then the broker can accomm

Re: Writing a custom (non-JMS) TCP protocol

2008-10-23 Thread Andy Gross
James, Thanks for the help! I now have a Mina-based JSON request/response codec written.It's unclear from reading the docs what the best way is to get this custom protocol working in ActiveMQ. I'm assuming that it can be done via activemq.xml somehow, but my questions are: 1) Wher

How to trace communication between AJAX web browser and jetty/ActiveMq ?

2008-10-23 Thread cmoulliard
Hi, I have adapted the existing code of the example Portfolio but unfortunately when my browser send HTTP requests to the servlet through AJAX javascript api it do not receive any response ? So my question are : - How can I trace the traffice between the browser and jetty web application server

Re: Add simple service registry to ActiveMQ

2008-10-23 Thread Joe Fernandez
Re the DS, you wouldn't have to restrict yourself to Java objects. Sounds like all you need in the DS is some sort of entry that can be used to map a service or component name to queue name. Joe Maarten_D wrote: > > Hi Matthew & Joe, > > Thanks for the tips. I looked into ZeroConf as well,

Re: Where the Message object (javascript) of amq.js is defined ?

2008-10-23 Thread Dejan Bosanac
I've just added some explanation about this. Cheers -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net cmoulliard wrote: > Many thanks Dejan. > > It could be in

Re: persistence problems in consumer having java exception

2008-10-23 Thread Imagine_David
Thank you for the replied Hans, i used version 5.1. it's during MessageConsumer.receive() just simply have NullPointerException. at first, i got XFireRuntimeException when i try to visit web service at consumer code by use xfire. these only one way i can get a persist message at db is i mark a de

Re: Add simple service registry to ActiveMQ

2008-10-23 Thread Maarten_D
Hi Matthew & Joe, Thanks for the tips. I looked into ZeroConf as well, but that feature of ActiveMQ has almost no documentation, and the project that it relies on, jmDNS, has literally no documentation that I could find. I'd rather go with something that has a little more info about it out there.

Re: Failover transport

2008-10-23 Thread selezovikj
Even only: failover://tcp://localhost:61617 does not work selezovikj wrote: > > I have a jms appender sending logging events to active mq broker. In the > jndi.properties I have the following provider url: > > java.naming.provider.url = > failover:(tcp://localhost:61617,tcp://localhost:616

Re: Add simple service registry to ActiveMQ

2008-10-23 Thread Joe Fernandez
What about employing a central LDAP directory service like ApacheDS? Your service providers would dynamically bind and unbind their services to and from the DS. The service consumers then use the DS to lookup the services. You can probably do all this relatively easily via the JNDI as long as th

Re: Writing a custom (non-JMS) TCP protocol

2008-10-23 Thread Dejan Bosanac
I'm just curious whether you've tried Stomp protocol and what do you find missing? Regards -- Dejan Bosanac http://www.ttmsolutions.com - get a free ActiveMQ user guide ActiveMQ in Action - http://www.manning.com/snyder/ Scripting in Java - http://www.scriptinginjava.net Andy Gross wrote:

Failover transport

2008-10-23 Thread selezovikj
I have a jms appender sending logging events to active mq broker. In the jndi.properties I have the following provider url: java.naming.provider.url = failover:(tcp://localhost:61617,tcp://localhost:61616)?initialReconnectDelay=20&maxReconnectDelay=1000&randomize=false&maxReconnectAttempts=10 S

RE: Add simple service registry to ActiveMQ

2008-10-23 Thread Powers, Matthew
Couldn't you use the ZeroConf protocol to do the discovery aspect of what you are looking for? -Original Message- From: Maarten_D [mailto:[EMAIL PROTECTED] Sent: 2008-10-23 8:12 AM To: users@activemq.apache.org Subject: Add simple service registry to ActiveMQ Hi, I'm developing a distr

Add simple service registry to ActiveMQ

2008-10-23 Thread Maarten_D
Hi, I'm developing a distributed system that has four types of components that need to work together. At first I just had a simple configuration with 1 component of each type, working and wired together using ActiveMQ. I now want to expand the system to include multiple components of each type an

Ending choice().when() block

2008-10-23 Thread dkozic
Hi there, Can anybody explain to me how to end choice().when() block in Java DSL. In Spring configuration it clearly demarcated header.foo = 'bar' >From this configuration it is clear that uriB will be "executed" after choice.

Re: persistence problems in consumer having java exception

2008-10-23 Thread Hans Bausewein
Which ActiveMQ version do you use? Where does the exception occur? During a MessageConsumer.receive() ? In that case: what exception do you get? If the exception occurred after it was received, the message can only be retrieved later if the session was transacted and if the transaction was rol

Re: persistence problems in consumer having java exception

2008-10-23 Thread Imagine_David
Am i need to use JDBCMessageStore which activemq provided to persist error message by myself when the java exception occured? if the answer is yes, how can i get the instance of JDBCMessageStore? should i config the activemq as non-persistent server? i pretty sure i shouldn't persist message by my

Re: Question related to prefetch size

2008-10-23 Thread Peter Niederwieser
rajdavies wrote: > > prefetchSize=0 is what you're probably after > Thanks, that seems to do the job. However the documentation needs to be fixed. From http://activemq.apache.org/what-is-the-prefetch-limit-for.html: If you have very few messages and each message takes a very long time to proc

Re: Writing a custom (non-JMS) TCP protocol

2008-10-23 Thread James Strachan
2008/10/23 Andy Gross <[EMAIL PROTECTED]>: > I'm currently using ActiveMQ in a mixed-language environment. For the > non-Java clients, I hacked the Ajax/MessageListener servlet modules to > produce JSON and wrote clients using the HTTP client/JSON libraries of the > respective languages (basicall