[JBoss-user] 1 JNDI server referencing 2 JMS providers
Hi, I am using jboss3.2.1's JBossMQ module along with the JNDI & JMX modules only. It all works fine, however I wish to run a second JMS/JMX jboss app, but I would like to keep a single JNDI server to refer to both apps. The idea is to have one JMS provider for development, and another for production, but to keep a single JNDI server which deals with requests for either environment. I guess I need to let the second JMS provider bind its Connection/Topic object to the single JNDI server Is there a simple way to configure this with the JBossMQ config files? Any pointers would be appreciated, thanks Vrata -- V . . . . . . . . . tel:+34.918.131.331 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jbossMQ question: durable subscriber user authentication
Hi Adrian, got it at last! Thank you for your answers! I got another question regarding JNDI server connections to the JMS server, but I'll post this under a different thread for clarity. cheers Vrata Take a look in jbossmq-state.xml Do you see something like ID:1 in the durable subscriptions? This means you are using "annonymous" client ids. Either configure your user with a client id in jbossmq-state.xml (see the example for john) or use Connection.setClientID() Durable subscriptions are made against the client id not the user. Only one user can signon as a particular client-id at any one time. Regards, Adrian -- V . . . . . . . . . tel:+34.918.131.331 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Presentation
Thanks Chris, I managed to put in a pdf version on the forum, along with links as well. You'll find it at: http://www.jboss.org/thread.jsp?forum=67&thread=21007 for sourceforge I tried the upload but unfortunately the file is too large. So I posted a mail to the admin people there. We'll see if they put it on. I'll let you know if there is anything new. cheers Vrata Chris Bonham wrote: Putting the zip file on SourceForge is fine by me; I imagine one of the JBoss admins would have to do it though. Also, please link to presentation in the FAQ forum if you'd like. -- V . . . . . . . . . tel:+34.918.131.331 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jbossMQ question: durable subscriber user authentication
Hi Adrian, thanks for that I got over the JMSSecurityException: Connection not authorized error.I got another problem now. I was under the impression that a publish(msg, DeliveryMode.PERSISTENT, 3, 0) meant that the JMS provider would keep the message until the message was subscribed to successfully. I have a durable subsrciber, and what I am trying to get to work is to be able publish messages and make sure they are delivered, even if the subscriber falls over. ie, if the consumer client dies (ie is not running) then I was hoping that upon (re)start up it would collect all messages that had not been received. But it doesn't seem to work. These are the steps I carry out: 1. start my consumer (durable subscriber). As no messages have yet been published, it just terminates and exits. I am under the impression that it should at this point register with the provider that it is a durable subsriber under its subscriptions name createDurableSubscriber(testTopic, "testSub") 2. I launch my publisher, which runs fine and publishes 5 persistent non-expiring msgs (I see in the JMX console the DurableMessageCount going up). 3. I relaunch my consumer code in the hope that it will pick up the 5 msgs published and, from my understanding, stored by the provider. But no msgs appear. Am I doing something wrong, or is my logic completly flawed? hints would be gratefully welcomed. Vrata Adrian Brock wrote: The user you login as (configured in jbossmq-state.xml) must be in a role that has "create" authority on the topic. Regards, Adrian -- V . . . . . . . . . tel:+34.918.131.331 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] JBoss Presentation
thank you for the presentation. Great for a jboss beginner like me. Is it OK if we put it in SourceForge for easier access? I'd also like to put a thread in the FAQ forum at jboss.org, as I have seen many beginner's question for good intro material. Vrata I gave a presentation on JBoss and Web Services at the Indianapolis JUG (http://www.indyjug.net). The presentation can be downloaded from: http://www.thirdeyeconsulting.com/indyjug/jboss/ -- Chris Bonham President/CEO Third Eye Consulting, Inc. [EMAIL PROTECTED] http://www.thirdeyeconsulting.com 317.823.3686 317.823.0353 (FAX) -- V . . . . . . . . . tel:+34.918.131.331 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] jbossMQ question: durable subscriber user authentication
Hello, just started on JBoss 3.2.1. I have succesfully configured it for just the JMS/JNDI service. I am able to lookup the testTopic that comes preconfigured. I can publish/subsribe to the topic with a standard Subscriber. However, if I try to createDurableSubcriber(durableTopic, name), in order to register a durable subscriber, I get the following exception: javax.jms.JMSSecurityException: Connection not authorized to do durable subscription on topic: testDurableTopic I gather that it has to do with the user/role configuration set up with the topic, from the jms-destination-service.xml file: name="jboss.mq.destination:service=Topic,name=testDurableTopic"> jboss.mq:service=DestinationManager jboss.mq:service=SecurityManager Searched the archive + doc on this one, but came up empty handed. Anyone could point me in the right direction, it would be very much appreciated. many thanks Vrata -- V . . . . . . . . . tel:+34.918.131.331 --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user