Re: [jboss-user] [jBPM] - JBPM Configuration files question
by Maciej Swiderski
Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] replied to the discussion
"JBPM Configuration files question"
To view the discussion, visit: http://community.jboss.org/message/533434#533434
--------------------------------------------------------------
> 1. Is there a way to tell JBPM where the jbpm.hibernate.cfg.xml file is?
>
Yes, you can specify that in your jbpm.cfg.xml file as follows:
<jbpm-configuration>
....
<process-engine-context>
....
<hibernate-configuration>
<cfg resource="custom-jbpm.hibernate.cfg.xml" />
</hibernate-configuration>
....
</process-engine-context>
....
</jbpm-configuration>
There are three ways of providing location to the file:
- resource attribute to select from classpath
- file attribute to select from file system
- url attribute
> 1. Is there a place where I can find the documentation about all the configurations I can setup with the jbpm.cfg.xml? I could't find any documentation about how to edit such file.
>
Unfortunately there is probably no official documentation as far as I know, but source code is quite good to get such information.
HTH
Maciej
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533434#533434]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
[jBPM] - JBPM Configuration files question
by Massimiliano Ziccardi
Massimiliano Ziccardi [http://community.jboss.org/people/ziccardi] created the discussion
"JBPM Configuration files question"
To view the discussion, visit: http://community.jboss.org/message/533427#533427
--------------------------------------------------------------
Hi all!
I've a couple of simple (I think) questions about the jbpm configuration files (jbpm.cfg.xml and jbpm.hibernate.cfg.xml).
To load the JBPM configuration, I use the following code:
processEngine = new Configuration()
.setFile(new File("/tmp/jbpm.cfg.xml"))
.buildProcessEngine();
However, I couldn't find a way to tell JBPM where the jbpm.hiberate.cfg.xml file is: jbpm always search for it into the classpath.
My questions are:
1. Is there a way to tell JBPM where the jbpm.hibernate.cfg.xml file is?
2. Is there a place where I can find the documentation about all the configurations I can setup with the jbpm.cfg.xml? I could't find any documentation about how to edit such file.
Thank you in advance.
Regards,
Massimiliano
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533427#533427]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
[JBoss Web Services Development] - InjectionMetaDataDeploymentAspect misuse of EJBContainer.getEnc()
by Carlo de Wolf
Carlo de Wolf [http://community.jboss.org/people/wolfc] created the discussion
"InjectionMetaDataDeploymentAspect misuse of EJBContainer.getEnc()"
To view the discussion, visit: http://community.jboss.org/message/533419#533419
--------------------------------------------------------------
https://jira.jboss.org/jira/browse/EJBTHREE-2056 EJBTHREE-2056 changes the state of the naming context within the lifecycle of EJBContainer. In essence this is an implementation detail. With this change WS no longer deploys:
java.lang.IllegalStateException: EJBTHREE-2056: EjbEncFactory is null, usage of java:comp is not allowed before CREATE at org.jboss.ejb3.EJBContainer$1.invoke(EJBContainer.java:819) at $Proxy146.lookup(Unknown Source) at org.jboss.webservices.integration.injection.InjectionMetaDataDeploymentAspect.getJndiContext(InjectionMetaDataDeploymentAspect.java:186) at org.jboss.webservices.integration.injection.InjectionMetaDataDeploymentAspect.start(InjectionMetaDataDeploymentAspect.java:149) at org.jboss.webservices.integration.deployers.WSDeploymentAspectDeployer.internalDeploy(WSDeploymentAspectDeployer.java:114) at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) ... 69 more
As a quick work-around you could set a dependency on the EJBContainer before you start the InjectionMetaDataDeploymentAspect.
The final resolution needs to be tied into the jboss-injection component.
PS. I can't figure out what EJB3_JNDI_PREFIX is supposed to mean.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533419#533419]
Start a new discussion in JBoss Web Services Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
[jBPM] - task notification using custom mail producer
by Martin Pradny
Martin Pradny [http://community.jboss.org/people/mpradny] created the discussion
"task notification using custom mail producer"
To view the discussion, visit: http://community.jboss.org/message/533404#533404
--------------------------------------------------------------
Hello,
I need to add some info from an external system in new task notification. I think the right way to do this is using custom mail producer, but I couldn't find any info how to do this. Even when I checked the source code :( . In jPDL parser there are some attemps to check for bindings, but class attribute in <notification> tag is not allowed in XSD.
JPDLParser contains:
public MailProducer parseMailProducer(Element element, Parse parse, String defaultTemplateName) {
// check whether the element is a generic object descriptor
if (ObjectBinding.isObjectDescriptor(element)) {
// TODO test custom mail producer
ObjectDescriptor objectDescriptor = parseObjectDescriptor(element, parse);
return (MailProducer) WireContext.create(objectDescriptor);
}
// parse the default producer
MailProducerImpl mailProducer = new MailProducerImpl();
mailProducer.setTemplate(parseMailTemplate(element, parse, defaultTemplateName));
return mailProducer;
}
Could anyone point me in right direction?
Thank you,
Martin
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533404#533404]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months
[jBPM] - Quartz Deadlocks
by aaron ehrensberger
aaron ehrensberger [http://community.jboss.org/people/aehrensberger] created the discussion
"Quartz Deadlocks"
To view the discussion, visit: http://community.jboss.org/message/533394#533394
--------------------------------------------------------------
We are using Quartz with Spring and our configuration is throwing deadlocks when quartz has more than 1 thread configured. I'm starting to believe that it's because we don't have our quartz configured correctly with Spring, but I can't find enough documentation on how to configure the two to play nicely. I'm also starting to believe that Quartz is not going to be our solution, unfortunately, because of this issue.
We are running tests under heavy load, starting as many as 1000 jobs in a matter of minutes, all scheduled to be picked up by 50 quartz threads after 10 second delays.
We are running on both Windows and Linux environments - pointing at MSSQL and Oracle DBs. With both OS, using either DB, we can throw the following deadlock errors...
2010-03-17 18:52:31,737 [] [] ERROR [DocFinityScheduler_Worker-42] core.ErrorLogger core.ErrorLogger (QuartzScheduler.java:2185) - An error occured while marking executed job complete. job= 'BPM.6e41a6567f0000020100362a51dc7a50'
org.quartz.JobPersistenceException: Couldn't remove trigger: Transaction (Process ID 87) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. [See nested exception: com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 87) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.removeTrigger(JobStoreSupport.java:1469)at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggeredJobComplete(JobStoreSupport.java:2978)at org.quartz.impl.jdbcjobstore.JobStoreSupport$39.execute(JobStoreSupport.java:2962) at org.quartz.impl.jdbcjobstore.JobStoreSupport$41.execute(JobStoreSupport.java:3713)at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3747)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.executeInNonManagedTXLock(JobStoreSupport.java:3709)at org.quartz.impl.jdbcjobstore.JobStoreSupport.triggeredJobComplete(JobStoreSupport.java:2958)at org.quartz.core.QuartzScheduler.notifyJobStoreJobComplete(QuartzScheduler.java:1727)at org.quartz.core.JobRunShell.run(JobRunShell.java:273)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:534)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Transaction (Process ID 87) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Unknown Source at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(Unknown Source) at com.microsoft.sqlserver.jdbc.TDSCommand.execute(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(Unknown Source)at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeUpdate(Unknown Source)at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate(NewProxyPreparedStatement.java:105) at org.quartz.impl.jdbcjobstore.StdJDBCDelegate.deleteSimpleTrigger(StdJDBCDelegate.java:1820) at org.quartz.impl.jdbcjobstore.JobStoreSupport.deleteTriggerAndChildren(JobStoreSupport.java:1345 at org.quartz.impl.jdbcjobstore.JobStoreSupport.removeTrigger(JobStoreSupport.java:1453 ... 9 more
I have attached as many files as I could think of that relate to the issue. Can anybody help me out here? Do I have it configured incorrectly to not use a JobStoreCMT versus a JobStoreTX? Do I have it configured incorrectly in terms of threads or something else?
I'm really at a loss. We've been scouring the web for this stuff for documentation for two days and are still scratching our heads.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/533394#533394]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
16 years, 3 months