[JBoss-user] [JBoss jBPM] - ProcessInstance.save not working without closing JbpmContext

2006-05-01 Thread sbhatti
I am defining jbpmContext as: jbpmConfiguration = JbpmConfiguration.parseResource("jbpm/jbpm.cfg.xml"); jbpmContext = jbpmConfiguration.createJbpmContext(); processInstance = jbpmContext.newProcessInstance(name); and then saving as jbpmContext.save(processInstance); But if I don't clos

[JBoss-user] [JBoss jBPM] - Re: ProcessInstance.save not working without closing JbpmCon

2006-05-02 Thread sbhatti
I found a work around by managing transaction myself, i.e. Transaction txn = jbpmContext.getSession().beginTransaction(); jbpmContext.save(processInstance); txn.commit(); and I see the changes in the database right away. I am still curious why jBPM has this particular behavior? View the original

[JBoss-user] [JBoss jBPM] - Storing Serializable objects in ContextInstance -- VariableI

2006-05-02 Thread sbhatti
I am trying to store serializable objects using contextInstance, e.g. contextInstance = processInstance.getContextInstance() contextInstance.setVariable("my serial object", myserializedobject); But when I reload the process, I don't see my serialized object. Am I missing anything? View the origi

[JBoss-user] [JBoss jBPM] - TaskInstance.end("XXXX") within Action

2006-05-08 Thread sbhatti
I have some tasks defined in task-node as http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941954#3941954 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941954 --- Using Tomcat but need to do mo

[JBoss-user] [JBoss jBPM] - Re: TaskInstance.end(

2006-05-08 Thread sbhatti
actually i have same name for the parameter as is state name, e.g. http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941957#3941957 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941957 --- Using

[JBoss-user] [JBoss jBPM] - Re: TaskInstance.end(

2006-05-08 Thread sbhatti
parenthesis didn' show up, what I mean is http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941958#3941958 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941958 --- Using Tomcat but need to do m

[JBoss-user] [JBoss jBPM] - Re: TaskInstance.end(

2006-05-08 Thread sbhatti
transition name='error' to='error' View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941959#3941959 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941959 --- Using Tom

[JBoss-user] [JBoss jBPM] - Re: TaskInstance.end(

2006-05-08 Thread sbhatti
Also, I noticed that you cannot generally call signal from action, instead you have to leaveNode. Is there any similar rule for task where you cannot change taskInstance from the action class. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941963#3941963 Rep

[JBoss-user] [JBoss jBPM] - Coordination of Services in JBPM

2006-05-10 Thread sbhatti
I am writing a lightweight coordination framework using jBPM that invokes Java based servics (as opposed to web services in BPEL). I am defining each service as task within a task-node, e.g. I am using ActionHandler listener for node-enter to invoke the service and then based on

[JBoss-user] [JBoss jBPM] - Sporadic connection errors from jbpmContext.getGraphSession(

2006-05-16 Thread sbhatti
I noticed that occasionally following statement fails: jbpmContext.getGraphSession However, calling it again works. For example, I fixed above by try { jbpmContext.getGraphSession(); } catch (org.hibernate.exception.JDBCConnectionException e) { jbpmContext.getGraphSession(); } I have trie

[JBoss-user] [JBoss jBPM] - jBPM-db examples outside JBoss Container

2006-03-28 Thread sbhatti
I am trying to run jBPM samples outside JBoss application server. In this particular test, I am using hsql for database, but it looks like hibernate is looking up data source using JNDI. In this case, since I am not within any application server, it fails, e.g. 09:21:25,283 [main] FATAL Datasour

[JBoss-user] [JBoss jBPM] - Difference between Process, SubProcess, Tasks

2006-03-29 Thread sbhatti
Though, I have read jBPM manual, but it is unclear the difference between processes, subsprocesses and tasks and when will I use one as opposed to other. Can someone elaborate it? Second question is about saving workflow state. I saw that save method is used to save the state when jBPM is used w

[JBoss-user] [JBoss jBPM] - Re: Difference between Process, SubProcess, Tasks

2006-03-29 Thread sbhatti
Well, I sort of get very high level view of process and tasks, but my question is really how they are treated differently by jBPM and when will you use one against another. For example, does the state is saved between processes, but not between tasks. I am planning to use jBPM in sort of BPEL li

[JBoss-user] [JBoss jBPM] - Re: jBPM-db examples outside JBoss Container

2006-03-29 Thread sbhatti
Actuall, my hibernate.cfg.xml already is using connection instead of datasource, e.g. org.hibernate.dialect.HSQLDialect org.hsqldb.jdbcDriver jdbc:hsqldb:mem:.;sql.enforce_stri ct_size=true sa I am not using hibernate.connection.datasource property, so I am not sure why jBP

[JBoss-user] [JBoss jBPM] - Found error while running Websale sample: couldn't parse pro

2006-04-03 Thread sbhatti
I am trying to run examples for jbpm and found following error while running Websale example. 16:21:53,732 [main] ERROR JpdlXmlReader : couldn't parse process definition org.dom4j.DocumentException: null Nested exception: null at org.dom4j.io.SAXReader.read(SAXReader.java:484) at

[JBoss-user] [JBoss jBPM] - ThreadSafe Access to jBPM

2006-04-11 Thread sbhatti
I understand that JbpmConfiguration is thread safe and can be shared, but can someone let me know if any of following are thread safe: - JbpmContext - GraphSession - ProcessDefinition Basically, I would like to use a singleton class to keep shared definitions of processes and then create proc

[JBoss-user] [JBoss jBPM] - Re: ThreadSafe Access to jBPM

2006-04-11 Thread sbhatti
Right, I understand that I am still wondering whether context, sessions and process definitions can be shared by different threads or should I create them for each client. For example, in JMS sessions cannot be shared across threads so I am not sure if there is similar constraint on these object

[JBoss-user] [JBoss jBPM] - Re: process persistence problem with JBPM/Seam

2006-04-14 Thread sbhatti
I am having same problem, how exactly did you fix it. It looks like Hibernate can't persist org.jbpm.context.exe.VariableInstance. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3937468#3937468 Reply to the post : http://www.jboss.com/index.html?module=bb&op=

[JBoss-user] [Clustering/JBoss] - HTTPLoadbalancer as reverse proxy

2005-07-29 Thread sbhatti
Hello, I am trying to setup HTTPLoadbalancer as a reverse proxy server and it's working for a single application, but can I use this for more than one application. Also, can I direct the traffic based on the incoming protocol. What I mean is that I have JBoss running and listening on port 80 for

[JBoss-user] [Clustering/JBoss] - Re: HTTPLoadbalancer as reverse proxy

2005-07-29 Thread sbhatti
I need both reverse proxy server and load balance capabilities. The reverse proxy server will be running on separate machines than application servers so it needs to do all URL rewriting, caching, security, which is generally associated with reverse proxy servers. View the original post : http

[JBoss-user] [Security & JAAS/JBoss] - Single Sign-On Example with Active Directory

2005-08-22 Thread sbhatti
Hello, Can someone point me to an example of using Single-Sign-On based authentication that uses Microsoft Windows 2003 Active Directory for authentication and authorization (memberOf). Ideally, I would like a skeleton end-to-end example with all changes needed for login-config.xml, web.xml, htm

[JBoss-user] [JBoss jBPM] - jBPM for distributed transactions

2006-03-14 Thread sbhatti
I am looking into jBMP to implement distributed transactions. We are not using any kind of XA or global transactions, instead each of our service has an undo API that we use for compensating transaction. For example, currently our code looks like this: try { AirServiceQueue.send("BUY",