axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Asankha C. Perera" <asan...@wso2.com>
Subject Re: soap over jms
Date Fri, 10 Aug 2007 11:54:49 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Michele<br>
<br>
Yes, you could. But we haven't done it since it would increase the size
of the Synapse core download. <br>
<br>
asankha<br>
<br>
Michele Mazzucco wrote:
<blockquote cite="mid:1186739488.18520.9.camel@eskdale.ncl.ac.uk"
 type="cite">
  <pre wrap="">Paul,

thanks very much for your explanation. 
Just a quick question now. Can I embed ActiveMQ into Synapse?


Thanks,
Michele

On Thu, 2007-08-09 at 18:35 +0100, Paul Fremantle wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Michele

So the JMS transport supports SOAP/JMS, I believe this uses the
standard (which was posted to axis-dev a while back by Glen Daniels),
also XML/JMS, text and binary too.

Synapse can switch between these. Basically it represents text and
binary using special wrapper elements in the message &lt;binary
xmlns=<a class="moz-txt-link-rfc2396E" href="http://ws.apache.org/commons/ns/payload">"http://ws.apache.org/commons/ns/payload"</a>&gt;.

The samples show how to switch from a SOAP/HTTP to XML/JMS message.
<a class="moz-txt-link-freetext" href="http://ws.apache.org/synapse/Synapse_Samples.html#Transport">http://ws.apache.org/synapse/Synapse_Samples.html#Transport</a>

Paul

On 8/9/07, Michele Mazzucco <a class="moz-txt-link-rfc2396E" href="mailto:Michele.Mazzucco@ncl.ac.uk">&lt;Michele.Mazzucco@ncl.ac.uk&gt;</a>
wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">Ok, sorry Paul :).
I simply meant if there's anything special I should know in order to use
pure JMS inside my web service running on top of axis2/synapse, i.e. I
guess I should use a TextMessage if I want to forward a message
somewhere. What shall the it include?, just the SOAP body or the full
envelope?
Does it make sense to mix pure JMS and SOAP or it's better to split
these tasks? If I split them, what about inter-leavings and other time
related problems?

Thanks,
Michele

On Thu, 2007-08-09 at 14:55 +0100, Paul Fremantle wrote:
      </pre>
      <blockquote type="cite">
        <pre wrap="">I didn't understand part two of question #1!!!!

Synapse can also do load-balancing based on Axis2 sessions with
affinity, so each request goes to the server that initiated the
session.

Paul

On 8/9/07, Michele Mazzucco <a class="moz-txt-link-rfc2396E" href="mailto:Michele.Mazzucco@ncl.ac.uk">&lt;Michele.Mazzucco@ncl.ac.uk&gt;</a>
wrote:
        </pre>
        <blockquote type="cite">
          <pre wrap="">Paul,

thanks very much for the quick answer. However my idea about the proxy
was a bit different, that is the proxy is used to address fault
tolerance issues (at least at this stage), not for performance reasons.
The rationale is that my web service is statefull and it looks to me
that keeping the replica in sync would be very messy as the load
increases (and beyond a certain point it would be infeasible).
I've notice you didn't reply to the second part of question #1, so I
guess I can do it the usual way (i.e. via MessageListener on the
receiver side for async processing).

Thanks,
Michele


On Thu, 2007-08-09 at 13:47 +0100, Paul Fremantle wrote:
          </pre>
          <blockquote type="cite">
            <pre wrap="">Michele

You could use Apache Synapse (ws.apache.org/synapse). It can take
XML/SOAP over HTTP requests and forward them to JMS. No coding
required. It can also perform load-balancing. You could do round-robin
DNS to Synapse to spread the load to a pair of Synapse servers or just
have one. It can handle fairly high loads on its own.

Paul

On 8/9/07, Michele Mazzucco <a class="moz-txt-link-rfc2396E" href="mailto:Michele.Mazzucco@ncl.ac.uk">&lt;Michele.Mazzucco@ncl.ac.uk&gt;</a>
wrote:
            </pre>
            <blockquote type="cite">
              <pre wrap="">Hi all,

I want use both SOAP over HTTP and SOAP over JMS (topic with multiple
subscribers) but it's not very clear how to achieve my goal.
I want to put a sort of proxy/load balancer in front of my distributed
app to receive HTTP requests and forward them via JMS to a replicated
web service.
Here are my questions:
1 - How do I configure axis2 assuming it runs inside tomcat? I guess the
transport is completely transparent to my app, but what about if I want
to use JMS to accomplish other tasks?
2 - What do you suggest to use as proxy (I'll eventually need to modify
it in order to detect and react to node crashes).


Thanks,
Michele


---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>


              </pre>
            </blockquote>
            <pre wrap="">
            </pre>
          </blockquote>
          <pre wrap="">
---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>


          </pre>
        </blockquote>
        <pre wrap="">
        </pre>
      </blockquote>
      <pre wrap="">
---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>


      </pre>
    </blockquote>
    <pre wrap="">
    </pre>
  </blockquote>
  <pre wrap=""><!---->

---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-unsubscribe@ws.apache.org">axis-user-unsubscribe@ws.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:axis-user-help@ws.apache.org">axis-user-help@ws.apache.org</a>


  </pre>
</blockquote>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message