[jBPM] - Different WorkItemManager objects
by Cristiano Nicolai
Cristiano Nicolai [http://community.jboss.org/people/cristiano.nicolai] created the discussion
"Different WorkItemManager objects"
To view the discussion, visit: http://community.jboss.org/message/605548#605548
--------------------------------------------------------------
Hi guys,
I'm playing with a JPA StatefulKnowledgeSession and just realized that the WorkItemManager instance received as parameter on my WorkItemHandler isn't the same object that I get when I call ksession.getWorkItemManager().
WorkItemHandler: org.drools.persistence.jpa.processinstance.JPAWorkItemManager@48dfaa07
ksession.getWorkItemManager(): org.drools.command.impl.CommandBasedStatefulKnowledgeSession$1@6de525a1
I understand that a CommandBasedStatefulKnowledgeSession uses a CommandService to encapsulate a single session and probably what I'm receiving on my handler is the manager associated to this session and not the one available on the CommandBasedStatefulKnowledgeSession.
I faced this situation because I tried to update the CommandBasedWSHumanTaskHandler to not depend on a KnowledgeSession and only use the WorkItemManager received as parameter, but then some problems started to happen.
Just want to understand if this should be considered as a normal behavior.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/605548#605548]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month
[Datasource Configuration] - How to set up OracleValidConnectionChecker
by Gunnar Bostrom
Gunnar Bostrom [http://community.jboss.org/people/gunnarbos] created the discussion
"How to set up OracleValidConnectionChecker"
To view the discussion, visit: http://community.jboss.org/message/605809#605809
--------------------------------------------------------------
Hi,
We use JBoss 5.1.0.GA and java 1.6 and run in to trouble with org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker.
The oracle-ds.xml contains
<!-- sql to call when connection is created -->
<new-connection-sql>select 1 from dual</new-connection-sql>
<!-- sql to call on an existing pooled connection when it is obtained from
pool - the OracleValidConnectionChecker is prefered -->
<check-valid-connection-sql>select 1 from dual</check-valid-connection-sql>
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker
</valid-connection-checker-class-name-->
If I remove the comment around OracleValidConnectionChecker I get this warning:
08:23:24,519 WARN [org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker] (http-0.0.0.0-8080-1) Unexpected error in pingDatabase
java.lang.IllegalArgumentException: object is not an instance of declaring class
How can I do this correctly?
The log says warning, but is the check done and a new connection created if the check failed?
Regards
Gunnar
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/605809#605809]
Start a new discussion in Datasource Configuration at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 1 month