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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to