Logging in embedded broker

2012-03-20 Thread unficyp
Hi, how can i set the logging level to debug in an embedded broker without any XML files ? thx gw -- View this message in context: http://activemq.2283324.n4.nabble.com/Logging-in-embedded-broker-tp4490456p4490456.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: durable consumers and broker failure

2012-03-20 Thread john.horner
Looks like we ran into a variant of https://issues.apache.org/jira/browse/AMQ-3353 AMQ-3353 (the issue your junit was written against). I downloaded the latest 5.6 snapshot, and my usecase works against that. However, I tried the workaround suggested for 5.5.0 in the jira, and it does not work

Re: Embedded Broker / AJAXServlet / Jetty

2012-03-20 Thread unficyp
Hi, so i changed a few things. - my java code sends to the standalone broker. i can see the messages in the /admin page and in my java test code. - i copied my js test html to the /demo dir so that i can access it using the jetty in standalone broker. - i see the messages arricing in the ajax code

reading several messages in one transaction

2012-03-20 Thread yilativs
Hello, Is it possible to reads several messages from queue/topic in ONE XA transaction, write the messages to an other source (database) in same XA transaction, remove all messages from queue/topic and only after all is fine commit the transaction? Thanks in Advance, Vitaliy S -- View this messa

Re: Does ActiveMQ work with 32bit and 64bit Java installations?

2012-03-20 Thread Hiram Chirino
works with either. On Tue, Mar 20, 2012 at 12:50 PM, Ben Stover wrote: > Does ActiveMQ work with 32bit and 64bit Java installations? > > Or do I always have to select 32bit Java/J2EE even when I have an > additional 64bit Java under 64bit Win7? > > Thank you > Ben > > > > > > -- ** *Hiram C

Does ActiveMQ work with 32bit and 64bit Java installations?

2012-03-20 Thread Ben Stover
Does ActiveMQ work with 32bit and 64bit Java installations? Or do I always have to select 32bit Java/J2EE even when I have an additional 64bit Java under 64bit Win7? Thank you Ben

Re: durable consumers and broker failure

2012-03-20 Thread Gary Tully
hmm, ActiveMQ should satisfy your requirement in this area. Have a peek at org.apache.activemq.usecases.DurableSubscriberWithNetworkDisconnectTest[1] and see if you can make a variant that validates your restart broker scenario. This will be the best way to capture your requirement and also can

Re: Embedded Broker / AJAXServlet / Jetty

2012-03-20 Thread Dejan Bosanac
Hi Gerald, it accesses /amq but as POST and provides some data, like destination and such. You can also take a look at https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src/test/java/org/apache/activemq/web/AjaxTest.java?hb=true it should help understand what's happening und

Re: durable consumers and broker failure

2012-03-20 Thread john.horner
Thank you for the rapid response. I have changed my network connector definition to the following: and I still get the same behavior as before. Fault tolerance for broker failure is a critical requirement for us. Please help me understand a couple of things about this. Is ActiveMQ intended

Re: Embedded Broker / AJAXServlet / Jetty

2012-03-20 Thread unficyp
I'm currently not at home so i can't try my code. I tried the portfolio example coming with the websamples. portfolio.html first connects to the url http://127.0.0.1:8161/demo/amq if i point the browser to the same url and start the portfolio publisher, i get a response back, not only the empty S

Re: 10 seconds wait time for kahadb lock

2012-03-20 Thread Pvbouwel
OK, apparently you had a little typo. It should be: databaseLockedWaitDelay Thanks a lot! Now I can do exactly what I wanted to do! -- View this message in context: http://activemq.2283324.n4.nabble.com/10-seconds-wait-time-for-kahadb-lock-tp4488418p4488859.html Sent from the ActiveMQ - Us

Re: 10 seconds wait time for kahadb lock

2012-03-20 Thread Pvbouwel
If I try that I get the following error: Attribute 'databaseLockWaitDelay' is not allowed to appear in element 'kahaDB' By the way: I am using activemq-5.4.3. -- View this message in context: http://activemq.2283324.n4.nabble.com/10-seconds-wait-time-for-kahadb-lock-tp4488418p4488847.html Sent

Problem pure nothing slave-master

2012-03-20 Thread Oscar Pernas
Hi all, Im having a problem and I dont know how to resolve it. I have a broker called master, that doesnt have any changes between the file to make a cluster. I have a slave node that contains this (only thing that changed is bold) http://www.springframework.org/schema/beans"; xmlns:amq="http://

Re: Embedded Broker / AJAXServlet / Jetty

2012-03-20 Thread Dejan Bosanac
Hi, you need to provide the destination name of your topic somehow, so calling plain /amq will not get desired result. I think you can set default destination name for the servlet, but even then I'm not sure it'll work. Regards -- Dejan Bosanac Senior Software Engineer | FuseSource Corp. dej...

Re: Embedded Broker / AJAXServlet / Jetty

2012-03-20 Thread unficyp
Hi, thanks for the answer, just for my understanding: It's not possible to connect with a browser to the servlet on http://127.0.0.1:8080/amq and get a response when a message enters the topic ? regards, gw -- View this message in context: http://activemq.2283324.n4.nabble.com/Embedded-Broker-

Re: durable consumers and broker failure

2012-03-20 Thread Gary Tully
try setting dynamicOnly=false, this controls the restart of durable subscriptions in a network bridge on startup. When false, they are activated on start, rather than on demand when the local durable reconnects. On 19 March 2012 20:46, john.horner wrote: > I have a simple network of brokers, and

Re: How to log all incoming msgs of Queue "hello" into a separate logfile?

2012-03-20 Thread Gary Tully
that sounds like a nice enhancement to the logging broker plugin. It would be easy to implement by appending the destination name to the logger request. Have opened https://issues.apache.org/jira/browse/AMQ-3779 to track this. It does raise the question about composite destinations, should there be

Re: 10 seconds wait time for kahadb lock

2012-03-20 Thread Dejan Bosanac
If you're trying to use KahaDB than should work for you Regards -- Dejan Bosanac Senior Software Engineer | FuseSource Corp. dej...@fusesource.com | fusesource.com skype: dejan.bosanac | twitter: @dejanb blog: http://www.nighttale.net ActiveMQ in Action: http://www.manning.com/snyder/ On Tu

Re: Embedded Broker / AJAXServlet / Jetty

2012-03-20 Thread Dejan Bosanac
Hi Gerald, I'd suggest you try to debug http traffic between your html page and servlet. Maybe that'll give you some more insight in what's going on. BTW. you're setup looks ok, but I suspect you're might be using the amq js object in a wrong way or something. Regards -- Dejan Bosanac Senior So

10 seconds wait time for kahadb lock

2012-03-20 Thread Pvbouwel
Is there a reason why it is not possible to set the timeout for brokers who want to acquire a lock on the kahadb? When I look into the source code (KahaPersistenceAdapter.java). I see: private static final int STORE_LOCKED_WAIT_DELAY = 10 * 1000; I wanted to set this wait_delay using a conf

Re: How to log all incoming msgs of Queue "hello" into a separate logfile?

2012-03-20 Thread Torsten Mielke
Hi, I don't think you can configure the logging plugin to only log msgs sent to a certain destination into a separate log file. However you can configure log4j so that all output from the logging plugin goes into a separate log file. E.g. add the following configuration to your conf/log4j.prope

Re: Migrate existing kahaDB to a new version of ActiveMQ possible?

2012-03-20 Thread Torsten Mielke
Hi, KahaDB is not an SQL database and hence you cannot inspect it using SQL tools. It uses its own internal format for storing data. In general it is possible to simply copy the kahadb folder to your 5.5.1 installation and start the broker with that old kahadb instance. The broker will upgrade

Integration of Oracle SOA Suite (OSB) with ActiveMQ

2012-03-20 Thread PJR69
Background: There are two parties A and B. Party A is an all-Oracle house, using SOA Suite (with the Oracle Service Bus for tranporting JMS-messages). Party B is an open-source house, using ActiveMQ for the JMS-infrastructure. These parties have not been involved with each other before, but now the

Re: ActiveMQ client jars?

2012-03-20 Thread Torsten Mielke
Hello, JMS clients typically only need activemq-core.jar and activemq-pool.jar on their classpath. Using a pooled connection factory is highly recommended. Cheers, Torsten Mielke tors...@fusesource.com tmie...@blogspot.com On Mar 19, 2012, at 10:00 PM, jaskirat singh wrote: > I believe you

How to log all incoming msgs of Queue "hello" into a separate logfile?

2012-03-20 Thread Ben Stover
How can I log all incoming msgs in Queue "hello" into a separate logfile D:\dev\activemq\hello.log As far as I understand I have to active logging at first according to the Logging Interceptor described here: http://activemq.apache.org/logging-interceptor.html Ok, I specify: ... But ho

Embedded Broker / AJAXServlet / Jetty

2012-03-20 Thread Gerald Weber
Hi all, i'm using activemq 5.4.3 together with Jetty 8.1.2. I built a java program using an embedded broker in a thread. The thread creates a topic, reads messages from ZeroMQ and sends them to the topic. In the program, i enabled a jetty embedded server using the AJAXServlet in a ServletContext