[JBossMQ] - Re: Configure Queue from EAR
by jinpsu
I forgot to mention that my application is scoped. My META-INF/jboss-app.xml contains:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"
| "http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
| <jboss-app>
| <loader-repository>
| net.app:archive=ear
| <loader-repository-config> java2ParentDelegation=false
| </loader-repository-config>
| </loader-repository>
| </jboss-app>
|
I tried to do something similiar in META-INF/jboss-destinations-service.xml but it had no effect:
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <loader-repository>jboss.messaging:loader=ScopedLoaderRepository
| <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
| </loader-repository>
| <mbean code="org.jboss.mq.server.jmx.Queue"
| name="jboss.mq.destination:service=Queue,name=queue/mdb">
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| </mbean>
| </server>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180132#4180132
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180132
17 years, 9 months
[JBoss Messaging] - Migrating JBOSSMQ to JBOSS Messaging
by mvincenttis
Hi all,
We have used JBOSS4.2.2.GA for a while and now we have JBOSS EAP 4.3.0 under certification for use in production mode.
As JBOSS EAP is using JBOSS Messaging we have a problem. When a service queue definition is started an exception is thrown as below:
ERROR [ExceptionUtil] Queue[/queue/griffo/sendercontrollerqueue, name=griffo/sendercontrollerqueue] startService
javax.naming.NameNotFoundException: griffo not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.rebind(NamingServer.java:165)
at org.jnp.server.NamingServer.rebind(NamingServer.java:168)
at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:516)
..
..
This is the queue definition:
<mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=griffo/sendercontrollerqueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
jboss.messaging:service=PostOffice
true
The point is: The default JNDI context defined in the file messaging-service.xml is /queue and /topic for correspondents names without any custom context, but how do we create a custom JNDI context under that default?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180131#4180131
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180131
17 years, 9 months
[JBossMQ] - Configure Queue from EAR
by jinpsu
So I'm using JBoss 4.2.2.GA to create a handful of MDB's. I'm using the @MessageDriven annotation to configure the destination for the bean. Can I provide a *-service.xml in an EAR to create the Queue?
I tried putting the following in myEar/META-INF/jboss-destinations-service.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <mbean code="org.jboss.mq.server.jmx.Queue"
| name="jboss.mq.destination:service=Queue,name=queue/mdb">
| <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
| </mbean>
| </server
|
However, that doesn't seem to work because I still see this debug when my EAR is deployed to JBoss:
| WARN [MessagingContainer] [main] Could not find the queue destination-jndi-name=queue/mdb
| WARN [MessagingContainer] [main] destination not found: queue/mdb reason: javax.naming.NameNotFoundException: command not bound
| WARN [MessagingContainer] [main] creating a new temporary destination: queue/mdb
|
Everything still works, but I would like to avoid JBoss creating a temporary destination and configure the Queue from within my EAR.
What am I missing?
Thanks.
justin
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180128#4180128
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180128
17 years, 9 months
[Beginners Corner] - Problem deploying entity bean
by jelid
Hi,
I'm trying to deploy an entity bean on Jboss-4.2.2 using MyEclipse IDE ( 6.0.1 GA) and i have the following error. a warning and no other indication on the origin of the error. Can someone gives me indication on how to move for a rapid resolution of that kind of errors?
19:10:13,359 WARN [verifier] EJB spec violation:
Bean : SavingsAccountEJB
Section: 10.6.2
Warning: CMP entity beans may not define the implementation of a finder.
19:10:13,359 ERROR [MainDeployer] Could not create deployment: file:/C:/JBoss/jboss-4.2.2.GA/server/default/deploy/savingsaccount.jar
org.jboss.deployment.DeploymentException: Verification of Enterprise Beans failed, see above for error messages.
at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:610)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
etc...
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4180126#4180126
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4180126
17 years, 9 months