[JBoss Messaging Users] - Re: Slow consumer is blocking producer
by PoonamAgarwal
Sorry gaohoward,
I do not have a performance test to reproduce this. I reproduce this manually.
1. Are you sending 40k messages inside a loop in TopicExample.
I mean do you do createConnection before you publish every message or are you re-using the connection object before you publish every message.
I had tried caching these objects but did not get any improvement.
Is it possible for you to send me the modified version of the TopicExample?
2. Another difference I have is : I am using
session.createObjectMessage(). Is this making the publish process slow?
I have custom objects to be send in messages. Does the message type really matter?
I am still puzzled with one fact, if I comment the processing logic of each message then the whole process gets faster. I invoke some session beans to do some calculations on receiving each message.
Any help is appreciated.
-Poonam.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267373#4267373
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267373
14 years, 7 months
[jBPM Users] - jBPM 4.X: task-local variables
by tcr
Hi,
we were trying to work with task-local variables but recognised that this is not yet implemented ;-) (see userguide section 6.2.6.5). So we have a few questions around this topic. We are using jBPM 4.2.
- As we could not find this in Jira either, is there a plan when this will be implemented?
- Is there a workaround available? How do you deal with concurrent tasks accessing variables?
Example: We have a fork that will create 5 tasks (all of the same type but assigned to different user and some other smaller differences).
As each tasks is of the same type they all use a variable having the same key. Task 1 should not be able to manipulate this variable of task 3 but only "its own". Right now all variables are stored in the parent execution so we actually have only a single variable instead of 5.
Do you have ideas how we could implement this?
Any help appreciated!
Regards
tcr
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267372#4267372
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267372
14 years, 7 months
[jBPM Users] - Re: The most simple jBPM jbpm.cfg.xml configuration file
by bgoetzmann
Thank you Ronald,
In a NetBeans project I reused the configuration files jbpm.cfg.xml and jbpm.hiernate.xml coming from the <jbpm_4_2>\install\generated\cfg folder (I put them at the root of my source code). Of course, I added the required jars.
My main method looks like this:
ProcessEngine processEngine = new Configuration().buildProcessEngine();
| RepositoryService repoService = processEngine.getRepositoryService();
| ExecutionService executionService = processEngine.getExecutionService();
|
| NewDeployment deployment = repoService.createDeployment().addResourceFromClasspath("process.jpdl.xml");
| deployment.deploy();
| executionService.startProcessInstanceByKey("helloWorld");
As you can see in the code, I used the process.jpdl.xml process definition file (also in the classpath).
And before running it, I executed a HSQLDB server instance by running the Ant task start.hsqldb.server from <jbpm_4_2>\install.
And it works!
I also implement a custom activity (and use it in the process) in Groovy language by implementing ExternalActivityBehaviour, in order to invoke a remote service also in Groovy. This service is even running as a script in the Groovy console using the XML-RPC Groovy module.
Best regards,
Bertrand.
"kukeltje" wrote : There is a 'default' cfg in jbpm that is 'minimalô If you want less, you have to describe in detail what functionality of jBPM you do not want to use (there is not much difference in using jBPM in a webapp or standalone app)
|
| Regarding the database, that is totally up to you to decide.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267354#4267354
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267354
14 years, 7 months
[Spring Integration] - How to access deployed bean reference from a different sprin
by ivanyuan
Hi Guru,
I am using JBoss 4.2.2GA and jboss-spring deployer 2.5 (JDK5). I have a spring archive called BillingFramework.spring, which can be deployed successfully by the deployer and can be accessed from different web application as well.
However I would like to make those deployed beans available to another spring context, which is managed by MULE. Here is the snapshot of my muleApplicationContext.xml, where I want to have the reference of the deployed bean
| <beans xmlns=...
|
| <!-- This description tag doesn't work -->
| <description>ParentBeanFactory="BillingFramework"</description>
|
| <!-- access reference of billingBean, which is depoyed in BillingFramework -->
| <bean class="com.iseemedia.billing.Mediation">
| <property name="url">
| <value>https://localhost/test</value>
| </property>
| <property name="billing" ref="billingBean"/>
| </bean>
| ...
| </beans>
|
|
I tried to put a description tag into the spring bean context, but it is not a recognized tag in spring context. How can I access the deployed bean reference (say billingBean) from this spring bean context file? or if there is any way I can access the deployed bean from the bean defined in above spring context?
Thank a lot,
Ivan Yuan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4267348#4267348
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4267348
14 years, 7 months