[JBoss Messaging] - Re: messaging flow control related question
by raghum
I am still having the same problem - the JMS server running out of memory when configured with the mySQL database (4.1.20) too.
The behaviour of the program in brief:
* the program is time limited - terminates after a time period. So, when the program terminates, there are still lots of unconsumed messages in the topic. But the messages are marked as NON_PERSISTENT while sending; Also before terminating the program, all the connections, subscriptions (producer, consumer) and sessions are closed. Messages can be still be found in the database after the program has terminated.
* If the same program is run twice over, the JMS server complains of out-of-memory errors. The JVM heap size is 1GB but it should not matter as whatever be the heap size, the problem is bound to occur later.
Any work arounds?
Thanks
Raghu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961276#3961276
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961276
19 years, 9 months
[EJB 3.0] - Compound primary key with cmr
by Ajaleo
hi all!
I'd like to know how I can create a entity with has a compound primary key which fields that are cmrs too. I've been googling and searching this forum but I haven't found how.
I've create the Entity with the X cmrs and an
@Id
public Long id
and a SessionBean to ensure that there isn't other entity with the same fields but I'm looking for this checking being performed automatically. I've used Dali and Netbeans to get the Entity from the database but it doesn't deploy.
I've create the Entity bean with the three cmrs and the three ids (all of the related entities have one Id field) but the queries hibernate create include the fields duplicated (one for cmr, one for cmp)
Could you give me any information?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3961269#3961269
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3961269
19 years, 9 months