[jboss-user] [JBoss Messaging] - Re: All messages are not persisted in Database.

2008-08-04 Thread sajankn
I tried to merge both subscriber and publisher code into a single file, but I'm not able to reproduce the same situation for this single file. It can be reproduced only if both run in separate jvm and in a clustered mode. | import javax.jms.JMSException; | import javax.jms.TextMessage; |

[jboss-user] [JBoss Messaging] - Re: All messages are not persisted in Database.

2008-08-04 Thread sajankn
As per the documentation of JMS, the default value is Persistent. "Delivery mode is set to PERSISTENT by default." Do I explicitly set the value to setDeliveryMode(DeliveryMode.PERSISTENT). Currently the messages are persisted into the Oracle DB. View the original post : http://www.jboss.com/i

[jboss-user] [JBoss Messaging] - Re: All messages are not consumed in Clustered environment.

2008-08-04 Thread sajankn
Sorry about that. I've posted the code and this issue on that thread itself. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168568#4168568 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168568 __

[jboss-user] [JBoss Messaging] - Re: All messages are not persisted in Database.

2008-08-04 Thread sajankn
I'm not able to attach the files, hence putting the code as such. Publisher Code: | import javax.jms.Connection; | import javax.jms.ConnectionFactory; | import javax.jms.DeliveryMode; | import javax.jms.JMSException; | import javax.jms.MessageProducer; | import javax.jms.Session; |

[jboss-user] [JBoss Messaging] - All messages are not consumed in Clustered environment.

2008-08-03 Thread sajankn
In clustered environment, not all the messages are consumed by the durable subscriber, even thought the messages are persisted in database. The messages are consumed only after one or more restarts of the consumer. Environment: JBoss : 4.2.2.GA JBM : 1.4.0.SP3 Java : 1.5.0_13 OS : Mac OS

[jboss-user] [JBoss Messaging] - Re: All messages are not persisted in Database.

2008-07-23 Thread sajankn
The following is the set up and steps I did to get this issue. Setup: JBoss/JBM Servers - 2 Nos. S1 & S2. Both are fresh servers in which the JBoss MQ is replaced with JBM and all the necessary configuration changes made as per the documentation. Publisher - 5 Nos. P1, P2, P3, P4 & P5. All the

[jboss-user] [JBoss Messaging] - Re: All messages are not persisted in Database.

2008-07-20 Thread sajankn
The durable subscribers are created before the messages are sent. First I create the durable subscriber and then only start the publisher. There are 5 publishers which run concurrently. Most of the time I lose the all messages published by only 1 Publisher. But there are instances where I've lo

[jboss-user] [JBoss Messaging] - Re: All messages are not persisted in Database.

2008-07-17 Thread sajankn
The messages are persisted in the database (Oracle). In the oracle-persistence-service.xml I've turned the UsingBatchUpdates to false. false There are no warnings or errors on the server. All the 5 publishers are different instance of the same class and they run simultaneously and publish 1000

[jboss-user] [JBoss Messaging] - All messages are not persisted in Database.

2008-07-16 Thread sajankn
Versions: JBoss AS : 4.2.2.GA JBM : 1.4.0.SP3 Java : 1.5.0_13 OS : Mac OSX Server 10.5.2 DB : Oracle 10g Setup: I'm doing the stress test on JBM. The following is the setup: AS with JBM - 2 (Both are up and running). Publisher - 5 (Each Publishing 1000 messages simultaneously). Runs in an indepe