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 Ali Sadik Kumlali <as...@yahoo.com> on 2006/06/26 12:58:20 UTC
[Axis2][1.0] Getting username and password from context...
Hi all,
JMSSender.setupTransport () has a line that says: "// TODO: Fill username password from context". How/where can I get them?
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
Re: [Axis2][1.0] Getting username and password from context...
Posted by Ali Sadik Kumlali <as...@yahoo.com>.
Hi all,
It seems when the issue is related with "JMS", noone can help?? I feel like I'm talking by myself all the time :)
Anyway, this time I've found a solution that needs to be confirmed or rejected by an expert. In axis2.xml there are userName and password parameters. Should/Can I use them for creating a connection to the JMS provider?
axis2.xml
---------------
<parameter name="userName" locked="false">Administrator</parameter>
<parameter name="password" locked="false">Administrator</parameter>
JMSSender.setupTransport ()
-------------------------------------------
AxisConfiguration axisConf = context.getAxisService().getAxisConfiguration();
String username = (String) axisConf.getParameter(Constants.USER_NAME).getValue();
String password = (String) axisConf.getParameter(Constants.PASSWORD).getValue();;
Regards,
Ali Sadik Kumlali
----- Original Message ----
From: Ali Sadik Kumlali <as...@yahoo.com>
To: axis-user@ws.apache.org
Sent: Monday, June 26, 2006 2:20:58 PM
Subject: Re: [Axis2][1.0] Getting username and password from context...
I forgot to mention that I use Rampart and X.509 for message security. But AFAIK, JMSSender.setupTransport () does not ask for them. It just looks for the username and password to be able to connect the JMS provider. I didn't figure out where to store username/password of JMS provider.
Also, should I create different JMS provider connection username/password for each client eventhough I force them to sign their messages?
Thanks a lot.
Ali Sadik Kumlali
----- Original Message ----
From: Ali Sadik Kumlali <as...@yahoo.com>
To: axis-user <ax...@ws.apache.org>
Sent: Monday, June 26, 2006 1:58:20 PM
Subject: [Axis2][1.0] Getting username and password from context...
Hi all,
JMSSender.setupTransport () has a line that says: "// TODO: Fill username password from context". How/where can I get them?
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
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2][1.0] Getting username and password from context...
Posted by Ali Sadik Kumlali <as...@yahoo.com>.
I forgot to mention that I use Rampart and X.509 for message security. But AFAIK, JMSSender.setupTransport () does not ask for them. It just looks for the username and password to be able to connect the JMS provider. I didn't figure out where to store username/password of JMS provider.
Also, should I create different JMS provider connection username/password for each client eventhough I force them to sign their messages?
Thanks a lot.
Ali Sadik Kumlali
----- Original Message ----
From: Ali Sadik Kumlali <as...@yahoo.com>
To: axis-user <ax...@ws.apache.org>
Sent: Monday, June 26, 2006 1:58:20 PM
Subject: [Axis2][1.0] Getting username and password from context...
Hi all,
JMSSender.setupTransport () has a line that says: "// TODO: Fill username password from context". How/where can I get them?
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