[EJB3] - Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA
by Derya Altuntas
Derya Altuntas [http://community.jboss.org/people/deryaaltuntas] created the discussion
"Re: Problem deploying EJB 3.0 jar to JBoss 5.0.1 GA"
To view the discussion, visit: http://community.jboss.org/message/599475#599475
--------------------------------------------------------------
Hello,
I am getting slighly same error.I am new JBoss and Session Beans.I could not understand why I get this error.
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "persistence.unit:unitName=SiguardEJB.jar#SiguardEJBPU" is missing the following dependencies:
Dependency "jboss.jca:name=SiguardEJBJNDI,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=SiguardEJBJNDI,service=DataSourceBinding' **")
DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=SiguardEJBJNDI,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=SiguardEJBJNDI,service=DataSourceBinding' **
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(
) [:2.2.0.GA]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599475#599475]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[jBPM] - Important question about JBPM. help!!!!!!
by stellina_rosa
stellina_rosa [http://community.jboss.org/people/stellina_rosa] created the discussion
"Important question about JBPM. help!!!!!!"
To view the discussion, visit: http://community.jboss.org/message/599472#599472
--------------------------------------------------------------
Hi,
I'm following the community and I'm trying the examples on the blog. I'm learning a lot of new things (like create a process, use a file drools in my process, create a simple user form) but at the same time I fell very confused:
1) If I want a user form for my Human Task, I must use a .ftl, with simple html code; is this the only way? Is there another editor for web pages what could I use? I have read the old post but I don't understand the solution..!
2)In the drools file, I can explain different rules; for example, suppose that I create an object Person, in my drools file I can describe a rule for the age (if age<18 then Person.type = child, if age>75 the Person.type=senior)... the thing that I can't understand is: if I have 3 Person object... in what way drools understand what Person must analyze? the .drl file is executed for any Person that is in my HashMap(that I create in my Test.java class) ?
3) Suppose I need external information ... in what way could I recover it?
for example, suppose that I create a process where I need password and username of an user and, depending on whether the administrator or a simple user, I will work with different user form. Are these steps correct?...:
----- 1) I must have a .ftl file where I write the code for the user form where the user must insert username and password;
----- 2) I must have a drools file where I have a rule who say me: if the username is "xxx" then user.type= administrator;
----- 3) I must have a test.java class where I create the knowledgebase, the session and start the process;
----- 4) I must have a class Person...
Doubts:
1) I need of 2 other .ftl file for the administrator form and the user form?
2) the only way to run this example is to use Guvnor?
3) In what way could I see the user form?
4)in what way I recover the information insert by the user?
Probabily you are smiling about this post :) but I am very confuse.. and there is not enough documentation about jbpm5.. If I understood how it works, I will create a useful post to explain , step by step, a simple example that use drools file, bpmn files, ftl files...
The examples on the community are useful but I think that it would need a COMPLETE example....
Greetings
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599472#599472]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[JBoss Tools] - Hacking AS7 using Eclipse
by Andre Dietisheim
Andre Dietisheim [http://community.jboss.org/people/adietish] modified the document:
"Hacking AS7 using Eclipse"
To view the document, visit: http://community.jboss.org/docs/DOC-16718
--------------------------------------------------------------
h1. Preface
There's already a article that shows you very well how to checkout and build the AS7 code base using command line tools. Unfortunately using Eclipse on top of those steps shows some gotchas that are not obvious. This article will show you how to import the AS7 projects to Eclipse.
h1. Checkout the AS7 code base
The reference documentation may be reached at http://community.jboss.org/docs/DOC-15596 http://community.jboss.org/wiki/HackingonAS7. It shows you extensively what steps need to be achieve to get things up and running on the command line. Please follow these steps. I'll try to add the corresponding steps for http://www.eclipse.org/egit/ EGit later on
+TODO: add instructions using EGit+
h3. Install M2Eclipse and EGit
The next step involves installing the appropriate plug ins for Eclipse. The easiest way to achieve that is to install them from the Eclipse Marketplace.
http://community.jboss.org/servlet/JiveServlet/showImage/16140/install-fr... http://community.jboss.org/servlet/JiveServlet/downloadImage/16140/instal...
http://community.jboss.org/servlet/JiveServlet/showImage/16139/install-eg... http://community.jboss.org/servlet/JiveServlet/downloadImage/16139/instal...
h1. http://community.jboss.org/servlet/JiveServlet/showImage/16138/install-m2... http://community.jboss.org/servlet/JiveServlet/downloadImage/16138/instal...
h1. Add local git Repository
After rebooting Eclipse, you'll now be able to import the local git repository.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-2-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-2-...
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-2-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-2-...
h1. Import Maven Project
You'll then finally be able to import your AS7 sub-project into Eclilpse. Pick it in the list of available folders in the *Working Directory* and choose *Import Maven Project* from the context menu.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-2-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-2-...
You'll then end up with an project in your package explorer, that holds the name given to it in the maven pom.
h1. Correct compilation errors
h2. Run the maven build in eclipse
You may eventually have to run the maven build in a first place so that all required maven artifacts get installed to the local maven repo.
h3. Quick fix the M2Eclipse lifecycle errors
You may also experience maven related probles when using the latest *m2eclipse 0.13*. M2eclipse speeds up the build cycle by stripping it down to the bare minimum needed in Eclipse (you may read detailed documentation about in the https://docs.sonatype.org/display/M2ECLIPSE/Project+build+lifecycle+mapping m2eclipse wiki). M2eclipse will therefore report you that specific plugins are not covered by the build lifecycle. Those errors are easily fixable with quick fixes that are offered to you in the pom editor.
h2. Correct build path precedence errors
You may experience compilation errors that are not related to m2eclipse. Most of them are due to the fact, that the build setup in Eclipse differs from what is used with bare Maven on the command line.
In my particular case, where I imported the AS7 demos, I ended up with the odd case where the Eclipse compiler complained about an illegal attribute to the *@Resource* annotation.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-2-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-2-...
The compilation error that is reported is due to a bad resolution of the *@Resource* annotation.
If you use Eclipse with m2eclipse you'll end up with at least 2 *compilation containers* that resolve required classes. Eclipse will lookup in the *JRE System Library* in a first place and fall back to the *Maven dependencies* in a second step.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-2-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-2-...
The Eclipse compiler actually applies the annotation that may be found in the *jdk*. This jdk annotation does not support the lookup attribute an the compilation therefore fails. On the other hand, the *maven dependencies* hold the correct, extended annotation which knows about a lookup attribute. So this boils down to the precendece of the compilation container in the Eclipse setup. You may fix the above error in the project build path:
Remove the *JRE System Library* and add it back again. The GUI will actually not show any change, it will still reflect the JRE System Library in first and the *Maven Dependencies* in second place. Behind the scenes though, their order was inverted. Eclipse now resolves artifacts from the Maven container first and will fall back to the JRE in a second step.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-2-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-2-...
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16718]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
15 years
[JBoss Tools] - Hacking AS7 using Eclipse
by Andre Dietisheim
Andre Dietisheim [http://community.jboss.org/people/adietish] created the document:
"Hacking AS7 using Eclipse"
To view the document, visit: http://community.jboss.org/docs/DOC-16718
--------------------------------------------------------------
h1. Preface
There's already a article that shows you very well how to checkout and build the AS7 code base using command line tools. Unfortunately using Eclipse on top of those steps shows some gotchas that are not obvious. This article will show you how to import the AS7 projects to Eclipse.
h1. Checkout the AS7 code base
The reference documentation may be reached at http://community.jboss.org/docs/DOC-15596 http://community.jboss.org/wiki/HackingonAS7. It shows you extensively what steps need to be achieve to get things up and running on the command line. Please follow these steps. I'll try to add the corresponding steps for http://www.eclipse.org/egit/ EGit later on
+TODO: add instructions using EGit+
h3. Install M2Eclipse and EGit
The next step involves installing the appropriate plug ins for Eclipse. The easiest way to achieve that is to install them from the Eclipse Marketplace (*Help -> Eclipse Marketplace...*)
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1612... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
h1. http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
h1. Add local git Repository
After rebooting Eclipse, you'll now be able to import the local git repository.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
h1. Import Maven Project
You'll then finally be able to import your AS7 sub-project into Eclilpse. Pick it in the list of available folders in the *Working Directory* and choose *Import Maven Project* from the context menu.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
You'll then end up with an project in your package explorer, that holds the name given to it in the maven pom.
h1. Correct compilation errors
h2. M2Eclipse related errors
You may eventually have to run the maven build in a first place so that all required maven artifacts get installed to the local maven repo. You may also experience maven related errors when using the latest *m2eclipse 0.13*. M2eclipse tries to speed up the build cycle in eclipse by stripping it down to the bare minimum needed in Eclipse. Those errors are easily fixable with quick fixes that are offered to you in the pom editor.
h2. Build path precedence errors
You may experience compilation errors that are not related to m2eclipse. Most of them are due to the fact, that the build setup in Eclipse differs from what is used with bare Maven on the command line.
In my particular case, where I imported the AS7 demos, I ended up with the odd case where the Eclipse compiler complained about an illegal attribute to the *@Resource* annotation.
@Resource(lookup="java:module/SimpleManagedBean")
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
The compilation error that is reported is due to a bad resolution of the *@Resource* annotation.
If you use Eclipse with m2eclipse you'll end up with at least 2 *compilation containers* that resolve required classes. Eclipse will lookup in the *JRE System Library* in a first place and fall back to the *Maven dependencies* in a second step.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
The Eclipse compiler actually applies the annotation that may be found in the *jdk*. This jdk annotation does not support the lookup attribute an the compilation therefore fails. On the other hand, the *maven dependencies* hold the correct, extended annotation which knows about a lookup attribute. So this boils down to the precendece of the compilation container in the Eclipse setup. You may fix the above error in the project build path:
Remove the *JRE System Library* and add it back again. The GUI will actually not show any change, it will still reflect the JRE System Library in first and the *Maven Dependencies* in second place. Behind the scenes though, their order was inverted. Eclipse now resolves artifacts from the Maven container first and will fall back to the JRE in a second step.
http://community.jboss.org/servlet/JiveServlet/showImage/102-16718-1-1613... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-16718-1-...
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16718]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
15 years
[Beginner's Corner] - 5.1.0.GA - Problems with Dependency Injection
by Pasquale Imbemba
Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the discussion
"5.1.0.GA - Problems with Dependency Injection"
To view the discussion, visit: http://community.jboss.org/message/599462#599462
--------------------------------------------------------------
Hi,
I have two JARs deployed on my JBoss AS. JAR1 contains a SLSB which tries to use a SLSB from JAR2 which exposes a LocalBusiness Interface.
SLSB from JAR1:
@Stateless
@WebService
public class AnaUniEJB implements AURemoteBusiness, AnaUniWebService {
@PersistenceContext(
unitName = "AnaUniDb")
private EntityManager manager;
@EJB
private GVCCLocalBusiness gvcc;
SLSB from JAR2:
@Stateless
public class GvccBean implements GVCCLocalBusiness {
...
When I start JBoss, I get the following message:
>
> WARN org.jboss.deployment.MappedReferenceMetaDataResolverDeployer (main) Unresolved references exist in JBossMetaData:
> [#AnaUniEJB:AnnotatedEJBReferenceMetaData{name=it.bz.prov.anauni.blogic.AnaUniEJB/gvcc,ejb-ref-type=null,link=null,
> ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface it.bz.gvcc.interfaces.GVCCLocalBusiness}]
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599462#599462]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[Beginner's Corner] - 5.1.0.GA - Problems with Dependency Injection
by Pasquale Imbemba
Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the discussion
"5.1.0.GA - Problems with Dependency Injection"
To view the discussion, visit: http://community.jboss.org/message/599460#599460
--------------------------------------------------------------
Hi,
I have two JARs deployed on my JBoss AS. JAR1 contains a SLSB which tries to use a SLSB from JAR2 which exposes a LocalBusiness Interface.
SLSB from JAR1:
{code}
@Stateless
@WebService
public class AnaUniEJB implements AURemoteBusiness, AnaUniWebService {
@PersistenceContext(
unitName = "AnaUniDb")
private EntityManager manager;
@EJB
private GVCCLocalBusiness gvcc;
{code}
SLSB from JAR2:
{code}
@Stateless
public class GvccBean implements GVCCLocalBusiness {
{code}
I've noticed that when I start JBoss, I get the following message:
{code}
WARN [org.jboss.deployment.MappedReferenceMetaDataResolverDeployer] (main) Unresolved references exist in JBossMetaData:[#AnaUniEJB:AnnotatedEJBReferenceMetaData{name=it.bz.prov.anauni.blogic.AnaUniEJB/gvcc,ejb-ref-type=null,link=null,ignore-dependecy=false,mapped/jndi-name=null,resolved-jndi-name=null,beanInterface=interface it.bz.gvcc.interfaces.GVCCLocalBusiness}]
{code}
and this NPE
{code}
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3 state=Create
java.lang.NullPointerException{code}
and finally {code}
ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] (main) Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3" (should be in state "Configured", but is actually in state "**ERROR**")
DEPLOYMENTS IN ERROR:
Deployment "jboss.j2ee:jar=AnagraficaUnificata.jar,name=AnaUniEJB,service=EJB3" is in error due to the following reason(s): java.lang.NullPointerException, **ERROR**{code}
Where am I doing wrong?
Thanks,
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599460#599460]
Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years
[jBPM] - Re: Drools, Spring integration and JTA in container
by Alex Manly
Alex Manly [http://community.jboss.org/people/alexmanly] created the discussion
"Re: Drools, Spring integration and JTA in container"
To view the discussion, visit: http://community.jboss.org/message/599448#599448
--------------------------------------------------------------
Hi Rodri,
Here is my drools spring configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:aop="http://www.springframework.org/schema/aop" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:util="http://www.springframework.org/schema/util" xmlns:drools="http://drools.org/schema/drools-spring"
xmlns:camel="http://camel.apache.org/schema/spring"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
http://drools.org/schema/drools-spring
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-containe...
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
<context:annotation-config />
<context:property-placeholder location="classpath:/app_default.properties"/>
<jee:jndi-lookup id="dataSource" jndi-name="jdbc/appDS_V1" />
<jee:jndi-lookup id="entityManagerFactory" jndi-name="persistence/app-domain-pu" />
<tx:jta-transaction-manager />
<tx:annotation-driven transaction-manager="transactionManager"/>
<context:component-scan base-package="com.company.app" />
<drools:kbase id="kbase1">
<drools:resources>
<drools:resource id="cloneFlow" type="DRF" source="classpath:Clone.rf"/>
<drools:resource id="approvalFlow" type="DRF" source="classpath:Approval.rf"/>
</drools:resources>
<drools:configuration>
<drools:mbeans enabled="true" />
<drools:event-processing-mode mode="STREAM" />
</drools:configuration>
</drools:kbase>
<drools:ksession id="jpaSingleSessionCommandService" type="stateful" kbase="kbase1" name="stateful-session">
<drools:configuration>
<drools:jpa-persistence>
<drools:transaction-manager ref="transactionManager" />
<drools:entity-manager-factory ref="entityManagerFactory" />
<drools:variable-persisters>
<drools:persister for-class="javax.persistence.Entity" implementation="org.drools.persistence.processinstance.persisters.JPAVariablePersister"/>
<drools:persister for-class="java.io.Serializable" implementation="org.drools.persistence.processinstance.persisters.SerializableVariablePersister"/>
</drools:variable-persisters>
</drools:jpa-persistence>
<drools:work-item-handlers>
<drools:work-item-handler name="Human Task" ref="humanTaskHandler"/>
</drools:work-item-handlers>
<drools:keep-reference enabled="true" />
<drools:clock-type type="REALTIME" />
</drools:configuration>
<drools:script>
<drools:fire-all-rules/>
</drools:script>
</drools:ksession>
</beans>
I am using drools version 5.1.1, here is my maven config:
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-core</artifactId>
<version>5.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-api</artifactId>
<version>5.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-compiler</artifactId>
<version>5.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-persistence-jpa</artifactId>
<version>5.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.drools</groupId>
<artifactId>drools-spring</artifactId>
<version>5.1.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
<version>1.3.1</version>
<scope>compile</scope>
</dependency>
In my web application I copied the java file: org.drools.persistence.session.SingleSessionCommandService from the drools SVN site and then overriden and modified the method initTransactionManager (as long as this is higher up in the classpath the it will execute):
public void initTransactionManager(Environment env) {
Object tm = env.get( EnvironmentName.TRANSACTION_MANAGER );
// START CODE OVERRIDE - so drools works with org.springframework.transaction.jta.JtaTransactionManager
if ( tm != null && tm.getClass().getName().equals( "org.springframework.transaction.jta.JtaTransactionManager" ) ) {
logger.debug( "Instantiating Spring JtaTransactionManager" );
this.txm = new JtaTransactionManager(((org.springframework.transaction.jta.JtaTransactionManager)tm).getUserTransaction(),
env.get( EnvironmentName.TRANSACTION_SYNCHRONIZATION_REGISTRY ),
((org.springframework.transaction.jta.JtaTransactionManager)tm).getTransactionManager() );
this.jpm = new DefaultJpaManager(this.env);
} else {
// END CODE OVERRIDE - so drools works with org.springframework.transaction.jta.JtaTransactionManager
if ( tm != null && tm.getClass().getName().startsWith( "org.springframework" ) ) {
try {
Class<?> cls = Class.forName( "org.drools.container.spring.beans.persistence.DroolsSpringTransactionManager" );
Constructor<?> con = cls.getConstructors()[0];
this.txm = (TransactionManager) con.newInstance( tm );
logger.debug( "Instantiating DroolsSpringTransactionManager" );
if ( tm.getClass().getName().toLowerCase().contains( "jpa" ) ) {
// configure spring for JPA and local transactions
cls = Class.forName( "org.drools.container.spring.beans.persistence.DroolsSpringJpaManager" );
con = cls.getConstructors()[0];
this.jpm = ( JpaManager) con.newInstance( new Object[] { this.env } );
} else {
// configure spring for JPA and distributed transactions
}
} catch ( Exception e ) {
logger.warn( "Could not instatiate DroolsSpringTransactionManager" );
throw new RuntimeException( "Could not instatiate org.drools.container.spring.beans.persistence.DroolsSpringTransactionManager", e );
}
} else {
logger.debug( "Instantiating JtaTransactionManager" );
this.txm = new JtaTransactionManager( env.get( EnvironmentName.TRANSACTION ),
env.get( EnvironmentName.TRANSACTION_SYNCHRONIZATION_REGISTRY ),
tm );
this.jpm = new DefaultJpaManager(this.env);
}
// START CODE OVERRIDE
}
// END CODE OVERRIDE
Hope this helps
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/599448#599448]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years