[JBoss Messaging Users] - Re: Urgent! Clustered-queue on 2 nodes failed
by sv_srinivaas
Hi, I too have the same issue.
I installed JBoss 5.1.0 GA, Messaging 2.0.0 Beta 4. Ran the ClusteredQueueExample test that comes with JBM using ant and it worked sometimes but was not consistent, but when I started the queue jboss servers explicitly (i.e. server0 and server1 with exampleQueue created in jbm-jms.xml in both the nodes) and ran the ClusteredQueueExample.java from the eclipse ide then the example worked consistently without any issues.
Then I made a minor change to the ClusteredQueueExample.java such that after producer sending 10 messages to the queue, the consumer code was modified to consume all 10 messages from node1 whereas consumer 1 consumes only 5 messages (0,2,4,6,8) from node1 and node 2 messages (1,3,5,7,9) were left unconsumed.
If node 1 and node 2 are in cluster then irrespective of which node the consumer is pointing to, it should consume all 10 messages from both the nodes 1 and 2 right?
The same code woks fine with JBoss 5.0.0 GA even after making changes to the consumer code and it picks all 10 messages from node1.
Pls let me know what else I should do to make it work in JBoss 5.1.0?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254623#4254623
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254623
15 years, 4 months
[jBPM Users] - jBPM 4 and thread-safeness
by greeneagle
Hi,
I've been working for 2-3 years with jBPM 2/3 and now have the time to evaluate if I should switch to version 4 in future. In the user-guide I read the following:
anonymous wrote :
| For all objects that are referenced by a class name, will be instantiated during parsing time. Which implies that the objects have to be threadsafe. This is typically OK since those objects are typically immutable
|
In jBPM 3 an ActionHandler-Implementation was instantiated (lazy) at runtime. There was no need for an Action-impl to be threadsafe (and if several config-arguments were injected via processdefinition it wasn't for sure threadsafe :-). But although it was not threadsafe it was reusable - if an action was executed a second time (not concurrently) it was already instantiated.
But what is the difference in jBPM4 now? In a Java-Task for example it is still possible to provide arguments via declaration so this object (which is referenced by class-name) will never be threadsafe (except I chose the dirty way and make the variables final).
So my questions are:
Why do these objects have to be threadsafe? For me it doesn't make a difference if such a class is instantiated at parsing- or runtime.
If they must be threadsafe why are the classes in the examples not threadsafe
Why are objects instantiated (at parsing time) which maybe never will be used (who can guess the path of execution)?
Thanks in advance
regards,
Michael
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254605#4254605
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254605
15 years, 4 months
[JBoss Tools Users] - Re: want to port project from myeclipse to jboss tools...
by deanhiller
yes, "behind" can be relative. I am new to jboss tools, but then I was new to myeclipse when I set that up as well though it did take me an hour to setup as there was one trick that was tough. With jboss tools, I have been playing and playing with it with no luck.
I have no .settings folder in my myeclipse project at all so there is not the file that you speak of. I even tried setting this up in WTP project but did not succeed there either. How does one setup the location of javasrc, the jars to include in web-inf, the jars to use to compile but exclude from web-inf and then finally the xhtml files and web-inf descriptors. Those are the 5 things that need to get put somewhere. It seems like all the IDE's should really just ask you for those 5 things and be done with it(with little question marks next to each one explaining it).
anyways, is there a way to set up those 5 locations and have jboss deploy to tomcat/webapps (instead of copying into my source code directories).
in fact, when I fooled around with setup, and then diffed against cvs, my project structure had all these added files and I had to blow everything away...very annoying when it does stuff in the source tree when using version control. I just wish there was a tutorial on setting up a project with a different dir structure than the example(I even saw someone post on the WTP project the other day asking the same question).
Do you know of any docs or examples on setting up a different dir structure?
thanks,
Dean
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254604#4254604
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254604
15 years, 4 months