[JBoss jBPM] - Re: jBPM and Message Driven Beans
by new4jboss
How should I configure hibernate.cfg.xml to use CMT with SJSAS 8.1 2005Q1?
I saw some configurations with:
| <hibernate-configuration>
| <session-factory name="jBpmSessionFactory">
|
| <!-- jdbc connection properties -->
| <property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
| <property name="hibernate.connection.datasource">jdbc/jBpmDS</property>
|
| <!-- other hibernate properties
| <property name="hibernate.format_sql">true</property>
| <property name="hibernate.use_sql_comments">true</property>
| -->
| <property name="hibernate.show_sql">false</property>
| <property name="hibernate.query.factory_class">org.hibernate.hql.ast.ASTQueryTranslatorFactory</property>
|
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
| <property name="transaction.manager_lookup_class">????????????</property>
|
| .
| .
| .
|
| </session-factory>
| </hibernate-configuration>
|
I couldn't find any SJSAS transaction.manager_lookup_class.
I'm using the org.jbpm.web.JbpmContextFilter to create the jbpmContext, must I close the jbpmContext inside the jsp? if so, the code (inside jsp) will look something like:
| JbpmContext jbpmContext = JbpmConfiguration.getInstance().getCurrentJbpmContext();
| //creates a new process instance
| ProcessInstance processInstance = jbpmContext.newProcessInstance("suspension.par");
| jbpmContext.save(processInstance);
| jbpmContext.close();
| //starts the workflow
| processInstance.signal();
|
Can I call processInstance.signal() after closing the jbpmContext????
Thanks once again,
Délio Guerra
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008324#4008324
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008324
19 years, 2 months
[JNDI/Naming/Network] - [Root exception is java.lang.ClassNotFoundException: org.jnp
by andreing
I created a simple SesionBean. I deployed into the JBoss 4.0.5 and when i try to access the bean i get the following error:
Exception in thread "main" javax.naming.NoInitialContextException: Cannot instan
tiate class: org.jnp.interfaces.NamingContextFactory [Root exception is java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFactory]
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
57)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247
)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.(InitialContext.java:175)
at client.SimpleSessionClient.main(SimpleSessionClient.java:9)
Caused by: java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFac
tory
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.jav
a:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6
54)
... 4 more
Please give me some help about this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008320#4008320
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008320
19 years, 2 months