[JBoss jBPM] - Action in timer
by rodosa
Hello,
I've created a simply timer that shows a message. This is the timer:
| <event type='node-enter' >
| <create-timer name='timeout' duedate='10 seconds' repeat='yes' >
| <script>System.out.println("I reset my timer!");</script>
| </create-timer> </event> <event type='node-leave' >
| <cancel-timer name='timeout' />
| </event>
|
This works, but ... when I want that, instead showing this message an action was executed, doesn't work!! Why?? Could someone help me??
The timer is:
| <event type='node-enter'>
| <create-timer name='timeout' duedate='10 seconds'
| repeat='yes'>
| <action name="Tester"
| class="com.ideit.modules.cmmi.jbpm.requirements.session.TesterActionHandler">
| </action>
| </create-timer>
| </event>
|
And the TesterActionHandler class is:
| public class TesterActionHandler implements ActionHandler {
|
| private ExecutionContext ec = null;
| public Log log = LogFactory.getLog(this.getClass());
|
| public void execute(ExecutionContext context) throws Exception {
|
| //I want to execute a this content with the timer
| }
|
My class extends of ActionHandler is that correct??? Could someone explain me why the content of the execute method is not being executed???
Thanks a lot,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205524#4205524
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205524
16 years, 11 months
[JBoss Cache: Core Edition] - Transaction manager file not found (Repost)
by fatboysuns
Hi,
I am using Jboss cache searchable in my application. I have a method which I use to cache all that I need. I have exposed this from the JMX-console. The method, creates a singleton "Cache" and "SearchableCache" object and uses this to perform the caching. The method works fine if I have no "Configuration" element attached to it, but when I try to use a Configuration for my cache, I am getting a
java.lang.ClassNotFoundException: org.jboss.cache.transaction.GenericTransactionManagerLookup
I have tried to create configurations via both Java and xml variants. The interesting part to the whole thing is, I get this exception only when accessing the method from JMX. If I access from the app, it seems to work absolutely fine.
I have tried using , the 3 transaction managers provided by jboss cache and also JTA.
My app runs on jboss 4.05 and uses Spring for service, transaction and configuring JMX.
Any help is appreciated.
Regards
Sundar S
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205374#4205374
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205374
16 years, 11 months
[Clustering/JBoss] - Re: Very strange problem while looking up HAJMS Topic
by chtimi2
Hello again. I said i was going to test your asynchronous idea but i'm sorry i can't reproduce the problem again when synchronous.. I must have changed something somewhere.
"bstansberry(a)jboss.com" wrote :
| You'd have to do something like what people do with JMS temporary queues to turn an asynchronous messaging system into something synchronous;. i.e. execute your commands on a different thread but have that thread at the end send a message to the node that initiated the process telling them it's complete. The node that initiates the process blocks waiting for those messages to come in.
| Complex. Yuck. Let's find a better way.
|
Yeah it could work but i would rather not do that..
anonymous wrote :
| The JGroups channel guarantees that the application will receive messages in the order sent. You can't guarantee that if you allow multiple threads to deliver messages.
|
| JGroups 2.6 (used in AS 5) improves on the single-threaded JG 2.4 architecture by having a thread pool to carry messages up, but it still only allows one thread at a time per sender to be delivering messages to the application. So wouldn't help with your problem.
|
Ah i see.
anonymous wrote :
| Yes, because AS 5 uses JBoss Messaging instead of JBossMQ. No more JMS server only running on one node. Instead your topics and queues are deployed on every node. So there would be no need for HA-JNDI to make a group RPC to find the JMS resources; they would be bound locally.
|
| BTW, you can install JBoss Messaging in 4.2.3 as well. See the JBoss Messaging project pages. Perhaps that's your solution.
Hm, i sort of want to try it now. I'm going to read about it a bit before i decide if it's not too tough to migrate.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4205479#4205479
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4205479
16 years, 11 months