[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sandesha-dev
Subject:    Re: Sandesha2 Problems: Timeout
From:       "Chamikara Jayalath" <chamikaramj () gmail ! com>
Date:       2006-03-14 17:50:06
Message-ID: 9d4ec10b0603140950r1d0c5297k1060cc219553324b () mail ! gmail ! com
[Download RAW message or body]

Hi Bnjamin,

Please use Sandesha2-0.9 with Axis2 0.93.
Or use the latest Sandesha2 snapshots from
http://svn.apache.org/repository/sandesha2/mars/     , which will be
compatible with a latest Axis2 build.

Thanks,
Chamikara


On 3/14/06, Benjamin Schmeling <Benjamin_Schmeling@gmx.de> wrote:
>
> Hi,
>
> I am using Axis2 0.94 and Sandesha2 0.9 but I am not able to get this to
> work.
>
> I wrote a simple web service and deployed and tested it with axis2.
> Everything works.
> I took this webservice and added the Sandesha module:
>
> <service name="TestWebservice">
>         <module ref="Sandesha2-0.9" />
>        ....
>
> I added the Phases like you can see in the attachement and added the
> module for sandesha (.mar). My client looks like this:
>
> OMElement payload = getOMElementTestWS();
> Options options = new Options();
> options.setProperty(Options.COPY_PROPERTIES,new Boolean (true));
> options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI);
> options.setProperty(Sandesha2ClientAPI.AcksTo,targetEPRTest);
> options.setTo(targetEPRTest);
> options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
> options.setUseSeparateListener(true);
> options.setProperty(MessageContextConstants.TRANSPORT_URL,
> targetEPRTest.getAddress());
> options.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, "true");
> options.setSoapAction("test:soap:action");
> options.setTimeOutInMilliSeconds(10000);
> //Blocking invocation
> ServiceClient sender = new ServiceClient();
> sender.setOptions(options);
> sender.engageModule(new QName("Sandesha2-0.9"));
>
> OMElement result = sender.sendReceive(payload);
>
> First the console shows:
>
> INFO AxisConfigBuilder:357 - Class Not found :
> org.apache.axis2.transport.jms.SimpleJMSListener
> INFO DeploymentEngine:454 - Deploying module : addressing
>
> Then I got his fault after some time:
> org.apache.axis2.AxisFault: Time out while waiting for the server to
> send the response.
>
> Some ideas what can be the problem here?
>
> Thanks,
>
> Benjamin
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: sandesha-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: sandesha-dev-help@ws.apache.org
>
>
>

[Attachment #3 (text/html)]

Hi Bnjamin,<br>
<br>
Please use Sandesha2-0.9 with Axis2 0.93. <br>
Or use the latest Sandesha2 snapshots from
<a href="http://svn.apache.org/repository/sandesha2/mars/">http://svn.apache.org/repository/sandesha2/mars/</a>&nbsp;&nbsp;&nbsp;&nbsp;
 , which will be compatible with a latest Axis2 build.<br>
<br>
Thanks,<br>
Chamikara<br>
<br><br><div><span class="gmail_quote">On 3/14/06, <b \
class="gmail_sendername">Benjamin Schmeling</b> &lt;<a \
href="mailto:Benjamin_Schmeling@gmx.de">Benjamin_Schmeling@gmx.de</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Hi,<br><br>I am using \
Axis2 0.94 and Sandesha2 0.9 but I am not able to get this to<br>work.<br><br>I wrote \
a simple web service and deployed and tested it with axis2.<br>Everything works.<br>I \
took this webservice and added the Sandesha module: <br><br>&lt;service \
name=&quot;TestWebservice&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;module \
ref=&quot;Sandesha2-0.9&quot; /&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
....<br><br>I added the Phases like you can see in the attachement and added \
the<br>module for sandesha (.mar). My client looks like this: <br><br>OMElement \
payload = getOMElementTestWS();<br>Options options = new \
Options();<br>options.setProperty(Options.COPY_PROPERTIES,new Boolean \
(true));<br>options.setSoapVersionURI(SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI \
);<br>options.setProperty(Sandesha2ClientAPI.AcksTo,targetEPRTest);<br>options.setTo(t \
argetEPRTest);<br>options.setTransportInProtocol(Constants.TRANSPORT_HTTP);<br>options.setUseSeparateListener(true);<br>options.setProperty
 (MessageContextConstants.TRANSPORT_URL,<br>targetEPRTest.getAddress());<br>options.setProperty(Sandesha2ClientAPI.LAST_MESSAGE, \
&quot;true&quot;);<br>options.setSoapAction(&quot;test:soap:action&quot;);<br>options.setTimeOutInMilliSeconds
 (10000);<br>//Blocking invocation<br>ServiceClient sender = new \
ServiceClient();<br>sender.setOptions(options);<br>sender.engageModule(new \
QName(&quot;Sandesha2-0.9&quot;));<br><br>OMElement result = \
sender.sendReceive(payload); <br><br>First the console shows:<br><br>INFO \
AxisConfigBuilder:357 - Class Not found \
:<br>org.apache.axis2.transport.jms.SimpleJMSListener<br>INFO DeploymentEngine:454 - \
Deploying module : addressing<br><br>Then I got his fault after some time: \
<br>org.apache.axis2.AxisFault: Time out while waiting for the server to<br>send the \
response.<br><br>Some ideas what can be the problem \
here?<br><br>Thanks,<br><br>Benjamin<br><br><br><br><br><br><br><br>---------------------------------------------------------------------
 <br>To unsubscribe, e-mail: <a \
href="mailto:sandesha-dev-unsubscribe@ws.apache.org">sandesha-dev-unsubscribe@ws.apache.org</a><br>For \
additional commands, e-mail: <a \
href="mailto:sandesha-dev-help@ws.apache.org">sandesha-dev-help@ws.apache.org \
</a><br><br><br></blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic