Re: Can we send a JAVA object to ActiveMQ JMS Queue

2008-11-10 Thread Hans Bausewein
manish_goyal wrote: > > Hi, > > I am using Java application to send a JAVA Object to ActiveMQ JMS queue. > Is this possible to send ? > > I m using following method to send JAVA Object but it's not accepting JAVA > object. > producer.send(session.createObjectMessage(java_object)); > Is your

Re: thread deadlock issue in NMS

2008-10-29 Thread Hans Bausewein
mkeenan wrote: > > I'm using NMS 1.1 and I *think* there is a thread deadlock issue. > > If you can run (and reproduce the issue) on Java 6, you can test it on the Threads page of "jconsole". Or use "jstack": jstack -help Usage: jstack [-l] (to connect to running pr

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: 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: JBoss Integration - recovering XAResource

2008-10-22 Thread Hans Bausewein
rball wrote: > > I upgraded to ActiveMQ 5.1.0 and this problem appears to have been > rectified > Hmm, interesting! So it seems the XA connection-definitions are not needed at all. (which also explains why they are not included by default) You might want to try 5.2.0 RC2. See: http://www

Re: MDB sample available?

2008-10-20 Thread Hans Bausewein
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. for me it worked (I think) Hans -- View this message in context: http://www.nabble.com/MDB-sample-

Re: JBoss Integration - recovering XAResource

2008-10-20 Thread Hans Bausewein
rball wrote: > > Question: Is the a way to clear the "persistent" Warning "Could not find > new XAResource to use for recovering non-serializable XAResource" that > keep comming up over and over, even after a server restart? > I don't get these warnings with XA transactions on JBoss 4.0.5 and

Re: JBoss Integration - recovering XAResource

2008-10-20 Thread Hans Bausewein
rball wrote: > > Clearing both these directories of any items like #34b# or the like clears > the nagging Warning Messages > It's easier to log at ERROR level if you do not like to see warnings. I don't think you get XA transactions if you remove some of its objects. If you want local transa

Re: JBoss Integration - recovering XAResource

2008-10-17 Thread Hans Bausewein
Have you added an XAConnectionFactory to the ActiveMQ resource adapter configuration? META-INF/ra.xml should contain an entry like: org.apache.activemq.ra.ActiveMQManagedConnectionFactory javax.jms.XAConnectionFactory org.apache.active

Re: MDB sample available?

2008-10-17 Thread Hans Bausewein
ilango_g wrote: > > I have a couple of servlets right now. I only need to know how to create > an MDB in ActiveMQ and how to have my servlets talking to the MDB. > JBoss has some MDB examples. You have to modify the deployment descriptor(s) to use ActiveMQ instead of JBoss MQ. (the standard JB

Re: integrating activeMQ with JBoss on a Windows XP machine

2008-10-15 Thread Hans Bausewein
ilango_g wrote: > > As an answer to my own question I found the Resource Adapter Archive file > in the apache-activemq-5.1.0\lib\optional folder. Is that the right file > to pick? > That's the one! Hans -- View this message in context: http://www.nabble.com/integrating-activeMQ-with-JBoss

Re: Define ServerUrl externally for ActiveMQ Resource Adapter

2008-10-10 Thread Hans Bausewein
Fush wrote: > > Hi! > I have deployed the activemq-rar-5.1.0.rar to my Jboss server. > . > I'd recommend removing the version number from "activemq-rar-5.1.0.rar". Or you have to update all your EJB deployment descriptors everytime you deploy a new ActiveMQ resource adapter. (or

Re: Define ServerUrl externally for ActiveMQ Resource Adapter

2008-10-10 Thread Hans Bausewein
Fush wrote: > > Hi! > I have deployed the activemq-rar-5.1.0.rar to my Jboss server. But I don't > like the fact that ServerUrl is defined in the ra.xml inside the rar. I > would like to set the value of this property (ie the url itself) in a more > accessible place, for example in a properties

Re: Is Pure Master/Slave Applicable?

2008-10-08 Thread Hans Bausewein
Olee wrote: > > Hi, I have tried this, before start activemq, I clean up all the data on > both slave and master, the slave can attached to the master successfully, > but when I run some client program, the async problem often occurs. > > Have you ever use Pure Master/Slave mode? Is it works?

Re: Pure Master/Slave Problem

2008-10-07 Thread Hans Bausewein
Olee wrote: > > Thanks for your suggestion. I have other questions. > > So the problem is due to multithread and deadlock on the slave? > Do you think pure master/slave is applicable? Or is asyncronization > problem very often in version 5.1? > My guess is that it is not as much used as the

Re: Pure Master/Slave Problem

2008-10-07 Thread Hans Bausewein
Hans Bausewein wrote: > > > See AMQ-1849 and AMQ-1950. > > that is: https://issues.apache.org/activemq/browse/AMQ-1849 https://issues.apache.org/activemq/browse/AMQ-1950 Hans -- View this message in context: http://www.nabble.com/Pure-Master-Slave-Problem-tp1985195

Re: Pure Master/Slave Problem

2008-10-07 Thread Hans Bausewein
Olee wrote: > > Dear All: > > I have tried the pure master/slave mode following the > instructions of the official website. However, I have the following > problem > > 1. When I tried the example of producer and consumer(which is > provided by activemq under the folder name

Re: Setting ActiveMQ Queues and QCFs as XA

2008-10-06 Thread Hans Bausewein
rmh1 wrote: > > Hi All, > > I have done a search across the forums and there doesn't seem to be much > hope, but i thought i would try and ask none the less %-| > > Does anyone know anything about configuring ActiveMQ as XA? I am using > Websphere App server and can't for the life of me work o

Re: problem with network of brokers in AMQ 5.2 SNAPSHOT

2008-10-01 Thread Hans Bausewein
Yuriy Gapon wrote: > > We have configured network of brokers containing 2 brokers. It seems to > work fine for about a day or so, and then something goes wrong. The system > stops working. Below all the details of the configuration and description > of the problem. > > Configuration. > AMQ vers

JMSJCA? (sun-jms-adapter)

2008-10-01 Thread Hans Bausewein
Has anyone tried "sun-jms-adapter" with an application server and ActiveMQ 5 as the JMS provider? Here's an overview of what it is supposed to do: https://jmsjca.dev.java.net/source/browse/*checkout*/jmsjca/jmsjca/unifiedjms/src/userdoc/sun-jms-adapter-readme.html Looks good. I think about tryi

Re: Books/Tutorials

2008-08-04 Thread Hans Bausewein
I'd first recommend Sun's documentation: http://java.sun.com/products/jms/index.jsp That's also what the ActiveMQ FAQ says: http://activemq.apache.org/how-do-i-get-started-with-jms.html "Enterprise Integration Patterns" mentioned here: http://activemq.apache.org/enterprise-integration-

Re: Master/Slave JDBC persistence using embedded broker in JBoss

2008-07-28 Thread Hans Bausewein
First of all, I'm not sure whether I'm the right person to answer your questions. There may be more uses of ActiveMQ than I know of. I've deployed 5.1.0 and the development version in a clustered JBoss environment with pure master/slave and as a single broker (because of some issues). skomarla

Re: Closing Producers

2008-07-28 Thread Hans Bausewein
rodih wrote: > > Thanks for the quick response. I will take your advice and will close > resources explicitly. > That's generally recommended. You should not rely on the implementation of a specific JMS provider, anyway. And it's usually not difficult to do. Follow the J2EE spec. The comment

Re: ActiveMQ 5.1 has thread leak

2008-07-25 Thread Hans Bausewein
Maybe you've found the issue (the slow increase of the number of threads), I saw on 5.1.0 / single broker. I wanted to test that with a simple application, but now I think I've only seen it with our complete app. We're also using a few topics. -- View this message in context: http://www.nabble.

Re: ActiveMQ 5.1 has thread leak

2008-07-24 Thread Hans Bausewein
Peter Young wrote: > > > My question is: what bug was solved in AMQ 5.2 that fixed the thread leak > and have other people encountered this problem with AMQ 5.1? > I had the same issue with a Pure Master/Slave configuration: https://issues.apache.org/activemq/browse/AMQ

Re: Failover / Persistence

2008-07-22 Thread Hans Bausewein
Hans Bausewein wrote: > > > If the consumers store their result in a database (or some other > transactional application), use XA transactions (2-phase commit). If > storage fails, the message should go back to the queue where it came from > (both transactions rolled b

Re: Failover / Persistence

2008-07-22 Thread Hans Bausewein
AD-16 wrote: > > Hello, > I am relatively new to activemq and I am trying to find the optimal setup > for a failover cluster of brokers. What i have is the following > > 2 physical servers each running a broker > 2 physical servers each running a consumer > 1 Java application implementing

Re: temp queues and advisory messages -- memory leaks

2008-07-21 Thread Hans Bausewein
vmasina wrote: > > We are using springframework 2.0.x jms remoting (request/response) and > Activemq 4.1.2 which is creating lot of advisory topics, which in turning > causing memory after performing 2-3k request/reponse calls. Upon further > investigation found that spring jms remoting uses te

Re: ActiveMQ causes application to hang on Glassfish

2008-07-15 Thread Hans Bausewein
everett wrote: > > > In the end, due to somewhat severe time constraints, I decided to use > RabbitMQ because it is well-documented and and actually works. > > Thank you for your help anyway, Hans. > > There is a lot "on their roadmap", but apparently not so much done, yet. It does not int

Re: ActiveMQ causes application to hang on Glassfish

2008-07-08 Thread Hans Bausewein
Hans Bausewein wrote: > > > If I understand Ramesh' description correctly, then you must replace > "genericra" with "activemq-rar-5.1.0.rar" (= value of "rar-name" property > in "ra.xml"). > > I have to correct myself he

Re: ActiveMQ causes application to hang on Glassfish

2008-07-07 Thread Hans Bausewein
everett wrote: > > Thank you for the tip. I've taken a look at Ramesh's excellent guide > (http://weblogs.java.net/blog/rampsarathy/archive/2007/03/glassfish_v2_an.html) > It was good for ActiveMQ 4, but it uses a generic JMS resource adapter, which makes it quite complicated (though I guess i

Re: ActiveMQ causes application to hang on Glassfish

2008-07-05 Thread Hans Bausewein
everett wrote: > > Hi, > > I am using the 5.1.0 release of ActiveMQ. My JVM is version 1.6.0_06 and I > am running on Debian Sid. I have a Java web application which uses > ActiveMQ that I have deployed in Glassfish V2 UR2. Both Glassfish and > ActiveMQ are running on the same server. > ...

Re: Web Admin page throwing an HTTP ERROR: 500

2008-07-02 Thread Hans Bausewein
Qwerty777 wrote: > > Hey all, > > When I go to http://mycompany.com:8161/admin/index.jsp (obviously > made-up), the web admin used to show up and work. In fact, the test > ActiveMQ's web admin still still works. > > Here's the error that I see: > HTTP ERROR: 500 > > org.apache.jsp.index_jsp