[jBPM] - Event Listener Problem
by devendra katiyar
devendra katiyar [http://community.jboss.org/people/dev.katiyar] created the discussion
"Event Listener Problem"
To view the discussion, visit: http://community.jboss.org/message/569802#569802
--------------------------------------------------------------
I am implement Log Event Listener using example given in user guide
<process name="EventListener" xmlns="http://jbpm.org/4.4/jpdl">
<on event="start">
<event-listener class="org.jbpm.examples.eventlistener.LogListener">
<field name="msg"><string value="start on process definition"/></field>
</event-listener>
</on>
<start>
<transition to="wait"/>
</start>
<state name="wait">
<on event="start">
<event-listener class="org.jbpm.examples.eventlistener.LogListener">
<field name="msg"><string value="start on activity wait"/></field>
</event-listener>
</on>
<on event="end">
<event-listener class="org.jbpm.examples.eventlistener.LogListener">
<field name="msg"><string value="end on activity wait"/></field>
</event-listener>
</on>
<transition to="park">
<event-listener class="org.jbpm.examples.eventlistener.LogListener">
<field name="msg"><string value="take transition"/></field>
</event-listener>
</transition>
</state>
<state name="park"/>
</process>
and LogListener class like below
public class *LogListener* implements EventListener {
// value gets injected from process definition
String msg;
public void notify(EventListenerExecution execution) {
List<String> logs = (List<String>) execution.getVariable("logs");
if (logs==null) {
logs = new ArrayList<String>();
execution.setVariable("logs", logs);
}
logs.add(msg);
execution.setVariable("logs", logs);
}
}
but when I am testing using Junit
ProcessInstance processInstance = executionService.startProcessInstanceByKey("EventListener");
In above line getting Nullpointer Exception?
can any one help regards this , or any other reference to implement Event Listener in jbpm4
Thanks all
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569802#569802]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months
[JBoss Messaging] - JBM stops reconnection to a remote provider
by Ivan Rododendro
Ivan Rododendro [http://community.jboss.org/people/rododendro.ivan] created the discussion
"JBM stops reconnection to a remote provider"
To view the discussion, visit: http://community.jboss.org/message/569842#569842
--------------------------------------------------------------
Hi
I have two JBoss 5.1.0 instances running JBM 1.4.3, one is JMS provider, on the other I have a MDB client.
When I stop the JMS Provider the other instance starts reconnection procedure. If the JMS propvider is re-started quickly the reconnection goes fine but if the provider stays down a few minute no reconnection occurs. In fact the client instance stops reconnection procedure after a few tries.
Does anyone knows how to configure this behaviour ?
thanks
ivan
Hi
I have two JBoss 5.1.0 instances running JBM 1.4.3, one is JMS provider, on the other I have a MDB client.
When I stop the JMS Provider the other instance starts reconnection procedure. If the JMS propvider is re-started quickly the reconnection goes fine but if the provider stays down a few minute no reconnection occurs. In fact the client instance stops reconnection procedure after a few tries.
Does anyone knows how to configure this behaviour ?
thanks
ivan
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569842#569842]
Start a new discussion in JBoss Messaging at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months
[JNDI and Naming] - JBoss 4.0.2 -> 5.1 problem with EJB3 lookup via jndi
by Balaÿ Clément
Balaÿ Clément [http://community.jboss.org/people/skin123] created the discussion
"JBoss 4.0.2 -> 5.1 problem with EJB3 lookup via jndi"
To view the discussion, visit: http://community.jboss.org/message/569674#569674
--------------------------------------------------------------
Hello,
my problem is verry simple but i dont know if a solution exists. The global JNDI name has changed between jboss 4.0.2 and 5.1.
By exemple I have one EJB named *PostManagerBean* with interface *PostManager*
@Stateless
@Local(PostManager.class)
public class PostManagerBean implements PostManager {
...
}
public interface PostManager {
...
}
To load this EJB with JBoss 4.0.2 i use: *context.lookup("com.post.PostManager")*
with Jboss 5.1, I need to use *context.lookup("PostManagerBean/local")*
Is it possible to configure JBoss 5.1 to set the format of EJB3 jndi name inscription ?
i.e I'd like to load EJB3 in JBoss 5.1 with: *context.lookup("com.post.PostManager")* without annotation changement in my bean (with annotation @LocalBinding).
Thank you very much for responses
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/569674#569674]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 5 months