File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes JMS lookup in JBoss3.2.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "JMS lookup in JBoss3.2.3" Watch "JMS lookup in JBoss3.2.3" New topic
Author

JMS lookup in JBoss3.2.3

Bushra Ataulla
Greenhorn

Joined: Jun 16, 2004
Posts: 2
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
 
 
subject: JMS lookup in JBoss3.2.3
 
Threads others viewed
JMS look up for JBoss 3.2.3
Happy Birthday JavaRanch!
MDB deployment problem
Not able to get output for MDB code...
Running JMS in JBoss
IntelliJ Java IDE