Re: AXIS JAVA Client - JMS Transport Authenication
Sam What is the version of Axis2 and the JMS transport which you are using? i.e. is it the SNAPSHOT versions or a previous release? The JMS transport implementation used by Apache Synapse ESB now lives in the WSCommons project so that Axis2 users can share is more naturally. That has support to define connection properties for outgoing JMS on your axis2.xml for the JMS sender. You could define JNDI properties (i.e. credentials) there for them to be picked up. Anyway, some more background information would help us help you better asankha Kuhn, Samuel M wrote: I need to provide a username and password to my AXIS client which is attempting to invoke a web service provider over a TIBCO EMS (JMS implementation) endpoint. I tried setting the username and password using the Call.setUsername() and Call.setPassword() methods with no luck. I also tried adding java.naming.security.principal and java.naming.security.credentials to the URL with no luck. Here's what my String url looks like: static String sampleJmsUrl = "jms:/queue.sample?" + "vendor=JNDI" + "&java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialConte xtFactory" + "&java.naming.provider.url=tcp://localhost:7222" + "&java.naming.security.principal=abc" + "&java.naming.security.credentials=xyz" + "&ConnectionFactoryJNDIName=QueueConnectionFactory" + "&deliveryMode=persistent" + "&priority=5" + "&ttl=1" + "&debug=true"; It appears my AXIS client is trying to log on using an "anonymous" user based on the error message I'm getting from the EMS server. Any help in resolving this would be appreciated. Sincerely, Sam Kuhn - 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]
AXIS JAVA Client - JMS Transport Authenication
I need to provide a username and password to my AXIS client which is attempting to invoke a web service provider over a TIBCO EMS (JMS implementation) endpoint. I tried setting the username and password using the Call.setUsername() and Call.setPassword() methods with no luck. I also tried adding java.naming.security.principal and java.naming.security.credentials to the URL with no luck. Here's what my String url looks like: static String sampleJmsUrl = "jms:/queue.sample?" + "vendor=JNDI" + "&java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialConte xtFactory" + "&java.naming.provider.url=tcp://localhost:7222" + "&java.naming.security.principal=abc" + "&java.naming.security.credentials=xyz" + "&ConnectionFactoryJNDIName=QueueConnectionFactory" + "&deliveryMode=persistent" + "&priority=5" + "&ttl=1" + "&debug=true"; It appears my AXIS client is trying to log on using an "anonymous" user based on the error message I'm getting from the EMS server. Any help in resolving this would be appreciated. Sincerely, Sam Kuhn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AXIS JAVA Client - JMS Transport Authenication
Sam, The name of the JNDI environment property you use to specify the user is incorrect. It should be java.naming.security.principal. Maybe that solves your problem? Andreas On 8 oct. 08, at 23:37, Sam Kuhn wrote: I need to provide a username and password to my AXIS client which is attempting to invoke a web service provider over a TIBCO EMS (JMS implementation) endpoint. I tried setting the username and password using the Call.setUsername() and Call.setPassword() methods with no luck. I also tried adding java.naming.security.principle and java.naming.security.credentials to the URL with no luck. Here's what my String url looks like: static String sampleJmsUrl = "jms:/queue.sample?" + "vendor=JNDI" + "&java .naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialConte xtFactory" + "&java.naming.provider.url=tcp://localhost:7222" + "&java.naming.security.principle=abc" + "&java.naming.security.credentials=xyz" + "&ConnectionFactoryJNDIName=QueueConnectionFactory" + "&deliveryMode=persistent" + "&priority=5" + "&ttl=1" + "&debug=true"; It appears my AXIS client is trying to log on using an "anonymous" user based on the error message I'm getting from the EMS server. Any help in resolving this would be appreciated. Sincerely, Sam Kuhn - 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]
AXIS JAVA Client - JMS Transport Authenication
I need to provide a username and password to my AXIS client which is attempting to invoke a web service provider over a TIBCO EMS (JMS implementation) endpoint. I tried setting the username and password using the Call.setUsername() and Call.setPassword() methods with no luck. I also tried adding java.naming.security.principle and java.naming.security.credentials to the URL with no luck. Here's what my String url looks like: static String sampleJmsUrl = "jms:/queue.sample?" + "vendor=JNDI" + "&java.naming.factory.initial=com.tibco.tibjms.naming.TibjmsInitialConte xtFactory" + "&java.naming.provider.url=tcp://localhost:7222" + "&java.naming.security.principle=abc" + "&java.naming.security.credentials=xyz" + "&ConnectionFactoryJNDIName=QueueConnectionFactory" + "&deliveryMode=persistent" + "&priority=5" + "&ttl=1" + "&debug=true"; It appears my AXIS client is trying to log on using an "anonymous" user based on the error message I'm getting from the EMS server. Any help in resolving this would be appreciated. Sincerely, Sam Kuhn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]