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

2006-02-22 Thread dharraj
Hello Rainer, anonymous wrote : you realy have divided your functionality so far that you concurrent threads have NO knowledge The threads do not have any knowledge of any jBPM stuff. They simply run what ever they are asked to and when completed notifies the "waiting" thread that it can signa

[JBoss-user] [JBoss jBPM] - Re: JBPM Configuration

2006-02-22 Thread dharraj
Hello Alex, Sorry I got side traced on to another problem. I can get it to work as you mentioned when I run it from command line. I have ./ in my class path and have hibernate.cfg.xml in the working directory. This works. However, I cannot get it to work if say I put the hibernate.cfg.xml in my

[JBoss-user] [JBoss jBPM] - org.hibernate.LazyInitializationException

2006-02-21 Thread dharraj
Hello, I have a process definition that has a fork in it. I save the process instance at each stage (after signalng at each node). When I retrieve it from the database and try to obtain it's child token (well, really root token's children), I get the following exception: Exception in thread "m

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

2006-02-21 Thread dharraj
Hello Rainer, Another question regarding your comment anonymous wrote : GraphSession has a lockProcessInstance() method that will lock by way oh database How can I use this method to do concurrent process instance persistence and token.signal? Also, is the lock released once the update is perfo

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

2006-02-13 Thread dharraj
Hello All, Let me mention this again and as clearly as I can, I am trying to model an existing process (application) pipeline using the JBPM. The input(s) to the next stage (application) in pipeline is output from previous stage. There are stages that requires multiple input(s) which are genera

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

2006-02-13 Thread dharraj
Hello Rainer | correct, you will not achieve true Java concurrency with a fork | Are their any plans to enable this? If so, do you roughly know when? Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923412#3923412 Reply to the post : http:/

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

2006-02-10 Thread dharraj
Thanks Rainer. If the process instance persistence and token signal are both synchronized over process instance, I will not achieve a truely parallel fork, right? Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922993#3922993 Reply to the post : http:/

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

2006-02-08 Thread dharraj
Hello Rainer, Here is how I understand the problem, see if I am correct. I have one thread that is saving the process instance, which results in the call to the saveLogs. The saveLogs traverses pi's log list using the iterator. Meanwhile another thread calls token.signal(), which causes a new S

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

2006-02-08 Thread dharraj
Hello Rainer, I think I have the answer to my following question. anonymous wrote : Does 'token.signal()' change process log list? I have the fix and it works. Thanks Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922396#3922396 Reply to the post : h

[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process

2006-02-08 Thread dharraj
Thanks Rainer, I do understand that you are a busy man and many many thanks for you time. The code in question implements parallel split. When process execution reaches the split node, threads are created for running each token separately (the main thread runs one of the token, the remanning n-

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

2006-02-08 Thread dharraj
Hello Rainer Do you mean locking on process instance in this method or everywhere the process instance is used? Because my original code was doing just that, as follows: | public static void persistPI(ProcessInstance pi) | throws Exception | { | synchronized(pi) { | JbpmSe

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

2006-02-07 Thread dharraj
Hello, I have a method to persist process instance as follows | | public static synchronized void persistPI(Token token) | throws Exception | { | ProcessInstance pi=token.getProcessInstance(); | JbpmSessionFactory factory = JbpmSessionFactory.getInstance(); | Jbpm

[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process

2006-02-07 Thread dharraj
Hello Rainer, The execution context is created as follows | new ExecutionContext(processInstance.getRootToken()); | Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922182#3922182 Reply to the post : http://www.jboss.com/index.html?module=bb&op=pos

[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process

2006-02-07 Thread dharraj
Forgot to mention that the code to persist process instance starts a transaction, saves process instance and commits the transaction. So the signal is outside of transaction. I do not think this should matter as I have seen same problem when the signal is with in transaction. Raj View the ori

[JBoss-user] [JBoss jBPM] - Re: 3.0.2 and hibernate configuration

2006-02-07 Thread dharraj
I am able to connect to hsql db using the hsqldb datamanager tool. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3922121#3922121 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3922121

[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process

2006-02-06 Thread dharraj
Hello Rainer, Thanks for you reply. I know we have been over this before. I am trying to test with simple process definition and it does not work. Here is my test process: | | http://jbpm.org/3/jpdl"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http:/

[JBoss-user] [JBoss jBPM] - Re: 3.0.2 and hibernate configuration

2006-02-06 Thread dharraj
okay so I commented out hibernate.connection.datasource=java:/DefaultDS and that error went away, but now I am getting the following error Error obtaining JbpmSession. Error=java.lang.RuntimeException: couldn't get the jbpm table names | Exception in thread "main" java.lang.RuntimeException: co

[JBoss-user] [JBoss jBPM] - 3.0.2 and hibernate configuration

2006-02-06 Thread dharraj
Hello, I am running hsql server on 'localhost:1701'. I have modified the hibernate.cfg.xml in jbpm.sar.cfg.jar as jdbc:hsqldb:hsql://localhost:1701;sql.enforce_strict_size=true | and the jbpm.sar.cfg.jar is the first thing in my classpath. However, I am getting the following exception log4j:W

[JBoss-user] [JBoss jBPM] - Re: How to suspend and resume a process

2006-02-06 Thread dharraj
Hello, Few questions regarding the following remark. anonymous wrote : Or look at 3.1alpha. afaik, there is functionality to suspend and resume. It is alpha, so the code might not be finished. Will this capability allow me to pause in middle of execution, save process instance, exit the applica

[JBoss-user] [JBoss jBPM] - Re: JBPM Configuration

2006-01-30 Thread dharraj
Thanks for the reply. So, do you know if it is possible to configure hibernate with a configuration file that is not bundled into a jar file? I glanced over the hibernate documentation but didn't see any thing that tells otherwise. Would you recommend using the hibernate Configuration object ins

[JBoss-user] [JBoss jBPM] - Error creating database schema

2006-01-30 Thread dharraj
Hello, I have hsql db running on localhost at default port (1701). While trying to create schema ( jbpmConfiguration.createSchema();) I am getting following exception: Initializing c3p0 pool... [EMAIL PROTECTED] [ connectionPoolDataSource -> [EMAIL PROTECTED] [ acquireIncrement -> 1, acquireRetr

[JBoss-user] [JBoss jBPM] - JBPM Configuration

2006-01-30 Thread dharraj
Hello, I am trying to understand how JBPM configuration works in the 3.1 (beta2). I am using the parseInputStream method passing it jbpm.cfg.xml which has | in it. However, I am getting the following exception: | org.hibernate.HibernateException: /home/myhome/hibernate.cfg.xml not found

[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution

2006-01-26 Thread dharraj
Hello Elmo, anonymous wrote : When you say stand-alone, are you referring to swing applications? No. I mean a command line java application. No GUI yet. Actually, these is what we are trying to do. We need to run a set of programs in a given order. The order in which the programs are executed

[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution

2006-01-25 Thread dharraj
Hello, Thanks for your input. First of all, we are not using servlets or EJB in our application, atleast not yet. The application is a standalone application that only executes the given process definition. Having said that, how do you think I can solve this problem. Is it possible to write a

[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution

2006-01-18 Thread dharraj
Hello Almo anonymous wrote : Are you referring to/calling another process inside the action handler? I am not referring or calling another process inside the action handler. The action handler's main job is to save the process instance. anonymous wrote : Are you modifying another process defin

[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution

2006-01-18 Thread dharraj
Hello Elmo, Again many thanks for you reply. I did added the action to "node-enter" event but it did not changed any thing. Let me try to elaborate on exactly what I am doing. I have a jBPM execution engine that first adds a generic action handler to each transition. The action handler prints

[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution

2006-01-17 Thread dharraj
Hello Elmo, First of all, thanks a lot for your reply. Here is the process definition. | | http://jbpm.org/3/jpdl"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://jbpm.org/3/jpdl http://jbpm.org/xsd/jpdl-3.0.xsd"; | name="dbexample"> |

[JBoss-user] [JBoss jBPM] - Re: process instance persistence and reexecution

2006-01-10 Thread dharraj
Can any one out there help me PLEASE. Raj View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916732#3916732 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916732 --- Th

[JBoss-user] [JBoss jBPM] - process instance persistence and reexecution

2006-01-06 Thread dharraj
Hello All, I have a action handler that does the following: | JbpmSessionFactory factory = JbpmSessionFactory.getInstance(); | JbpmSession jbpmSession = factory.openJbpmSession(); | jbpmSession.beginTransaction(); | try | { | ProcessInstance pi=executionConte

[JBoss-user] [Installation, Configuration & Deployment] - Unable to install the eclise IDE

2005-09-23 Thread dharraj
Hello, I am running eclipse 3.1. I am trying to install the eclipse IDE by following the steps as mentioned in your install guide. Eclipse hangs for long time before returning with an error that it cannot download "org.jboss.ide.eclipse.jdt.j2ee.core_1.4.1.e31-jar15.jar" file. I have seen the