[jboss-user] [Messaging, JMS JBossMQ] - Re: Connection not authorized to addMessages to destination

2007-07-11 Thread [EMAIL PROTECTED]
Do you have any intention of reading the documentation to understand how this 
works?

Let me not explain it by asking you some questions?

Which roles is the MDB running under?
Is it the roles of the default user since you don't specify a user/password 
(unauthenticated)?
What is the unauthenticated user?
Is it 'guest?
What roles does guest have?
Does any of those roles have create authority on the topic?

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062934#4062934

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062934
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: Connection not authorized to addMessages to destination

2007-07-11 Thread teodoro21
Hi Adrian,
yes, I'm reading the documentation, ..probably  I'm asking  because I don't 
understand what says the documentation about JBossMQ's configuration. (I'm a 
newbie so I'm learning..)
I have written every parts of my configuration's file only to explain with more 
details which was my trouble.
So I'm very very sorry if It's a problem inside this forum.
Anyway thanks a lot for your suggestions.
I'll try to read documentation with more attention, I hope that will be more 
kind than you.

bye




View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062990#4062990

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062990
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: Connection not authorized to addMessages to destination

2007-07-11 Thread [EMAIL PROTECTED]
teodoro21 wrote : Hi Adrian,
  | yes, I'm reading the documentation, ..probably  I'm asking  because I don't 
understand what says the documentation about JBossMQ's configuration. (I'm a 
newbie so I'm learning..)
  | 

Then quid pro quo. Tell me which parts you are having difficulty understanding
so I can update it to make it easier to understand

anonymous wrote : 
  | I have written every parts of my configuration's file only to explain with 
more 
  | details which was my trouble.
  | So I'm very very sorry if It's a problem inside this forum.
  | 

The problem is that originally you posted irrelevant information
and later you posted *ALL* information with It works but I don't know why?
or more probably Is this correct, because I can't be bothered thinking about 
it? :-)

anonymous wrote : 
  | Anyway thanks a lot for your suggestions.
  | 

My real suggestion would be to research security (it is an important area).
authentication/authorization using users, roles and authorities is a very common
and simple pattern to grok.

anonymous wrote : 
  | I'll try to read documentation with more attention, I hope that will be 
more kind than you.
  | 

If you really want to be treated with kid gloves then post in the newbies 
forum,
or at least make some attempt to show you've tried to understand.
e.g. I've read this {link here}, but I don't know what it means by ...

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063052#4063052

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063052
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Messaging, JMS JBossMQ] - Re: Connection not authorized to addMessages to destination

2007-07-10 Thread teodoro21
Hi, Thanks Adrian for your reply.
The following is my configuration's files:


 - jbossmq-destinations-service.xml:   -



  depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager
  depends 
optional-attribute-name=SecurityManagerjboss.mq:service=SecurityManager
  
  
  
  
  
  

-



 - jbossmq-service.xml:   -
 
 ?xml version=1.0 encoding=UTF-8?

!-- $Id: jbossmq-service.xml 38187 2005-11-16 23:55:44Z adrian $ --



  !--  --
  !-- JBossMQ  --
  !--  --


  !--  --
  !-- JBossMQ Interceptor chain configuration  --
  !--  --
  !-- To tune performance, you can have the Invoker skip over the 
TracingInterceptor --
  !-- and/or the SecurityManager, but then you loose the ability to trace 
and/or enforce security. --
  
depends 
optional-attribute-name=NextInterceptorjboss.mq:service=TracingInterceptor
jboss:service=Naming
  

  
org.jboss.mq.server.TracingInterceptor
depends 
optional-attribute-name=NextInterceptorjboss.mq:service=SecurityManager
  

  

  

  

java:/jaas/jbossmq
depends 
optional-attribute-name=NextInterceptorjboss.mq:service=DestinationManager
  

  !--
 | The ClientMonitorInterceptor disconnects clients that have been idle for 
to long.
 | This interceptor is not enabled by default since the server might 
disconnect clients
 | when the it is under high load.
   --
  !--
  
8
depends 
optional-attribute-name=NextInterceptorjboss.mq:service=DestinationManager
  
  --

  !-- A Thread pool service --
  
 JMSThread
 JBossMQ Server Threads
 !-- The max number of threads in the pool --
 10
 !-- The max number of tasks before the queue is full --
 1000
 !-- The behavior of the pool when a task is added and the queue is full.
 abort - a RuntimeException is thrown
 run - the calling thread executes the task
 wait - the calling thread blocks until the queue has room
 discard - the task is silently discarded without being run
 discardOldest - check to see if a task is about to complete and enque
the new task if possible, else run the task in the calling thread
 --
 run
  

  !--  --
  !-- System Destinations  --
  !--  --

  !-- Dead Letter Queue --
  
depends 
optional-attribute-name=DestinationManagerjboss.mq:service=DestinationManager
depends 
optional-attribute-name=SecurityManagerjboss.mq:service=SecurityManager
  

  
  
  
  
  john
  needle
  DurableSubscriberExample
  
  
  
  
  DurableSubscriberExample
  test
  myTopic
  
  

  

-
TABLES:

 JMS_ROLES:
 ROLEID   USERID   
 -
durpublisher dynsub 
publisherdynsub 
guestguest   
j2ee guest 
john guest
durpublisher john 
publisherjohn 
subscriber   john 
noaccnobody   


JMS_USERS  :


USERIDPASSWD  CLIENTID  
   
- -
dynsub   dynsub 
nobody   nobody
john needle DurableSubscriberExample
j2ee j2ee 
guestguest
 


Now the error is changed, when I'm try to deploy my MDB I receive this error:

22:49:40,975 INFO  [EjbModule] Deploying MessageDrivenEJB
22:49:41,223 WARN  [JMSContainerInvoker] JMS provider failure detected for 
MessageDrivenEJB
org.jboss.deployment.DeploymentException: Error during topic setup; - nested 
throwable: (javax.jms.JMSSecurityException: Connection not authorized to do 
durable subscription on 

[jboss-user] [Messaging, JMS JBossMQ] - Re: Connection not authorized to addMessages to destination

2007-07-09 Thread [EMAIL PROTECTED]
Your question is unanswerable, since you don't show the security configuration 
for the
destination or JMS_ROLES. 

i.e. one of the roles john is in needs to have write access to the myTopic.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4061847#4061847

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4061847
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user