You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Davanum Srinivas <da...@gmail.com> on 2006/07/01 12:35:27 UTC

Re: [Axis2][Post 1.0 SVN] New JMS implementation doesn't support username and password while creating connection

JIRA Please :) Patches would be awesome!

thanks,
dims

On 6/30/06, Ali Sadik Kumlali <as...@yahoo.com> wrote:
> 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 <as...@yahoo.com>
> To: axis-user <ax...@ws.apache.org>
> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://people.apache.org/~dims/

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org