[EJB 3.0] - Problem with MDB not finding it's queue
by malmei
Hi
I have a problem with a MessageDrivenBean which (by the look of it) doesn't connect to it's destination queue.
| @Stateless
| @MessageDriven(activationConfig =
| {
| @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination",propertyValue="queue/mdpojo"),
| @ActivationConfigProperty(propertyName="user",propertyValue="guest"),
| @ActivationConfigProperty(propertyName="password",propertyValue="guest"),
| @ActivationConfigProperty(propertyName="acknowledgeMode", propertyValue="AUTO_ACKNOWLEDGE")
| })
| // public class MsgConsumerBean implements MsgConsumerLocal,MsgConsumerRemote,MessageDrivenBean {
| public class MsgConsumerBean implements MessageListener,MessageDrivenBean {
| [ ... ]
| }
|
The queue is existing, I wrote a small program to browse it and there are 11 messages in it.
I also have a MDPOJO
| @Consumer(activationConfig= {
| @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
| @ActivationConfigProperty(propertyName="destination",propertyValue="queue/echo"),
| @ActivationConfigProperty(propertyName="acknowledgeMode", propertyValue="AUTO_ACKNOWLEDGE")
| })
| public class EchoBean implements Echo {
| [ ... ]
| }
|
which works just fine. In the logfile I can see lines like
| ...
| 2006-07-11 14:05:11,007 DEBUG [org.jboss.ejb3.mdb.ConsumerContainer] Got destination type Queue for EchoBean
| 2006-07-11 14:05:11,007 DEBUG [org.jboss.ejb3.mdb.ConsumerContainer] jndiSuffix: echo
| ...
|
but nothing similar for the MsgConsumerBean. The bean is definitivly deployed and I can see it's initialisation in the logfile. Everything is perfect, except that it's not trying to connect to the queue.
btw: echo and mdpojo are identically defined (except for the name)
Is there anything one has to do (besides annotations) to have a MDB connect to a queue?
Malte
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956991#3956991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956991
19 years, 9 months
[JBossWS] - wstools problem
by wayha
Hello,
what can be the reason of the following exception (during wstools ant task)
JBoss 4.0.4GA (I'm trying to migrate from 4.0.3 and ws4ee)
| BUILD FAILED
| java.lang.IncompatibleClassChangeError
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
| at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
| at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
| at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
| at org.apache.tools.ant.Main.runBuild(Main.java:668)
| at org.apache.tools.ant.Main.startAnt(Main.java:187)
| at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
| at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
| Caused by: java.lang.IncompatibleClassChangeError
| at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSSimpleTypeDefinition.getNamespace(JBossXSSimpleTypeDefinition.java:192)
| at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:336)
| at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.appendComplexTypeDefinition(WSSchemaUtils.java:646)
| at org.jboss.ws.metadata.wsdl.xmlschema.WSSchemaUtils.write(WSSchemaUtils.java:535)
| at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSNamespaceItem.toString(JBossXSNamespaceItem.java:368)
| at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.serializeNamespaceItems(JBossXSModel.java:535)
| at org.jboss.ws.metadata.wsdl.xmlschema.JBossXSModel.serialize(JBossXSModel.java:432)
| at org.jboss.ws.metadata.wsdl.WSDLWriter.appendTypes(WSDLWriter.java:113)
| at org.jboss.ws.metadata.wsdl.WSDL11Writer.write(WSDL11Writer.java:95)
| at org.jboss.ws.metadata.wsdl.WSDLDefinitions.write(WSDLDefinitions.java:309)
| at org.jboss.ws.tools.JavaToWSDL.generate(JavaToWSDL.java:338)
| at org.jboss.ws.tools.helpers.ToolsHelper.handleJavaToWSDLGeneration(ToolsHelper.java:122)
| at org.jboss.ws.tools.WSTools.process(WSTools.java:129)
| at org.jboss.ws.tools.WSTools.generate(WSTools.java:119)
| at org.jboss.ws.tools.ant.wstools.execute(wstools.java:103)
| at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
| at org.apache.tools.ant.Task.perform(Task.java:364)
| at org.apache.tools.ant.Target.execute(Target.java:341)
| at org.apache.tools.ant.Target.performTasks(Target.java:369)
| at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
my config
| <configuration xmlns="http://www.jboss.org/jbossws-tools">
| <java-wsdl>
| <service name="ClientServices" style="document" endpoint="ejb.TestEndPoint" />
| <namespaces target-namespace="http://ejb/client" type-namespace="http://ejb/types" />
| <mapping file="mappings.xml" />
| </java-wsdl>
| </configuration>
|
and interface
| public interface TestEndPoint extends Remote {
|
| public String test1(Long pp) throws RemoteException;
| }
|
|
Please help me .. I have no idea
thanks
Mttu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956983#3956983
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956983
19 years, 9 months