[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Queue-Security
Hi, I am using Jboss and have configured JAAS authentication. When I try to create a Receiver for the temporary queue I am getting follwoing exception: anonymous wrote : javax.jms.JMSSecurityException: Connection not authorized to subscribe to destination: JMS_TQ8 When I try to create queue and Topic, my user/passwod gets authenticated and successfully creates queue/topic. Under jbossmq-destinations-service.xml I have my queues and topics configured correctly with the security role. I am not using Message Driven Beans. I am having this error for temporaray queue when I tried to createReceiver for the temporary queue. Any idea what might be happening? Without implementing MDB can I use JAAS security for the temporary queue ? part of my code: | try | { |Context jndiContext = getInitialContext(); | QueueConnectionFactory ref = | (QueueConnectionFactory)jndiContext.lookup("ConnectionFactory"); | | Queue queue = (Queue)jndiContext.lookup("queue/testQueue"); | queueConnection = ref.createQueueConnection(); | QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE); | // The temporary queue, | TemporaryQueue tq = queueSession.createTemporaryQueue(); | queueSender = queueSession.createSender(queue); | QueueReceiver qr = queueSession.createReceiver(tq); | } | catch (Exception e) { | System.out.println(e.getMessage()); | e.printStackTrace(); | } | | I am using Jboss 4.0.2. Thanks for your help in advance, Ushir View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3893283#3893283 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3893283 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Queue-Security
thank you for the reply. | | | false | | DocImportProcessorEJB | queue/eManager-DocImportQueue | | | abc | xyz | | | jms/QueueFactory | java:/JmsXA | | | | | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888459#3888459 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888459 --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Queue-Security
The mdb also needs to be authenticated. To allow a guest user with the assumed run-as role see the unauthenticatedIdentity option for the login module used to secure the target. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888225#3888225 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888225 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Queue-Security
i thought i found the solution with the run-as tag (but it's still not working) | | | DocImportProcessorEJB | ch.e_act.e_archive.server.emanager.ejb.DocImportProcessorBean | Container | MessageFormat = 'Version 3.4' | auto-acknowledge | |javax.jms.Queue | | | | ecollector | false | | | |jms/QueueFactory |javax.jms.QueueConnectionFactory |Container | | | | is there an other way to give the mdb-bean a role? or is the "run-as tag" the right way, and i missed something? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3888204#3888204 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3888204 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user