I have 2 clustered MDBs on separate JBoss AS deployed in /jboss-4.0.5.GA/server/all/deploy, let's call the servers M1 and M2. They are listening on 2 other clustered Jboss AS hosting a JBossMQ queue, let's call them Q1 and Q2. So, there are 4 total Jboss AS running concurrently, M1, M2, Q1 and Q2.
1 JMS msg was put on the master node queue on Q1. Both M1 and M2 consumed the same message and did their business logic. How is that possible that 2 MDBs consume the same JMS message? I thought either one of M1 or M2 would consume JMS, but not both.
In our setup, only one MDB has to do work. Is it possible to put the MDBs (ear file) on M1 and M2 in jboss-4.0.5.GA/server/all/deploy-hasingleton/jms or are there other solutions?
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119742#4119742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119742
I use the same wsprovide and wsconsume targets that you do, but the client still seems to need the WSDL in order to create the service endpoint. Thus I have: myService = Service.create(new URL("http://localhost:8080/serviceContextRoot?wsdl"), new QName(...));
I tried using a file URL using the file generated by wsprovide but then I get:javax.xml.ws.WebServiceException: java.lang.IllegalArgumentException: Malformed endpoint address
I wish there were at least a form of Service.create that would take a stream for the WSDL instead of a URL. Then I could pack the WSDL in the WAR. Even better of course would be for the client not to need the WSDL at all (the .NET client I generated from the WSDL doesn't need it, the Java one really shouldn't either). Have you been able to get that to work? If so a code snippet would be really nice. Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119729#4119729
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4119729