• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS lookup in JBoss3.2.3

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
posted June 16, 2004 05:53 AM
--------------------------------------------------------------------------------
Hello,

I need help in configuring JMS for JBoss 3.2.3. I have done the following configurations for a new topic.

in the jbossmq-destinations-service.xml - added the following...

<mbean code="org.jboss.mq.server.jmx.Topic"
name="jboss.mq.destination:service=Topic,name=topicname">
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"/>
</security>
</attribute>
</mbean>

Restarted the JBoss.

now using the client, am trying to get the topic connection factory as :

InitialContext initialContext = new InitialContext(p);
topicConnectionFactory = (TopicConnectionFactory)initialContext.lookup("ConnectionFactory");

I am using the default ConnectionFactory to lookup for the TopicConnectionFactory. This is returning me null. Am I doing this correct. If not where can I find the lookup name.

Please help me asap as I am struck up with this problem

Regs
nvb
reply
    Bookmark Topic Watch Topic
  • New Topic