[JBoss-user] [JBoss jBPM] - Using hibernate annotation with jBPM

2006-03-22 Thread tibocu
Hi, I just spend a few houres to figure how to use Hibernate Annotaiton with jBPM. Here is the receipt (can probably be improved): 1-- Create an implementation of the db persistence service: - package com.btc.fwk.jbpm;

[JBoss-user] [JBoss jBPM] - Mandatory default transition

2006-03-10 Thread tibocu
After looking on the signal() source code, it looks that the default transition is mandatory for a node in order to be able to call signal(String). I'd like to use only named transitions and events. Is there is any reason? View the original post :

[JBoss-user] [JBoss jBPM] - Re: Executing processes on remote machines

2006-03-10 Thread tibocu
You can use WebServices to access remotely to your servers. Just call your web services from your jbp ActionHandler. my 2 cts View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929308#3929308 Reply to the post :

[JBoss-user] [JBoss jBPM] - Re: Some question of a Beginner in JBPM

2006-03-10 Thread tibocu
jBPM is just a Java API. You can use it in a J2SE Java application, in a J2EE Web application or inside of an EJB Container. I'm not sure to understand your question, but if you just want to try some application code in Eclipse, you don't need a server. You the JBoss IDE and create jBPM

[JBoss-user] [JBoss jBPM] - Re: Mandatory default transition

2006-03-10 Thread tibocu
This problem occurs for signal(String name), but not for signal(Trnasition t). View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3929313#3929313 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3929313

[JBoss-user] [JBoss jBPM] - jBPM + EntityManager

2006-03-09 Thread tibocu
Hi, Is it possible to develop the applicaiton code with EJB3 entities annotations and using jBPM ? EntityManager and jBPM must share the same Hibernate Session and cache. Should I hack the EntityManagerImpl to use the SessionFactory build by jBPM ? Thibault View the original post :

[JBoss-user] [JBoss jBPM] - TaskNode ClassCastException

2006-03-09 Thread tibocu
I run a trivial example. The token is located on a TaskNode. I checked. 1 Token token = processInstance.getRootToken(); 2 Node node = token.getNode(); 3 TaskNode taskNode = (TaskNode)node; The node is not a TaskNode, but an hibernate proxy, and I get the following exception on line 3:

[JBoss-user] [JBoss jBPM] - Re: TaskNode ClassCastException

2006-03-09 Thread tibocu
Strange, If of write: 1 Token token = processInstance.getRootToken(); 2 Node node = processDefinition.getNode(token.getNode().getName()); 3 TaskNode taskNode = (TaskNode)node; It works ! It looks that the Node returned by the token is not correctly instanciated. Something I didn't get or a bug

[JBoss-user] [JBoss jBPM] - Re: TaskNode ClassCastException

2006-03-09 Thread tibocu
Fixed by writing: 1 Token token = processInstance.getRootToken(); 2 TaskNode taskNode = (TaskNode)jbpmContext. getSession(). load(TaskNode.class, token.getNode().getId()); See:

[JBoss-user] [EJB 3.0] - presistence.xml with j2se

2006-03-05 Thread tibocu
Hi, I run a j2se application with jax.persistence, but I cannot get the EntityManagerFactory declared in the persistence.xml file. My code: factory = Persistence.createEntityManagerFactory(em); I get: No Persistence provider for EntityManager named em The persistence.xml file is located in

[JBoss-user] [EJB 3.0] - presistence.xml with j2se

2006-03-05 Thread tibocu
Hi, I run a j2se application with jax.persistence, but I cannot get the EntityManagerFactory declared in the persistence.xml file. My code: factory = Persistence.createEntityManagerFactory(em); I get: No Persistence provider for EntityManager named em The persistence.xml file is located in