[JBoss-user] [Messaging, JMS JBossMQ] - Re: Queue-Security

2005-09-06 Thread ushirshah
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=bbop=viewtopicp=3893283#3893283

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=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] - Temporary queue JAAS Security

2005-09-06 Thread ushirshah
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=bbop=viewtopicp=3893292#3893292

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3893292


---
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