Forgot to mention: 1) The current JMS implemantation does have the username and password variables although it doesn't set them anywhere in the code. So, you may say it doesn't support that feature either :) I reported this before.
2) The code I addressed is found JMSSender Regards Ali Sadik Kumlali ----- Original Message ---- From: Ali Sadik Kumlali <[EMAIL PROTECTED]> To: axis-user <[email protected]> Sent: Friday, June 30, 2006 9:58:06 AM Subject: [Axis2][Post 1.0 SVN] New JMS implementation doesn't support username and password while creating connection Hi all, I'm using SonicMQ and triying Axis2's current and the new JMS implementations over it. When I enable the security of my broker, it requires username and password to be passed while creating a connection. The current JMS implementation supports this kind of connection. Is there any reason why we don't have this feature anymore? It can easily be achived by replacing the line con = connectionFac.createConnection(); with following lines if (username != null && password != null) { con = connectionFac.createConnection(username, password); } else { con = connectionFac.createConnection(); } Here, username and password can be loaded from the configuration context as follows: AxisConfiguration axisConf = context.getAxisService().getAxisConfiguration(); String username = (String) axisConf.getParameter(Constants.USER_NAME).getValue(); String password = (String) axisConf.getParameter(Constants.PASSWORD).getValue(); Any comments? Regards, Ali Sadik Kumlali --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
