[JBoss jBPM] - Signaling Transition from a Java State
by waterloo
Hi all,
I need to signal a transition from a Java state and I don't know how to gain access to the current process instance.
In fact I have a highly specialized Java Class (the CommandHandler class) that handles all states in the process. Each type of state executes a different method in the CommandHandler class, which has a set of specific parameters.
It's like:
- jpdl
<java class="CommandHandler"
| g="281,211,80,40" method="doSomething" name="0">
| <arg>
| <string value="0" />
| </arg>
| <arg>
| <string value="13" />
| </arg>
| <arg>
| <string value="" />
| </arg>
| <transition g="-46,-18" name="to 1" to="1" />
| <transition g="-46,-18" name="to 13" to="13" />
| </java>
-java
| void doSomething(String curLabel, String gotoLabel, String expr) {
| ......
| }
When executing doSomething, I need to signal a transition either to 1 or 13 but I don't know how to do it since I don't have any link with the runtime within a Java state.
Any help will be appreciated.
cheers
tco
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247635#4247635
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247635
16 years, 8 months
[JBoss Messaging] - Re: JBM 1.4 and container transactions
by FrankTheTank
"gaohoward" wrote : JBM doesn't use XA datasource. You just need to configure your MDB to be transactional, that's ok.
|
You can do that?
"ejb3workshop" wrote : I am injecting my connection factory using
|
|
| | @Resource(name = "jms/ConnectionFactory")
| | protected ConnectionFactory m_factory;
| |
|
| and then in jboss.xml I am mapping it to the actual connection factory :
|
|
| | <resource-ref>
| | <res-ref-name>jms/ConnectionFactory</res-ref-name>
| | <jndi-name>java:/JmsXA</jndi-name>
| | </resource-ref>
| |
|
| You can of course also inject the JmsXA connection factory directly.
That might be my problem. Initially I had my emitter as an MBean everyone could use but over time it was used as a simple lib and thus the ConnectionFactory had to be gained by lookup.
I'll try it again as an MBean.
Thanks for the Help!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247628#4247628
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247628
16 years, 8 months
[JBoss Messaging] - Re: JMSServerControl.createQueue() fails when there are any
by jmesnil
I've managed to reproduce the issue using only JMS API (no management code).
It seems the problem is related to global depaging.
The code to show the problem is SenderWithoutManagement attached to https://jira.jboss.org/jira/browse/JBMESSAGING-1695 and the settings in jbm-configuration.xml:
| <global-page-size>10485760</global-page-size>
| <paging-max-global-size-bytes>104857600</paging-max-global-size-bytes>
|
The example does the steps:
1/ ceate a temp queue
2/ create a consumer for the temp queue
3/ send a message on the temp queue
4/ consume the message from the temp queue using the consumer
5/ send 50000 messages on *another queue*
6/ send a message on the temp queue
7/ consume the message from the temp queue using the consumer open at #2
The 1st time, the example runs fine.
The 2nd time, step #7 fails as the consumer does not receive a message from the consumer
Even if I increase the number of messages sent to another queue e.g. to 400000, the issue appears only on the 2nd run.
This is similar to the issue reported by the user as the management code used internally a client consumer which is used for the lifespan of the messaging server.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247623#4247623
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247623
16 years, 8 months