[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
Can you verify that the EJB3 MDB example in the examples directory works ok for? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944301#3944301 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944301 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
I'd suggest posting a question in the JNDI users forum. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944292#3944292 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944292 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
Something else I have noticed is that when I use the JMX console to bind another queue into jndi it all works fine and no error messages occur. Also the jndi viewer shows the newley bound queue in there but you cannot lookup the queue from jndi. BTW I am using EJB3 so the context is bound using the following: | @Resource(authenticationType = AuthenticationType.CONTAINER) | private SessionContext ctx; | Also if you try to delete the queue using the supposedly bound jndi name via the JMX console I get the following error: | Caused by: javax.management.InstanceNotFoundException: jboss.messaging.destination:service=Queue,name=/queue/pulseMailQueue is not registered. | at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523) | at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:550) | at org.jboss.jms.server.ServerPeer.destroyDestination(ServerPeer.java:738) | at org.jboss.jms.server.ServerPeer.destroyQueue(ServerPeer.java:386) | 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) | ... 33 more | How can something be not registered in jndi and yet it shows up in the jndi viewer? As you can see from the startup log there are no messages: | = | | JBoss Bootstrap Environment | | JBOSS_HOME: c:\Java\AppServers\JBoss\jboss-4.0.4RC2 | | JAVA: /cygdrive/c/Java/SDK/jdk1.5.0_05/bin/java | | JAVA_OPTS: -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4142,suspend=n -Dprogram.name=bash -Dprogram.name=bash -Dprogram.name=bash -Dprogram.name=bash -Dprogram.name=bash -Dprogram.name=bash | | CLASSPATH: c;c;c;c;c;c:\Java\AppServers\JBoss\jboss-4.0.4RC2\bin\run.jar;c;c;c;c;c;c:\Java\SDK\jdk1.5.0_05\lib\tools.jar;c;c;c;c;c:\Java\AppServers\JBoss\jboss-4.0.4RC2\bin\run.jar;c;c;c;c;c:\Java\SDK\jdk1.5.0_05\lib\tools.jar;c;c;c;c:\Java\AppServers\JBoss\jboss-4.0.4RC2\bin\run.jar;c;c;c;c:\Java\SDK\jdk1.5.0_05\lib\tools.jar;c;c;c:\Java\AppServers\JBoss\jboss-4.0.4RC2\bin\run.jar;c;c;c:\Java\SDK\jdk1.5.0_05\lib\tools.jar;c;c:\Java\AppServers\JBoss\jboss-4.0.4RC2\bin\run.jar;c;c:\Java\SDK\jdk1.5.0_05\lib\tools.jar;c:\Java\AppServers\JBoss\jboss-4.0.4RC2\bin\run.jar;c:\Java\SDK\jdk1.5.0_05\lib\tools.jar | | = | | Listening for transport dt_socket at address: 4142 | 20:33:34,625 INFO [Server] Starting JBoss (MX MicroKernel)... | 20:33:34,625 INFO [Server] Release ID: JBoss [Zion] 4.0.4.CR2 (build: CVSTag=JBoss_4_0_4_CR2 date=200603311500) | 20:33:34,625 INFO [Server] Home Dir: C:\Java\AppServers\JBoss\jboss-4.0.4RC2 | 20:33:34,640 INFO [Server] Home URL: file:/C:/Java/AppServers/JBoss/jboss-4.0.4RC2/ | 20:33:34,640 INFO [Server] Patch URL: null | 20:33:34,640 INFO [Server] Server Name: pulse-with-messaging | 20:33:34,640 INFO [Server] Server Home Dir: C:\Java\AppServers\JBoss\jboss-4.0.4RC2\server\pulse-with-messaging | 20:33:34,640 INFO [Server] Server Home URL: file:/C:/Java/AppServers/JBoss/jboss-4.0.4RC2/server/pulse-with-messaging/ | 20:33:34,640 INFO [Server] Server Log Dir: C:\Java\AppServers\JBoss\jboss-4.0.4RC2\server\pulse-with-messaging\log | 20:33:34,640 INFO [Server] Server Temp Dir: C:\Java\AppServers\JBoss\jboss-4.0.4RC2\server\pulse-with-messaging\tmp | 20:33:34,640 INFO [Server] Root Deployment Filename: jboss-service.xml | 20:33:35,046 INFO [ServerInfo] Java version: 1.5.0_05,Sun Microsystems Inc. | 20:33:35,046 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_05-b05,Sun Microsystems Inc. | 20:33:35,046 INFO [ServerInfo] OS-System: Windows XP 5.1,x86 | 20:33:35,625 INFO [Server] Core system initialized | 20:33:36,937 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml | 20:33:38,734 INFO [SocketServerInvoker] Invoker started for locator: InvokerLocator [socket://192.168.1.2:3873/] | 20:33:39,265 INFO [AspectDeployer] Deployed AOP: file:/C:/Java/AppServers/JBoss/jboss-4.0.4RC2/server/pulse-with-messaging/deploy/ejb3-interceptors-aop.xml | 20:33:44,093 INFO [WebService] Using RMI server codebase: http://PAULTLAPTOP:8083/ | 20:33:44,296 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound | 20:33:46,734 INFO [MailService] Mail Service bound to java:/Mail | 20:33:47,078 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
So, the queue appears to bound in JNDI as revealed by jndiview, but a simple lookup does not get the queue? | | String destinationName = "/queue/pulseMailQueue"; | | Queue queue = (Queue) ctx.lookup(destinationName); | log.info("Queue " + destinationName + " exists"); | | If you cannot find the object in jndi then I suggest you check your JNDI settings, this doesn't involve any JBossMessaging code. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943796#3943796 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943796 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
That is correct. Do you have any suggestions as to what to look for in the JNDI settings that might be the cause? I'm not sure what would be the difference because the lookup of the ConnectionFactory all works fine. ie) | ConnectionFactory cf = ctx.lookup("java:/ConnectionFactory"); | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3944067#3944067 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3944067 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
I've checked the namespace and it appears that the queue has deployed correctly java: Namespace +- XAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory) +- DefaultDS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) +- SecurityProxyFactory (class: org.jboss.security.SubjectSecurityProxyFactory) +- DefaultJMSProvider (class: org.jboss.jms.jndi.JNDIProviderAdapter) +- comp (class: javax.naming.Context) +- jdbc (class: org.jnp.interfaces.NamingContext) | +- ElephantXA (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) | +- JBPM (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) | +- Elephant (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) | +- ScorpionJAAS (class: org.jboss.resource.adapter.jdbc.WrapperDataSource) +- JmsXA (class: org.jboss.resource.adapter.jms.JmsConnectionFactoryImpl) +- ConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory) +- timedCacheFactory (class: javax.naming.Context) Failed to lookup: timedCacheFactory, errmsg=org.jboss.util.TimedCachePolicy +- jaas (class: javax.naming.Context) | +- pulse-domain (class: org.jboss.security.plugins.SecurityDomainContext) | +- JmsXARealm (class: org.jboss.security.plugins.SecurityDomainContext) | +- HsqlDbRealm (class: org.jboss.security.plugins.SecurityDomainContext) +- TransactionPropagationContextExporter (class: org.jboss.tm.TransactionPropagationContextFactory) +- Mail (class: javax.mail.Session) +- StdJMSPool (class: org.jboss.jms.asf.StdServerSessionPoolFactory) +- comp.ejb3 (class: javax.naming.Context) | NonContext: null +- TransactionPropagationContextImporter (class: org.jboss.tm.TransactionPropagationContextImporter) +- jbpm (class: org.jnp.interfaces.NamingContext) | +- JbpmConfiguration (class: org.jbpm.JbpmConfiguration) +- TransactionManager (class: org.jboss.tm.TxManager) Global JNDI Namespace +- XAConnectionFactory (class: org.jboss.jms.client.JBossConnectionFactory) +- au (class: org.jnp.interfaces.NamingContext) | +- com (class: org.jnp.interfaces.NamingContext) | | +- pulse (class: org.jnp.interfaces.NamingContext) | | | +- online (class: org.jnp.interfaces.NamingContext) | | | | +- ejb3 (class: org.jnp.interfaces.NamingContext) | | | | | +- abr (class: org.jnp.interfaces.NamingContext) | | | | | | +- AustralianBusinessRegisterFacade (class: org.jnp.interfaces.NamingContext) | | | | | | | +- local (proxy: $Proxy93 implements interface au.com.pulse.online.ejb3.abr.IAustralianBusinessRegisterLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | | | | | | +- remote (proxy: $Proxy92 implements interface au.com.pulse.online.bi.abr.IAustralianBusinessRegister,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | | | | | | +- AustralianBusinessRegisterTranslatorFacade (class: org.jnp.interfaces.NamingContext) | | | | | | | +- local (proxy: $Proxy96 implements interface au.com.pulse.online.ejb3.abr.IAustralianBusinessRegisterTranslatorLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | | | | | | +- remote (proxy: $Proxy95 implements interface au.com.pulse.online.bi.abr.IAustralianBusinessRegisterTranslator,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | | | | | +- bi (class: org.jnp.interfaces.NamingContext) | | | | | | +- supplier (class: org.jnp.interfaces.NamingContext) | | | | | | | +- SupplierFacade (class: org.jnp.interfaces.NamingContext) | | | | | | | | +- local (proxy: $Proxy117 implements interface au.com.pulse.online.ejb3.supplier.ISupplierFacadeLocal,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject) | | | | | | | | +- remote (proxy: $Proxy116 implements interface au.com.pulse.online.bi.supplier.ISupplierFacade,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | | | | | | +- dummy (class: org.jnp.interfaces.NamingContext) | | | | | | | +- DummyFacade (class: org.jnp.interfaces.NamingContext) | | | | | | | | +- remote (proxy: $Proxy106 implements interface au.com.pulse.online.bi.dummy.IDummyFacade,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | | | | | | +- concept (class: org.jnp.interfaces.NamingContext) | | | | | | | +- ConceptFacade (class: org.jnp.interfaces.NamingContext) | | | | | | | | +- remote (proxy: $Proxy102 implements interface au.com.pulse.online.bi.concept.IConceptFacade,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject) | | | | | | +- user (class: org.jnp.interfaces.NamingContext) | | | | | | | +- UserFacade (class: org.jnp.interfaces.NamingCon
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
Looks like this page doesn't display the xml descriptors properly but I can provide them if needed. Shouldn't be too hard to reproduce. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943324#3943324 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943324 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
Can you try redeploying your queue then seeing if you can see it on the jndi viewer, via the jmx console? http://jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole You should see the queue there. If not, then it looks like it hasn't deployed properly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943411#3943411 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943411 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
The queue configuration is as follows: (I've got this in the deploy directory as a file called pulse-queues-service.xml as per the doco) | | | | jboss.messaging:loader=ScopedLoaderRepository | java2ParentDelegation=false | | |jboss.messaging:service=ServerPeer | | | | | | | |75000 |2000 |2000 | | | The service deployment directory: | | | | | | | | | | | | | | | | | | jboss.messaging:service=ThreadPool | jboss.messaging:service=PersistenceManager | jboss.messaging:service=MessageStore | jboss.messaging:service=ChannelMapper | | | java:/jaas/pulse-domain | | | | | | | | | | | | | | | | | | | | | | | | | The security domain is configured as follows: | | | | java:/jdbc/ScorpionJAAS | anonymous | | | | | | | | true | | | | | Hope this helps View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943385#3943385 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943385 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Messaging] - Re: Message Queues with DatabaseServerLoginModule
Can you show me your queue config? I.e. where you are deploying the queue. BTW using a block should allow you display your config properly. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3943332#3943332 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3943332 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user