I'm using jboss 3.0.6 with embedded tomcat 4.1.18.
From a servlet I'm using a stateless session bean which puts a message in aqueue.
The strange thing is: it works fine on my Win2k machine, but fails on my redhat linux hosted environment with the following exception:
org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.ConnectException: Connection timed out)
Anybody any pointers?
I'm using the following code to connect
... queueConnection = queueConnectionFactory. createQueueConnection("myuser","*****"); ...
I've set up jboss as follows:
conf/jbossmq-state.xml: <StateManager> <Users> <User> <Name>myuser</Name> <Password>*****</Password> </User> </Users> <Roles> <Role name="subscriber"> <UserName>myuser</UserName> </Role> <Role name="publisher"> <UserName>myuser</UserName> </Role> </Roles> <DurableSubscriptions> </DurableSubscriptions> </StateManager>
deploy/jbossmq-destinations-service.xml:
<server>
<mbean code="org.jboss.mq.server.jmx.Queue"
name="jboss.mq.destination:service=Queue,name=myinqueue">
<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="publisher" read="true" write="true" create="false"/>
<role name="subscriber" read="true" write="false" create="false"/>
</security>
</attribute>
</mbean>
</server>
Thanks.
Klaas van der Ploeg
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user