aspose file tools
The moose likes JBoss and the fly likes JMS look up for JBoss 3.2.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "JMS look up for JBoss 3.2.3" Watch "JMS look up for JBoss 3.2.3" New topic
Author

JMS look up for JBoss 3.2.3

Bushra Ataulla
Greenhorn

Joined: Jun 16, 2004
Posts: 2
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
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Moving to the JBoss Forum...
jshf jsf
Greenhorn

Joined: Jun 26, 2004
Posts: 2
your topic name should be equal to 'topicname'


~~~沽酒客來風亦醉~~ <br />~~賣花人去路還香~
 
IntelliJ Java IDE
 
subject: JMS look up for JBoss 3.2.3
 
Threads others viewed
Happy Birthday JavaRanch!
JMS lookup in JBoss3.2.3
MDB deployment problem
Not able to get output for MDB code...
Running JMS in JBoss
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com