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