[JBoss Messaging] - JBoss Messaging Failover problems
by agohar
Hi,
I am running two jboss instances in a cluster and deployed different queues/topics in all/deploy directory, but when i kill or shutdown master node, the other node is not able to take over deploy the queues on it. I get following errors:
| 2008-07-21 16:09:58,416 ERROR [org.jboss.resource.adapter.jms.inflow.JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@12a54b(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)1347991 destination=queue/myQueue isTopic=false tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/myDLQ DLQUser=null DLQMaxResent=10)
| javax.naming.NameNotFoundException: queue/myDLQ
| at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:242)
| at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)
| at sun.reflect.GeneratedMethodAccessor127.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:312)
| at $Proxy124.lookup(Unknown Source)
|
I've tried to deploy the queues to deploy-hasingleton directory but the problem is same. These queues are backed up by db.
Does anyone has any clue?
Thanks
PS: i've also tried to put them under deploy-hasingleton/jms directory but of no use
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165691#4165691
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165691
17 years, 9 months
[JBoss jBPM] - jbpm decision node EL and Bean
by ashishc
Hi All,
I want to refer to a value from a bean in a jbpm decision node, but not able to get that using EL. I can write the decision handler and do it that way, but i would prefer using the EL. Can anyone help me in that?
Here is what i am doing.
<?xml version="1.0" encoding="UTF-8"?>
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="http-demo-process">
| <swimlane name="initiator">
| <assignment actor-id="manager" />
| </swimlane>
| <start-state name="start">
| <transition to="call action"></transition>
| </start-state>
| <node name="call action">
| <action class="com.sample.action.MessageActionHandler">
| <message>First message</message>
| </action>
| <transition to="hasMessage?"></transition>
| </node>
|
| <decision name="hasMessage?" expression="#{( ??????? ? 'true' : 'false')}">
| <transition name="true" to="post data"></transition>
| <transition name="false" to="end"></transition>
| </decision>
| <node name="post data">
| <action class="com.sample.action.PostActionHandler">
| </action>
| <transition to="end"></transition>
| </node>
| <end-state name="end"></end-state>
| </process-definition>
and here is the bean which i created.
package com.sample.bean;
import java.io.Serializable;
public class MyVariableBean implements Serializable{
private static final long serialVersionUID = 1L;
private Boolean myValue = true;
public MyVariableBean() {}
public Boolean getMyValue()
{
return myValue;
}
public void setMyValue(Boolean paramVal)
{
myValue = paramVal;
}
}
The value of MyValue is set in Message Action Handler...but then how should I refer to the MyValue in decision node EL??
Please help..
thanks
ashish
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165680#4165680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165680
17 years, 9 months