[JBoss Messaging] - Re:
by nbhatia
My example is already posted in JIRA (see
https://jira.jboss.org/jira/browse/JBMESSAGING-1677 - JmsTest-v2.zip). It obviously uses all the bad things :-), i.e. MDB, JCA, JTA. I think the best thing to do is to change the example to work in the "recommended way" and use it as a reference.
I read the performance section in the manual. The most applicable one here seems to be "Re-use connections / sessions / consumers / producers". Indeed JCA is supposed to do that and hence every place I have read, the recommendation is to go with JCA. So, I am a bit confused - are you recommending to drop JCA and write our own connection pooling?
I also read the comment regarding not to use Spring JMS Template. Two questions here:
1) The JMS template is used only for sending messages and as long as we connect it to a pooled connection factory, there should be no problems, correct? Now how to get that pooled connection factory is a problem if the recommendation is not to use JCA.
2) The JMS template does not come into picture when receiving messages. Spring provides a MDP container which does its own pooling. So that should not be a problem either, correct?
So please help me understand how I can practically use the tuning recommendations. If I shouldn't be using JCA/JTA etc., then I have to manage resources myself. This means all application developers will write their own pooling code, which seems counter productive. Or we can use whatever is available out there (like Spring Template and MDP) and adapt it to work the right way.
Thoughts?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244334#4244334
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244334
17 years
[JBoss jBPM] - Re: About integrating JBPM in an existing EAR
by RonanKER
I'm giving a try but it is not easy as it seems for a newbie.
First of all, I can't find a real doc on all the config files (required or optional values, different properties ...) and I guess they are based on a IOC pattern but as I don't know what is required my test failed with a NullpointerException:
java.lang.NullPointerException
| at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:89)
| at com.vc.mm.jbpm.JbpmTest.testHelloWorld(JbpmTest.java:35)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
I guess "CommandService" is not injected in "RepositoryServiceImpl" but why ?
Here it is my jbpm.cfg.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <jbpm-configuration>
|
| <!-- import resource="jbpm.default.cfg.xml" / -->
| <!-- import resource="jbpm.tx.hibernate.cfg.xml" / -->
|
| <!-- from jbpm.default.cfg.xml -->
| <process-engine-context>
|
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <identity-service />
| <task-service />
|
| <!-- change here : no hibernate config for jbpm -->
| <!-- hibernate-configuration>
| <cfg resource="jbpm.hibernate.cfg.xml" />
| </hibernate-configuration -->
|
| <!-- change here : no hibernate session factory for jbpm -->
| <!-- hibernate-session-factory / -->
|
| <script-manager default-expression-language="juel"
| default-script-language="juel">
| <script-language name="juel"
| factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
|
| <authentication />
|
| <id-generator />
| <types resource="jbpm.variable.types.xml" />
|
| <address-resolver />
|
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00" />
| <tuesday hours="9:00-12:00 and 12:30-17:00" />
| <wednesday hours="9:00-12:00 and 12:30-17:00" />
| <thursday hours="9:00-12:00 and 12:30-17:00" />
| <friday hours="9:00-12:00 and 12:30-17:00" />
| <holiday period="01/07/2008 - 31/08/2008" />
| </business-calendar>
|
| <mail-template name='task-notification'>
| <to users="${task.assignee}" />
| <subject>${task.name}</subject>
| <text><![CDATA[Hi ${task.assignee},
| Task "${task.name}" has been assigned to you.
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
|
| <mail-template name='task-reminder'>
| <to users="${task.assignee}" />
| <subject>${task.name}</subject>
| <text><![CDATA[Hey ${task.assignee},
| Do not forget about task "${task.name}".
| ${task.description}
|
| Sent by JBoss jBPM
| ]]></text>
| </mail-template>
|
| </process-engine-context>
|
| <transaction-context>
| <repository-session />
| <db-session />
|
| <message-session />
| <timer-session />
| <history-session />
| <mail-session>
| <mail-server>
| <session-properties resource="jbpm.mail.properties" />
| </mail-server>
| </mail-session>
| </transaction-context>
|
| <!-- change here : from jbpm.tx.hibernate.cfg.xml -->
| <process-engine-context>
| <command-service>
| <retry-interceptor />
| <environment-interceptor />
| <standard-transaction-interceptor />
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <transaction />
| <!-- change here : added => current="true"-->
| <hibernate-session current="true" />
| </transaction-context>
|
| <import resource="jbpm.jpdl.cfg.xml" />
| <import resource="jbpm.identity.cfg.xml" />
| <import resource="jbpm.jobexecutor.cfg.xml" />
|
| </jbpm-configuration>
|
Thanks for any hint.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244328#4244328
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244328
17 years