[JBoss-user] [JBoss jBPM] - JMS async continuations

2006-02-27 Thread edgarpoce
hi,

 I had problems running the async stuff with JMS. When I try to run the command 
that comes in the message I get a lazy initialization exception because the 
hibernate session was closed. I think that it's because the command wasn't 
loaded with hibernate, it was serialized with jms. I solved it by creating a 
new command instance in my JMS command executor[1]. But it is not safe because 
the token might be in another node, maybe the Command interface should include 
a new method, e.g. (void execute(JbpmContext context)) that reloads the command 
fields and executes the command with the given context, has it any sense?.

And it seems JmsMessageServiceImpl delivers the messages before the process is 
saved, it causes the message consumer to try to execute the commands on a 
process which is not saved yet. Any idea of how to do a workaround for this? 

Any help will be highly appreciated.

[1]
anonymous wrote : 
  | /**
  |  * [EMAIL PROTECTED]
  |  */
  | public void onMessage(Message msg) {
  | try {
  | long tokenId = msg.getLongProperty("tokenId");
  | JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
  | Token token = jbpmContext.getGraphSession().loadToken(tokenId);
  | ExecuteNodeCommand cmd = new ExecuteNodeCommand(token.getNode(),
  | token);
  | cmd.execute();
  | jbpmContext.save(token);
  | } catch (Exception e) {
  | mdbContext.setRollbackOnly();
  | log.error("message '" + msg
  | + "' threw exception. rolling back transaction", e);
  | }
  | } 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926576#3926576

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926576


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Spring is in the air

2006-02-27 Thread edgarpoce
good work costin!!!

br,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926552#3926552

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926552


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - async continuations - JMS factory sends messages before the

2006-02-22 Thread edgarpoce
Hi,

I've got a small problem with the asynchronous continuations. 

According to the docs "The messages will be sent as part of the 
GraphSession.saveProcessInstance", my problem is that JMSMessageServiceFactory 
is sending the messages before the process is saved, is there any config option 
to make JMSMessageServiceFactory to send the messages only after the process is 
saved?. I'm using the service deployment model (jbpm.sar) in JBOSS 4.0.3SP1.

thanks in advance,
edgar

JMS factory config

  | 
  |   
  | 
  | 
  | 
  | 
  |   
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3925674#3925674

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3925674


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: asyn feature configuration

2006-02-17 Thread edgarpoce
hi,

well, I think I'm a little closer :).

It seems it's up to the client to handle the async stuff, either by starting 
the CommandExecutorThread (e.g. by running the jbpm webapp, or inside a custom 
app), or by subscribing a MessageListener to the message queue, in case one 
choses to use org.jbpm.msg.jms.JmsMessageServiceFactoryImpl.

I haven't found the JMS counterpart of CommandExecutorThread, is there any 
MessageListener?, in case I have to implement it, I should do the same 
CommandExecutorThread stuff plus the JMS handling, right?. 

Am I in the right direction? any help is highly appreciated

br,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924706#3924706

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924706


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - asyn feature configuration

2006-02-17 Thread edgarpoce
Hi

anonymous wrote : The SendMessagesInterceptor uses the interfaces 
MessageServiceFactory and MessageService to send messages. This is to make the 
asynchronous messaging implementation configurable (also in jbpm.cfg.xml). 

 I'm trying to use the new async feature and I'm stucked :(. the queue of 
messages grow but I don't see any thread consuming them. I'm surely missing a 
configuration setting to make it work. I don't see any reference to 
SendMessagesInterceptor in my config gile, how can I configure the interceptor?

thanks in advance,
edgar


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924673#3924673

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924673


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - processdeployer

2006-02-16 Thread edgarpoce
hi

According to the docs new process definitions can be deployed programatically 
with the class org.jbpm.jpdl.par.ProcessArchiveDeployer. The problem is that I 
can't find it in the classpath :(, was it removed in jbpm 3.1?

thanks in advance,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924409#3924409

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924409


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction

2006-02-16 Thread edgarpoce
anonymous wrote : that's not my decision to make. I was going to ask the 
company here what their opinion on open sourcing elements is anyway. 

don't worry, I had to ask :)

anonymous wrote : But do check out the 3.1 asynch stuff. Koen posted the JBoss 
cvs so that should be accessable now. 

I downloaded the released version and I'm working with it, it will take me some 
time to test my app because there are a few api changes.

thanks,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924400#3924400

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924400


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction

2006-02-16 Thread edgarpoce
Hi Rainer

Thanks for sharing the concept. If it's ok with you I'd like see the code, 
would you share it?. Of course If I find any improvement or change, I'll be 
happy to send it back. 

br,
edgar (edgarpoce AT gmail DOT com)

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924244#3924244

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924244


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction

2006-02-15 Thread edgarpoce
hi  rainer

anonymous wrote : and the MDB that find the meaning of life seem to be reusable

I assume that the MDB delegates to another action handler the responsibility of 
finding the meaning of life.

e.g. when the token arrives:

1 - the reusable action handlers sends a message.
2 - the reusable mdb calls to the action handler that find the meaning of life
3 - the action handler find the meaning of life
4 - the reusable mdb persist the process

has it any sense?

thanks in advance.
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924042#3924042

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924042


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction

2006-02-15 Thread edgarpoce
Hi rainer

the actionhandler that sends the JMS message and the MDB that find the meaning 
of life seem to be reusable. If I'm not missing something, that's the kind of 
support that I'd like to see included in JBPM, maybe as a new node type. 

anonymous wrote : Does this make it any more clear (if you ignore the 
philosophical distractions)?

I guess it does, you tell me :)

thanks for your help


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924034#3924034

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924034


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction

2006-02-13 Thread edgarpoce
hi

anonymous wrote : Doesn't szenario b) do the trick? Executing whatever long 
running task you have asynchronously by way of JMS or jBPM 3.1? 

 I didn't know about the new feature in 3.1, I'll take a look at it asap. 
thanks for the tip.

 Even when I could manage to roll my own jms stuff I don't like the idea of 
doing it, I'd like the workflow to do it for me if possible. 

br,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923437#3923437

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923437


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: mulit-threading and commit transaction

2006-02-13 Thread edgarpoce
hi Rainer 

anonymous wrote : So my answer to your question is another question: what is 
the use case for Java concurrency in jBPM? 

Another use case for the record ;). I'm using jbpm to manage a billing system. 
The billing process involves not only human interaction but also time consuming 
queries that I'll run against an oracle 10g cluster. 

I decided to use JBPM because I thought I could model the concurrent execution 
of the calculations, unfortunately I was wrong and we are evaluating other 
products because of this limitation. 

Other than that I'm very happy with JBPM. 

br,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923433#3923433

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923433


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: process instance id

2005-12-20 Thread edgarpoce
> I think what he meant was:
> call the method getId() on the processInstance. 

yes, I pasted the package and class name from the javadoc url. Sorry that it 
wasn't clear.

br,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913625#3913625

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913625


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: process instance id

2005-12-20 Thread edgarpoce
Hi rafael,

AFAIK you can use org/jbpm/model/execution/ProcessInstance.html#getId()

br,
edgar

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913577#3913577

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913577


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: unable to delete process instance

2005-12-20 Thread edgarpoce
hi

 I tried to dig the cause of this problem, and it seems the deletion of 
variable instances is not working correctly. 

My problem is that if I don't remove the variable instances, when I try to 
remove the process instance I get an exception that complaints about the 
referential integrity, specifically about the constraint FK_VARINST_TKVARMP, in 
the table "JBPM_VARIABLEINSTANCE".

The curious thing is that when I delete all the variable instances, the process 
instance can be deleted without problems, but in "JBPM_VARIABLEINSTANCE" 
remains a variable instance without any value in the "TOKEN_" field. As a 
workaround I can delete the variable instances in my code, and then delete the 
process instance itself.

I'm a newbie with JBPM, so if I'm missing something important I would really 
appreciate any help.

br,
edgar


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913565#3913565

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913565


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - unable to delete process instance

2005-12-19 Thread edgarpoce
Hi
   I'm trying to delete an ended process instance and I get a weird exception. 
Any help is appreciated. 

br,
edgar

java.lang.RuntimeException: couldn't delete process instance '1'
at org.jbpm.db.GraphSession.deleteProcessInstance(GraphSession.java:315)
at 
ar.com.sibs.sca.liquidacion.impl.PreliquidacionTest.testAnular(PreliquidacionTest.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.hibernate.exception.ConstraintViolationException: could not 
execute update query
at 
org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:74)
at 
org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at 
org.hibernate.hql.ast.UpdateStatementExecutor.execute(UpdateStatementExecutor.java:99)
at 
org.hibernate.hql.ast.QueryTranslatorImpl.executeUpdate(QueryTranslatorImpl.java:297)
at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:871)
at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)
at org.jbpm.db.GraphSession.deleteProcessInstance(GraphSession.java:307)
... 16 more
Caused by: java.sql.SQLException: Integrity constraint violation FK_LOG_PARENT 
table: JBPM_LOG in statement [delete from JBPM_LOG where TOKEN_ in (?)]
at org.hsqldb.jdbc.Util.throwError(Unknown Source)
at org.hsqldb.jdbc.jdbcPreparedStatement.executeUpdate(Unknown Source)
at 
com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:104)
at 
org.hibernate.hql.ast.UpdateStatementExecutor.execute(UpdateStatementExecutor.java:76)
... 20 more



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3913438#3913438

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3913438


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user