[JNDI and Naming] - Re: Using JNDI to connect to Websphere MQ, without hardcoded info
by Stuart Clayton
Stuart Clayton [http://community.jboss.org/people/stuartclayton22] created the discussion
"Re: Using JNDI to connect to Websphere MQ, without hardcoded info"
To view the discussion, visit: http://community.jboss.org/message/629707#629707
--------------------------------------------------------------
One of the people at my current project hit on the best solution of all: no ejb-jar.xml and jboss.xml, and only one "hard-coded" configurable property in the class annotations that nevertheless can be put in a single, central place in your code: the name of the resource adapter jar.
@MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "destinationType", propertyValue = CommonValue.JMS_QUEUE_CLASS),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "AgwIncomingGpsQ4"),
@ActivationConfigProperty(propertyName = "DeliveryActive", propertyValue = "false"),
@ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "true") })
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
@ResourceAdapter(value = CommonValue.JMS_RESOURCE_ADAPTER_NAME)
@AspectDomain("AgwIncomingGpsDomain4")
public class IncomingMdbQ4 implements MessageListener {
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629707#629707]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months
[jBPM] - ClassCastException on .splitNode().constraint()
by Connie Yang
Connie Yang [http://community.jboss.org/people/connie.yang] created the discussion
"ClassCastException on .splitNode().constraint()"
To view the discussion, visit: http://community.jboss.org/message/629111#629111
--------------------------------------------------------------
Hi,
I'm using jbpm-flow-5.2.0-SNAPSHOT.jar and got a ClassCastException below with the following Drools flow snippet. I've tried mvel dialet as well and got the same error.
.splitNode(1010).type(Split.TYPE_XOR).name("splitOnShouldActivate")
.constraint(305, "should activate", "code", "Java",
"(Boolean)(context.getVariable(\"shouldActivate\")) == Boolean.TRUE")
.constraint(2000, "should not activate", "code", "Java",
"(Boolean)(context.getVariable(\"shouldActivate\")) == Boolean.FALSE")
.done
Exception in thread "main" java.lang.ClassCastException: org.jbpm.workflow.core.impl.ConstraintImpl incompatible with org.jbpm.process.instance.impl.ConstraintEvaluator
at org.jbpm.workflow.instance.node.SplitInstance.internalTrigger(SplitInstance.java:69)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.impl.ExtendedNodeInstanceImpl.triggerCompleted(ExtendedNodeInstanceImpl.java:47)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:162)
at org.jbpm.workflow.instance.node.StateBasedNodeInstance.triggerCompleted(StateBasedNodeInstance.java:143)
at org.jbpm.workflow.instance.node.SubProcessNodeInstance.internalTrigger(SubProcessNodeInstance.java:130)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:55)
at org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:51)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:185)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:150)
at org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:49)
at org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:41)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.node.CompositeNodeInstance.internalTrigger(CompositeNodeInstance.java:106)
at org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:122)
at org.jbpm.workflow.instance.node.ForEachNodeInstance$ForEachSplitNodeInstance.internalTrigger(ForEachNodeInstance.java:97)
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/629111#629111]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 4 months