[JBossMQ] - JmsXA not installing esception listener on QueueConnection
by stone_42
Hello,
I have the following problem: In a cluster of two nodes (both jboss 4.0.3 sp1), I use MDBs and SLSBs sending messages to the MDBs. For this, the SLSBs use the following code to access a queue connection:
| InitialContext initialContext = new InitialContext();
| QueueConnectionFactory qcf = (QueueConnectionFactory) initialContext.lookup("java:/JmsXA");
| QueueConnection qc = qcf.createQueueConnection();
|
After some time running the cluster, I can see the following error in the log once a minute:
anonymous wrote :
| 2009-06-17 19:43:28,455 WARN (Connection Monitor Thread) [org.jboss.mq.Connection] Connection failure, use javax.jms.Connection.setExceptionListener() to handle this error and reconnect
| org.jboss.mq.SpyJMSException: No pong received; - nested throwable: (java.io.IOException: ping timeout.)
|
Now, this is my problem: As I'm in an EJB container, I am not allowed to call setExceptionListener(), and this should be handled by the container as described in http://www.jboss.org/community/wiki/IGetIOExceptionPingTimeoutHowDoIFixIt.
Can anyone please tell me waht I'm doing wrong?
Regards,
Martin
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238992#4238992
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238992
16 years, 10 months
[EJB 3.0] - Re: How to ignore persistence unit loading
by kariem
Thank you for taking the time to look at this.
"jaikiran" wrote : Where in the WAR file is this jar containing persistence.xml located? As far as i know, the WEB-INF/lib folder of an WAR is not scanned for deployments. So that should have skipped the persistence unit from deploying. But i will have to look at this once more to see if that's not how its expected to behave.
The JAR containing the persistence unit is located in WEB-INF/lib/xxx.jar.
According to the EJB 3 persistence spec (JPA 1.0) section 6.2, the following location may contain the root of a persistence unit (root means the jar file or directory whose META-INF directory contains the persistence.xml):
anonymous wrote :
| | * an EJB-JAR file
| | * the WEB-INF/classes directory of a WAR file
| | * a jar file in the WEB-INF/lib directory of a WAR file
| | * a jar file in the root of the EAR
| | * a jar file in the EAR library directory
| | * an application client jar file
| |
That means that the persistence unit should be scanned with this type of packaging (item 3 in the list above).
Is there a way in JBoss (or generally in JEE) to prevent this scanning?
Thank you,
Kariem
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4238984#4238984
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4238984
16 years, 10 months