[Messaging, JMS & JBossMQ] - Re: Multiple persistence strategies in jbossMQ
by thangle
"adrian(a)jboss.org" wrote : What you've done is to deploy two different JBossMQs so unless you are
| looking up the correct connection factory for the correct topic it is not suprising
| that you will get a topic not found error.
|
If changing code is not an option, how can we avoid error Queue doesn't exist?
My requirement is just a little difference. Some queues are persisted locally using hsqldb-jdbc2. But there are queues need to be persisted to global database (oracle). We are using jboss4.0.3.SP1
Currently, I have two DMs. I tried to set attribute "NextInterceptor" for DestinationManager (DM1) defined in hsqldb-jdbc2 to DestinationManager (DM2)defined in oracle-jdbc2. The deployment works. From JMX web, I can see 2 DMs (but NextInterception of DM1 has service of PersistentManager defined in DM2 instead of DM2 itself???).
Scenario1: I deployed Queue-A with DM1. Messages got on Queue-A. But they were not persisted to oracle database. It indicates that NextInterceptor defined in DM1 is not working? Is it expected behavior? Do I need to do extra work to make NextInterceptor setting for DM works?
Scenario2: QueueA is registered to DM2. I got the same error javax.jms.InvalidDestinationException: The destination QUEUE.Queue-A doesn't exist (which is explained in above quote from Adrian). Can we have an option of failure tolerance in this queue lookup? Well, Queue-A was not in DM1 list but it was in DM2 list. If we let it pass here, the next interceptor in DM1 will call DM2 and it will see Queue-A there (of course, we assume next interceptor setting works in DM)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129975#4129975
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129975
18 years, 2 months
[JBoss jBPM] - Exceptions after calling jbpmContext.close - Please Help
by bloreguy
After business processing (creating a new process instance, and signalling twice), I close the jbpmContext and see these errors. Please help me in understanding what they might be about.
I also have a Hibernate Session in the same class, injected by Seam and set this session in jbpmContext using setSession, while creating jbpmContext.
--------------------------------------
15:30:05,968 INFO [STDOUT] jbpm context closed********
15:30:08,602 ERROR [JDBCTransaction] exception calling user Synchronization
java.lang.RuntimeException: exception invoking: getTaskInstance
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:135)
at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
at org.jboss.seam.Component.unwrap(Component.java:2100)
at org.jboss.seam.Component.getInstance(Component.java:1879)
at org.jboss.seam.Component.getInstance(Component.java:1844)
at org.jboss.seam.Component.getInstance(Component.java:1821)
at org.jboss.seam.Component.getInstance(Component.java:1816)
at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
ssProcessContext.java:231)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
ontext.java:145)
at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
text.java:114)
at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
sactionCompletion(JDBCTransaction.java:228)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:109)
at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
action.java:107)
at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)
at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
at org.jboss.seam.Component.unwrap(Component.java:2100)
at org.jboss.seam.Component.getInstance(Component.java:1879)
at org.jboss.seam.Component.getInstance(Component.java:1844)
at org.jboss.seam.Component.getInstance(Component.java:1821)
at org.jboss.seam.Component.getInstance(Component.java:1816)
at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
ssProcessContext.java:231)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
ontext.java:145)
at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
text.java:114)
at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
sactionCompletion(JDBCTransaction.java:228)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:109)
at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
action.java:107)
at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)
at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
at org.jboss.seam.Component.unwrap(Component.java:2100)
at org.jboss.seam.Component.getInstance(Component.java:1879)
at org.jboss.seam.Component.getInstance(Component.java:1844)
at org.jboss.seam.Component.getInstance(Component.java:1821)
at org.jboss.seam.Component.getInstance(Component.java:1816)
at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
ssProcessContext.java:231)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
ontext.java:145)
at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
text.java:114)
at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
sactionCompletion(JDBCTransaction.java:228)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:109)
at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
action.java:107)
at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)
at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
at org.jboss.seam.Component.unwrap(Component.java:2100)
at org.jboss.seam.Component.getInstance(Component.java:1879)
at org.jboss.seam.Component.getInstance(Component.java:1844)
at org.jboss.seam.Component.getInstance(Component.java:1821)
at org.jboss.seam.Component.getInstance(Component.java:1816)
at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
ssProcessContext.java:231)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
ontext.java:145)
at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
text.java:114)
at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
sactionCompletion(JDBCTransaction.java:228)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:109)
at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
action.java:107)
at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)
at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
at org.jboss.seam.Component.unwrap(Component.java:2100)
at org.jboss.seam.Component.getInstance(Component.java:1879)
at org.jboss.seam.Component.getInstance(Component.java:1844)
at org.jboss.seam.Component.getInstance(Component.java:1821)
at org.jboss.seam.Component.getInstance(Component.java:1816)
at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
ssProcessContext.java:231)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
ontext.java:145)
at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
text.java:114)
at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
sactionCompletion(JDBCTransaction.java:228)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:109)
at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
action.java:107)
at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
at org.jboss.seam.bpm.TaskInstance.getTaskInstance(TaskInstance.java:39)
at sun.reflect.GeneratedMethodAccessor178.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
at org.jboss.seam.Component.callComponentMethod(Component.java:2074)
at org.jboss.seam.Component.unwrap(Component.java:2100)
at org.jboss.seam.Component.getInstance(Component.java:1879)
at org.jboss.seam.Component.getInstance(Component.java:1844)
at org.jboss.seam.Component.getInstance(Component.java:1821)
at org.jboss.seam.Component.getInstance(Component.java:1816)
at org.jboss.seam.bpm.TaskInstance.instance(TaskInstance.java:64)
at org.jboss.seam.contexts.BusinessProcessContext.getTaskInstance(Busine
ssProcessContext.java:231)
at org.jboss.seam.contexts.BusinessProcessContext.flush(BusinessProcessC
ontext.java:145)
at org.jboss.seam.bpm.ManagedJbpmContext.beforeCompletion(ManagedJbpmCon
text.java:114)
at org.hibernate.transaction.JDBCTransaction.notifyLocalSynchsBeforeTran
sactionCompletion(JDBCTransaction.java:228)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java
:109)
at org.jboss.seam.transaction.HibernateTransaction.commit(HibernateTrans
action.java:107)
at org.jboss.seam.util.Work.workInTransaction(Work.java:44)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129973#4129973
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4129973
18 years, 2 months