[JBoss Messaging] - Selector Help needed - Possible alternative suggestions welc
by anhminh_tran
Hi,
We have a need to have a persistent Queue that will, on one side, have producers publish messages (jobs) to it. On the otherside, a variable number of consumers need to be able to select for a specific type of message, if none of those types of messages are there, select for a different type of messages for processing.
The problem that i'm running into is that on the call to consumer.receive(), even though I only get one message back, if there are more than one message that matches the selector criteria, it seem that all those matching messages are "held" and other consumers that wants to select the same matching selector criteria cannot get to those messages to work on. So what happens is one consumer gets all the messages (jobs) while all the other consumers sit idle.
I would like for only one message to be "marked" received at a time.. the other messages that match the selector but is not given to the consumer yet should be available for the receive() call of the other consumers.
Is this something posssible or am I just doing something that is not supported?? Is there a better way to achieve what i'm trying to do?
Any help and suggestion would be appreciated.
I'm using JBoss 4.2 + JBoss Messaging 1.2
Thanks,
Minh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056722#4056722
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056722
18Â years, 10Â months
[JBoss Seam] - Newbie Question on JSF/Seam
by rvaneperen
I just started with JSF Seam. I have created a working page that searches for a program for a client. The result is displayed in a datatable. The data displayed in the table comes from a List of simple POJOs bound to the table. One of the columns has a commandLink that is bound to a method on the backing bean. The idea is to somehow make available the client id (String) and program id (Integer) associated with the row selected, set them on a "real" client object and make that available to the page to which I will navigate (which can vary based on the page from which the user arrived). I'm sure there are a few ways to do this, but would like a best practice if there is one. This client object will be required to continue being passed around the system until someone navigates back to the search and selects a new client and program. I have figured out the basics of how to use @Name on the client class and use an @Out and @In on the backing bean properties, just not how to make the two properties in the List available to set on it.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056715#4056715
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056715
18Â years, 10Â months
[Tomcat, HTTPD, Servlets & JSP] - Adding .jar files to the classpath of a webapp
by jwiegley
Hello, I'm building an .EAR file (using IDEA) that contains several .jar files in it. One of these .jar files contains classes that I need to be visible to Jython running inside a webapp (which is also packaged within the .war). To summarize:
FOO.EAR:
BAR.JAR
BAZ.WAR:
myclass.class <- uses org.python.core.imp.import
to load in a myscript.py file.
myscript.py does "import bar.type"
At the point when my web application gets to the "import bar.type" command in myscript.py in myclass.class within the .WAR, I get a long exception saying "module bar not found".
Module bar is inside BAR.JAR, which is being packaged in my .EAR. Apparently, this BAR.JAR is not being added to the classpath of my webapplication -- or it's not being passed down to Jython somehow.
How do I setup the classpath? Is it already being setup and I need to be looking at migrating it down to Jython?
I've looked everyone on Google for every combination of terms I can think of. So now I came to you all in frustration; help! :)
Thank you, John
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056710#4056710
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056710
18Â years, 10Â months