[jboss-user] [JBoss Messaging] - Re: Jboss 5.0.0beta1 messaging problem

zlajaj do-not-reply at jboss.com
Thu Jan 11 04:32:02 EST 2007


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;
  }
  

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4000309#4000309

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4000309



More information about the jboss-user mailing list