Re: [jboss-user] [jBPM] - JBPM 4.3 - org.jbpm.api.JbpmException: couldn't acquire block of ids
by Stefano Campanini
Stefano Campanini [http://community.jboss.org/people/campa] replied to the discussion
"JBPM 4.3 - org.jbpm.api.JbpmException: couldn't acquire block of ids"
To view the discussion, visit: http://community.jboss.org/message/539938#539938
--------------------------------------------------------------
http://community.jboss.org/people/rebody Huisheng "And using sequence is the previous way of jBPM4 using. It changed to use JBPM4_PROPERTY since jBPM-4.2."
Why jbpm not use hibernate id generators declared in hbm mapping files or using annotations ? My modest suggestion to get jbpm better is to use a hibernate built in portable generator as default (es. no sequence, ..) and permit the user to overwrite it with other hibernate built in generators.
See below here for hibernate supported built in generators ( http://docs.jboss.org/hibernate/core/3.3/reference/en/html/mapping.html#m... http://docs.jboss.org/hibernate/core/3.3/reference/en/html/mapping.html#m... )
http://community.jboss.org/people/rebody Huisheng "By the way, some days earlier, you said you will use drools flow instead. I don't know much about it. Did it powerful? Did it easy to use?"
Yes I have found it is more easy to use and setup than jbpm. Also for some aspects more advanced in functionality.
And as Developer I liked the complete maven management of the project sources only because We use maven in place of ant. Having dev environment working with svn sources, unit tests and so on .. is very simple.
I found Jbpm dev env not so easy to setup: I tried to run jbpm sources tests using my new sequenceDatabaseGenerator , but the switch to postgresql does not work out of box ... also some maven dependencies needs to manual managed: I remember gpd and oracle driver (also I want to test against postgresql) ... more or less 2 hours without results .. also reading instructions.
The missing feature that do not fit in our needs of drools flow, was the fact that seems not easy to navigate the process (graph) using api, for example asking the next outgoing transitions...
We need to present on GUI buttons to the users for go next on one branch or another of the process definitions ... I think this limits born on the fact that drools flow is rule based ... not graph based. Also Human task needs Apache Mina opening another tcp port and so on ...
These are some advantages and disadvantages I have found in an evaluation that last 3-4 days on jbpm and drools flow, integrating in our product that is spring based. Sure having much time going deeply these opinions can be changed ...
( Sorry for may bad English !! )
Bye
Stefano
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539938#539938]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
Re: [jboss-user] [JNDI and Naming] - EJB3: cannot be cast
by NAG Kum
NAG Kum [http://community.jboss.org/people/nk_2010] replied to the discussion
"EJB3: cannot be cast"
To view the discussion, visit: http://community.jboss.org/message/539932#539932
--------------------------------------------------------------
Hi Jaikiran,
I do have same problem, Pls see below -
java.lang.ClassCastException: org.jnp.interfaces.NamingContext cannot be cast to com.tarangtech.mtg.authentication.AuthenticationRemote
com.tarangtech.framework.ejb.clients.util.CommonPaymentAction.getAuthentication(CommonPaymentAction.java:34)
com.tarangtech.mtg.struts.AuthenticationAction.execute(AuthenticationAction.java:24)
Here is my *lookup code* -
public static final String RemoteJNDIName = "AuthenticationBean/remote";
AuthenticationRemote authEjb = (AuthenticationRemote)ServiceLocator.getEJB(AuthenticationBean.RemoteJNDIName);
System.out.println("EJB Look up successfull ");
my *jmx-console* -
+- AuthenticationBean (class: org.jnp.interfaces.NamingContext)
| +- remote (class: org.jnp.interfaces.NamingContext)
| | +- UserTransaction[link -> UserTransaction] (class: javax.naming.LinkRef)
| | +- metaData (class: org.jboss.metadata.client.jboss.JBossClientMetaData)
| | +- env (class: org.jnp.interfaces.NamingContext)
| | | +- com.tarangtech.mtg.authentication.AuthenticationBean[link -> AuthenticationBean/remote] (class: javax.naming.LinkRef)
| | +- classPathEntries (class: java.util.ArrayList)
I have verified for jar file incompatabilities with
Jboss server & my application. Don't get the mistake, request you to help me to proceed further...
Thanks,
NK
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539932#539932]
Start a new discussion in JNDI and Naming at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months
[jBPM] - Jbpm4Jsf + CMT Question
by Sunay Shah
Sunay Shah [http://community.jboss.org/people/sunay] created the discussion
"Jbpm4Jsf + CMT Question"
To view the discussion, visit: http://community.jboss.org/message/539929#539929
--------------------------------------------------------------
Hello All,
I am using jbpm 3.2 , i am using Container managed Transaction . now i gone through the source code jbpm4jsf in DeleteActionListener class i found that at the end of handleAction(..) mehod it explicitly flushing the hibernate session with
context.getJbpmContext().getSession().flush();
what is the need of this statement , if we are already using container managed transaction another thing i want to ask is in ProcessFilePhaseListener class i found the *finally block* in which it is explicitly closes the jbpmContext with
*jbpmContext.close();*
*what is the need of it if we are using Containter managed Transaction*
Thanks
Sunay*
*
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539929#539929]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 8 months