Hi Falom,
I'm not sure wheter WSDL2Java supports JMS bindings yet. But you may
- Use HTTP binding in your WSDL
- Generate your stub with WSDL2Java
- In your client code which invokes the stub:
- Create JMS URL endpoint[1]
- Create your stub instance by passing JMS URL endpoint[2] to it
- Set separate listener option to true[3]
- Invoke your service operation through the stub (as usual)
Regards,
Ali Sadik Kumlali
[1] String jmsEndpointURL = "jms:/"
+ "TARGET_QUEUE" // destination
JNDI name
+ "?"
+ "transport.jms.ConnectionFactoryJNDIName="
+ "QueueConnectionFactory"
+
"&java.naming.factory.initial="
+ "com.sonicsw.jndi.mfcontext.MFContextFactory" // vendor specific factory
+ "&java.naming.provider.url="
+ "tcp://localhost:2506" //
vendor specific provider URL
+ "&java.naming.security.principal=Administrator"
+ "&java.naming.security.credentials=Administrator";
[2] MyStub stub = new MyStub (jmsEndpointURL);
or
MyStub stub = new MyStub (configContext, jmsEndpointURL);
[3] stub._getServiceClient().getOptions().setUseSeparateListener(true);
----- Original Message ----
From: falom <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, November 21, 2006 3:54:16 AM
Subject: Re: RE: [Axis2] JMS client How
Thanks Brennan. If i got you right, i need to first write WSDL with jms
bindings, then use WSDL2Java to generate client side code? Do you know where i
can find or read about a WSDL example for jms?
falom
"Spies, Brennan" <[EMAIL PROTECTED]> 写道:
<!-- _filtered {font-family:SimSun;panose-1:2 1 6 0 3 1 1 1 1 1;}
_filtered {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;} _filtered
{panose-1:2 1 6 0 3 1 1 1 1 1;}/* Style Definitions */ p.MsoNormal,
li.MsoNormal, div.MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:SimSun;}a:link,
span.MsoHyperlink {color:blue;text-decoration:underline;} a:visited,
span.MsoHyperlinkFollowed
{color:blue;text-decoration:underline;}p.MsoAutoSig, li.MsoAutoSig,
div.MsoAutoSig
{margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:"Times New
Roman";}p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:SimSun;}span.EmailStyle18
{font-family:Arial;color:navy;} _filtered {margin:1.0in 1.25in 1.0in
1.25in;}div.Section1 {}--> You can use the generated client that the
Axis 2.0 code generator supplies. The default endpoint in the generated
stub/unit test and the generated WSDL won’t be correct, but you can modify them
to fit pretty easily.
Brennan Spies
Sr. Programmer Analyst
Shared Application Services
-----Original Message-----
From: falom [mailto:[EMAIL PROTECTED]
Sent: Sunday, November 19, 2006 11:10 PM
To: [email protected]
Subject: [Axis2] JMS client How
Hi,
How to write client call to a JMS service in Axis2. Does ServiceClient
support this in some way or do i need to implement the axis2 JMSSender or other
ways to accomplish that?
falom
抢注雅虎免费邮箱-3.5G容量,20M附件!
Mp3疯狂搜-新歌热歌高速下
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]