-
1. Re: Authentication of producers & consumers in jboss messagi
timfox Mar 14, 2008 3:39 AM (in response to subrata_jboss)This is covered in the user guide
-
2. Re: Authentication of producers & consumers in jboss messagi
subrata_jboss Mar 14, 2008 4:29 AM (in response to subrata_jboss)Thanks for the reply.
I tried from User guide only. But my problem is ,suppose i configured role1
who can only send messageto a queue, so it is not allowing role2 to get the connection with queue and thus not sending the message.
But if you use connFac.createconnection() to the queue without passing the userid and password then you can actually get the connection object and send the message to that queue. -
3. Re: Authentication of producers & consumers in jboss messagi
timfox Mar 14, 2008 4:37 AM (in response to subrata_jboss)Use the default security.
Also, this is the design forum. User questions belong on the user forum. -
4. Re: Authentication of producers & consumers in jboss messagi
timfox Mar 14, 2008 4:39 AM (in response to subrata_jboss)[Moved thread from design forum]
-
5. Re: Authentication of producers & consumers in jboss messagi
subrata_jboss Mar 27, 2008 8:21 AM (in response to subrata_jboss)it worked.
you need to change three file.
messaging-users.properties and add
# user=role1,role2,...
ConsoleUser=password
messaging-roles.properties and add
# user=role1,role2,...
ConsoleUser=ConsoleAdmin
and destinations-service.xml and add
<mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=ConsoleUser" xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
jboss.messaging:service=PostOffice
createConnection() wont work if client and jboss server in different machine as queue is associated with role(which is fine).here you
need to say createConnection("Consoleuser","password");
but if client and server in the same machine createConnection() works.
which is not desirable.Dont know if it is a bug ?
Any way my requrement is working , so i am happy.(i.e client and server is in different machine)
Actually i was trying to run client and server from my machine , so it was not working. -
6. Re: Authentication of producers & consumers in jboss messagi
subrata_jboss Mar 27, 2008 8:23 AM (in response to subrata_jboss)sorry the destination file entry should be
<mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=SubrataTest" xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer
jboss.messaging:service=PostOffice -
7. Re: Authentication of producers & consumers in jboss messagi
subrata_jboss Mar 27, 2008 8:25 AM (in response to subrata_jboss)dont know why the lower part are not coming , though ia m pasting every time.
-
8. Re: Authentication of producers & consumers in jboss messagi
subrata_jboss Mar 27, 2008 8:27 AM (in response to subrata_jboss)okey it seems it wont come.
please add security config part for any queueu