[jboss-user] [Messaging, JMS & JBossMQ] - Re: Connection not authorized to addMessages to destination
"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=bb&op=viewtopic&p=4063052#4063052 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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
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=bb&op=viewtopic&p=4062990#4062990 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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
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=bb&op=viewtopic&p=4062934#4062934 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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
Hi, Thanks Adrian for your reply. The following is my configuration's files: - jbossmq-destinations-service.xml: - jboss.mq:service=DestinationManager jboss.mq:service=SecurityManager - - jbossmq-service.xml: - jboss.mq:service=TracingInterceptor jboss:service=Naming org.jboss.mq.server.TracingInterceptor jboss.mq:service=SecurityManager java:/jaas/jbossmq jboss.mq:service=DestinationManager JMSThread JBossMQ Server Threads 10 1000 run jboss.mq:service=DestinationManager jboss.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 topic: myTopic) at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:53) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStartDelivery(JMSContainerInvoker.java:720) at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:839) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289) at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) But If I use I do it without errors! This is my ejb-jar.xml: Message Driven Bean MessageDrivenEJB MessageDrivenEJB it.java.lab.mdb.MessageDrivenEJBBean javax.jms.MessageListener Container javax.jms.Topic destinationType javax.jms.Topic subscriptionDurability Durable subscriptionName myTopic destination topic/myTopic Please let me know if you need any others details to help me! Thanks in advance Teo View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062692#4062692 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062692 ___ 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
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=bb&op=viewtopic&p=4061847#4061847 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061847 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user