• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Turn Off Security in Jboss6.0

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I have deployed a MDB (java 5) in Jboss6.0 and am trying to invoke it by posting a message to the Queue from a stand alone program that runs outside the container. When I created the queue I did not attach any roles to the Queue. But the standalone program is not able to post the message as the container tries to authenticate the user. I have not set any user credentials in the stand alone program.
Can someone let me know how to turn off the security ? or how to get around this issue ?

Thanks.
Lingan
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please post the relevant code and exception stacktrace? Also please post the queue configurations.
 
Lingan Rajan
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jai
Here is the code and configuration


Queue Summary :
General Properties
Name: jms.queue.SampleQueue
Version: a JMS Queue
Description: --

Traits
Name: SampleQueue
JNDI Binding: SampleQueue
Address: jms.queue.SampleQueue
Temporary: false
Paused: false

I did not add any Roles to the Queue while configuring.

Stacktrace


Thanks
Lingan


 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You created this queue from the admin-console or did you set it up manually in a xml file? From what I know, the queues aren't secured by default, so you shouldn't really be seeing this exception. Can you post the queue configuration in the .xml (look for it in the deploy folder of JBoss AS)?

 
You'll never get away with this you overconfident blob! The most you will ever get is this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic