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 Küst Heiko <he...@winterthur.ch> on 2005/03/30 14:29:28 UTC

jms url syntax

hi,

i'm using jms as transport layer and tried to set the port address in the
service locator to something like
"jms:/MyQ/initialContextFactory=org.exolab.jms.jndi.InitialContextFactory&jn
diProviderURL=rmi://localhost:1099/&queueConnectionFactory=JmsQueueConnectio
nFactory". but this causes an exception:

java.net.MalformedURLException: unknown protocol: jms
	at java.net.URL.<init>(URL.java:549)

it seems that the java url class used in axis doesn't support "jms". is
there another way of specifying a jms url in axis?

the syntax i used is according to a proposal made by dave chappell and ray
chun/sonic, june 2003, which i found in the axis user mailing list archive
(<http://marc.theaimsgroup.com/?l=axis-dev&m=105613809524476&w=2>). was this
proposal ever realized?

thanks for your help.

heiko

Re: jms url syntax

Posted by Anne Thomas Manes <at...@gmail.com>.
I think your problem is with the "&".

>From the proposal:

Note that when specifying the JMS URL in a wsdl file, the ampersand
should be encoded
as "&amp;" (or one of the alternate delimiters used):

Anne


On Wed, 30 Mar 2005 14:29:28 +0200, Küst Heiko
<he...@winterthur.ch> wrote:
> hi,
> 
> i'm using jms as transport layer and tried to set the port address in the
> service locator to something like
> "jms:/MyQ/initialContextFactory=org.exolab.jms.jndi.InitialContextFactory&jn
> diProviderURL=rmi://localhost:1099/&queueConnectionFactory=JmsQueueConnectio
> nFactory". but this causes an exception:
> 
> java.net.MalformedURLException: unknown protocol: jms
>         at java.net.URL.<init>(URL.java:549)
> 
> it seems that the java url class used in axis doesn't support "jms". is
> there another way of specifying a jms url in axis?
> 
> the syntax i used is according to a proposal made by dave chappell and ray
> chun/sonic, june 2003, which i found in the axis user mailing list archive
> (<http://marc.theaimsgroup.com/?l=axis-dev&m=105613809524476&w=2>). was this
> proposal ever realized?
> 
> thanks for your help.
> 
> heiko
>