-
1. Re: Jboss 5.0.0beta1 messaging problem
peterj Jan 10, 2007 12:03 PM (in response to zlajaj)It would help if you posted the code that created the topic. I am especially interested in any code that specifies the locations of the messaging-users.properties and messaging-roles.properties files (if you specified it using login-config.xml, post that also)
-
2. Re: Jboss 5.0.0beta1 messaging problem
zlajaj Jan 11, 2007 4:32 AM (in response to zlajaj)This is from login-config.xml file :
<application-policy name="messaging">
<login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
<module-option name="unauthenticatedIdentity">guest</module-option>
<module-option name="usersProperties">props/messaging-users.properties</module-option>
<module-option name="rolesProperties">props/messaging-roles.properties</module-option>
</login-module>
</application-policy>
code :
private static TopicConnection getTopicConnection() throws NamingException, JMSException {
if (conn == null) {
conn = getTopicConnectionFactory().createTopicConnection("clientMessagePublisher", "clientMessagePublisher!");
conn.start();
conn.setExceptionListener(new ExceptionListener() {
public void onException(JMSException jmsException) {
Log.getInstance().addEntry(Log.LEVEL_ERR, jmsException, "Greska u komnunikaciji sa JBossMQ-om.");
stopConnection(jmsException);
}
});
}
return conn;
}
private static TopicConnectionFactory getTopicConnectionFactory() throws NamingException {
if (tcf == null) {
tcf = (TopicConnectionFactory)getInitialContext().lookup("ConnectionFactory");
}
return tcf;
} -
3. Re: Jboss 5.0.0beta1 messaging problem
zlajaj Jan 12, 2007 8:52 AM (in response to zlajaj)if I execute code out of server, I made application, it works fine.
Within server it is called from session bean.
Maybe it is problem with security.