[jboss-user] [JBoss jBPM] - Re: JEE AS / jBPM / Transactions problem

2009-04-14 Thread gchanteb
Hi all,

my problem was this line in "persistence.xml" for my entity beans:

  

==> The value "create" makes a conflict with existing tables I have put the 
value to "check" and with a manual creation of my table and sequences, it works.

Bye.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4225271
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JEE AS / jBPM / Transactions problem

2009-04-09 Thread gchanteb
As you can see in my log, i have done a System.out.println(processId) at the 
end of my method, i have this:

"14:37:25,727 INFO  [STDOUT] Process id: 8" for the first.
and
"14:37:19,337 INFO  [STDOUT] Process id: 1" for the 2nd.

So the problem occurs during the commit of the transaction i think...

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224682
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: JEE AS / jBPM / Transactions problem

2009-04-09 Thread gchanteb
If really don't understand, if i use this:

public void launchSimpleProcess(String processName, String clientId) 
throws LaunchProcessException
  | {   
  | long processId;
  | 
  | try
  | {
  | processId = createProcess(processName); // Creation of 
the process.
  | }
  | catch(CreationProcessException exc) { throw new 
LaunchProcessException(exc.getMessage()); }
  | }

And if i have my entity beans on the same db (ie "JbpmDS" in persistence.xml), 
if i launch this method with a remote main:

Sometime it works:

14:37:25,727 INFO  [STDOUT] Hibernate: 
  | /* named HQL query GraphSession.findLatestProcessDefinitionQuery */ 
select
  | * 
  | from
  | ( select
  | processdef0_.ID_ as ID1_10_,
  | processdef0_.NAME_ as NAME3_10_,
  | processdef0_.DESCRIPTION_ as DESCRIPT4_10_,
  | processdef0_.VERSION_ as VERSION5_10_,
  | processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN6_10_,
  | processdef0_.STARTSTATE_ as STARTSTATE7_10_ 
  | from
  | JBPM_PROCESSDEFINITION processdef0_ 
  | where
  | processdef0_.NAME_=? 
  | order by
  | processdef0_.VERSION_ desc ) 
  | where
  | rownum <= ?
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 14:37:25,727 INFO  [STDOUT] Process id: 8
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | select
  | hibernate_sequence.nextval 
  | from
  | dual
  | 14:37:25,727 INFO  [STDOUT] Hibernate: 
  | /* insert org.jbpm.graph.exe.Token
  | */ insert 
  | into
  | JBPM_TOKEN
  | (VERSION_, NAME_, START_, END_, NODEENTER_, NEXTLOGINDEX_, 
ISABLETOREACTIVATEPARENT_, ISTERMINATIONIMPLICIT_, ISSUSPENDED_, LOCK_, NODE_, 
PROCESSINSTANCE_, PARENT_, SUBPROCESSINSTANCE_, ID_) 
  | values
  | (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
  | 14:37:25,758 INFO  [STDOUT] Hibernate: 
  | /* insert org.jbpm.graph.exe.ProcessInstance
  | */ insert 
  | into
  | JBPM_PROCESSINSTANCE
  | (VERSION_, KEY_, START_, END_, ISSUSPENDED_, 
PROCESSDEFINITION_, ROOTTOKEN_, SUPERPROCESSTOKEN_, ID_) 
  | values
  | (?, ?, ?, ?, ?, ?, ?, ?, ?)
  | 14:37:25,758 INFO  [STDOUT] Hibernate: 
  | /* insert org.jbpm.context.exe.ContextInstance
  | */ insert 
  | into
  | JBPM_MODULEINSTANCE
  | (VERSION_, PROCESSINSTANCE_, CLASS_, ID_) 
  | values
  | (?, ?, 'C', ?)
  | 14:37:25,758 INFO  [STDOUT] Hibernate: 
  | /* insert org.jbpm.context.exe.TokenVariableMap
  | */ insert 
  | into
  | JBPM_TOKENVARIABLEMAP
  | (VERSION_, TOKEN_, CONTEXTINSTANCE_, ID_) 
  | values
  | (?, ?, ?, ?)
  | 14:37:25,758 INFO  [STDOUT] Hibernate: 
  | /* insert org.jbpm.bytes.ByteArray
  | */ insert 
  | into
  | JBPM_BYTEARRAY
  | (NAME_, ID_) 
  | values
  | (?, ?)
  | 14:37:25,758 INFO  [STDOUT] Hibernate: 
  | /* insert org.jbpm.context.exe.variableinstance.ByteArrayInstance
  | */ insert 
  | into
  | JBPM_VARIABLEINSTANCE
  | (VERSION_, NAME_, CONVERTER_, TOKEN_, TOKENVARIABLEMAP_, 
PROCESSINSTANCE_, BYTEARRAYVALUE_, CLASS_, ID_) 
  | values
  | (?, ?, ?, ?, ?, ?, ?, 'B', ?)
  | 14:37:25,758 INFO  [STDOUT] Hibernate: 
  | /* insert org.jbpm.taskmgmt.exe.TaskMgmtInstance
  | */ insert 
  | into
  | JBPM_MODULEINSTANCE
  | (VERSION_, PROCESSINSTANCE_, TASKMGMTDEFINITION_, CLASS_, ID_) 
  | values
  | (?, ?, ?, 'T', ?)
  | 14:37:25,758 INFO  [STDOUT] Hibernate: 
  | /* update
  | org.jbpm.graph.exe.ProcessInstance */ update
  | JBPM_PROCESSINSTANCE 
  | set
  | VERSION_=?,
  | KEY_=?,
  | START_=?,
  | END_=?,
  | ISSUSPENDED_=?,
  | PROCESSDEFINITION_=?,
  | ROOTTOKEN_=?,
  |