You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by mehdi ait oufkir <me...@yousendit.com> on 2007/12/29 01:24:59 UTC

Adding STOMP transport protocol in synapse

Hi,

I¹m evaluating synapse for a project and one of the requirement would be to
support the STOMP transport protocol. I know synapse already support by
default http,https, jms, I¹d like to know what it would take to support
another protocol. How extensible is synapse?

If this is possible, may be you can guide me with some general dev
documentation, and build documentation. I already checked out the code into
eclipse but I had hard to understand the structure of the code.

Thanks,
Mehdi Ait Oufkir

Re: Adding STOMP transport protocol in synapse

Posted by mehdi ait oufkir <me...@yousendit.com>.
Using ws-rm for the client side makes a lot of sense. I'll try that.
But I still need to read from a queue system on the server side and C
doesn't support JMS so I might just use STOMP.

I'll try that and let you know.

mehdi


On 12/30/07 3:42 AM, "Paul Fremantle" <pz...@gmail.com> wrote:

> Medhi
> 
> One option would be to use WS-ReliableMessaging which has PHP support.
> 
> I will look at Stomp and see how it fits... however, basically
> Asankha's advice is pretty much right.
> 
> Paul
> 
> On Dec 29, 2007 9:46 PM, mehdi ait oufkir <me...@yousendit.com> wrote:
>> Paul,
>> 
>> I know I can do that. But I don't want to have my server to talk directly to
>> activemq.
>> So I would have, On the client side something like.
>> 
>> Client<----STOMP---->Synapse<---JMS--->Activemq
>> The client is in php.
>> 
>> On the server side:
>> Activemq<----JMS---->Synapse<----STOMP--->Server.
>> My server is in C.
>> 
>> I don't know if it's the best way to do it. But I don't want to have neither
>> my client, nor my server coupled to activemq.
>> 
>> My goal is to enable asynchronous web-services thru a queue mechanism, but
>> to my knowledge PHP and C can't talk JMS.
>> 
>> Let me know if I'm going the wrong way.
>> 
>> Concerning the build of synapse. Do you have some documentation somewhere or
>> can I build it from eclipse. I have heard about maven but I'm not familiar
>> at all with it, I know more about ant.
>> 
>> Mehdi.
>> 
>> 
>> 
>> On 12/29/07 1:24 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>> 
>>> Mehdi
>>> 
>>> Synapse works "out of the box" with ActiveMQ. Would it be enough
>>> simply to use ActiveMQ and enable the STOMP protocol with that?
>>> 
>>> i.e. Synapse->ActiveMQ->STOMP
>>> 
>>> Paul
>>> 
>>> On Dec 29, 2007 2:11 AM, Asankha C. Perera <as...@wso2.com> wrote:
>>>> 
>>>>  Hi Mehdi
>>>> 
>>>>  The transports used by Synapse are actually Axis2 transports.. Thus the
>>>> interfaces you need to implement are actually in Axis2.. however, since
>>>> Synapse uses more transports typically than Axis2, the Synapse code base
>>>> contains a module "tranports" that contains the code for the VFS, JMS and
>>>> NHTTP transports. However, the NHTTP transport is quite different and a bit
>>>> complex - but you should be able to look at the JMS transport code to get a
>>>> better understanding. Start from the JMSListener and JMSSender and also
>>>> look
>>>> at the AbstractTransportSender and the AbstractTransportListener that will
>>>> make your implementation simpler
>>>> 
>>>>  asankha
>>>> 
>>>> 
>>>> 
>>>>  mehdi ait oufkir wrote:
>>>>  Hi,
>>>> 
>>>>  I'm evaluating synapse for a project and one of the requirement would be
>>>> to
>>>> support the STOMP transport protocol. I know synapse already support by
>>>> default http,https, jms, I'd like to know what it would take to support
>>>> another protocol. How extensible is synapse?
>>>> 
>>>>  If this is possible, may be you can guide me with some general dev
>>>> documentation, and build documentation. I already checked out the code into
>>>> eclipse but I had hard to understand the structure of the code.
>>>> 
>>>>  Thanks,
>>>>  Mehdi Ait Oufkir
>>> 
>>> 
>> 
>> Mehdi Ait Oufkir
>> Webapp lead
>> O: 408.879.9118 x222   | F: 408.879.9117
>> 
>> yousendit
>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
>> Send, Receive, Track. . .  www.YouSendIt.com
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>> 
>> 
> 
> 

Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit  
1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
Send, Receive, Track. . .  www.YouSendIt.com


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


Re: Adding STOMP transport protocol in synapse

Posted by Paul Fremantle <pz...@gmail.com>.
Medhi

One option would be to use WS-ReliableMessaging which has PHP support.

I will look at Stomp and see how it fits... however, basically
Asankha's advice is pretty much right.

Paul

On Dec 29, 2007 9:46 PM, mehdi ait oufkir <me...@yousendit.com> wrote:
> Paul,
>
> I know I can do that. But I don't want to have my server to talk directly to
> activemq.
> So I would have, On the client side something like.
>
> Client<----STOMP---->Synapse<---JMS--->Activemq
> The client is in php.
>
> On the server side:
> Activemq<----JMS---->Synapse<----STOMP--->Server.
> My server is in C.
>
> I don't know if it's the best way to do it. But I don't want to have neither
> my client, nor my server coupled to activemq.
>
> My goal is to enable asynchronous web-services thru a queue mechanism, but
> to my knowledge PHP and C can't talk JMS.
>
> Let me know if I'm going the wrong way.
>
> Concerning the build of synapse. Do you have some documentation somewhere or
> can I build it from eclipse. I have heard about maven but I'm not familiar
> at all with it, I know more about ant.
>
> Mehdi.
>
>
>
> On 12/29/07 1:24 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>
> > Mehdi
> >
> > Synapse works "out of the box" with ActiveMQ. Would it be enough
> > simply to use ActiveMQ and enable the STOMP protocol with that?
> >
> > i.e. Synapse->ActiveMQ->STOMP
> >
> > Paul
> >
> > On Dec 29, 2007 2:11 AM, Asankha C. Perera <as...@wso2.com> wrote:
> >>
> >>  Hi Mehdi
> >>
> >>  The transports used by Synapse are actually Axis2 transports.. Thus the
> >> interfaces you need to implement are actually in Axis2.. however, since
> >> Synapse uses more transports typically than Axis2, the Synapse code base
> >> contains a module "tranports" that contains the code for the VFS, JMS and
> >> NHTTP transports. However, the NHTTP transport is quite different and a bit
> >> complex - but you should be able to look at the JMS transport code to get a
> >> better understanding. Start from the JMSListener and JMSSender and also look
> >> at the AbstractTransportSender and the AbstractTransportListener that will
> >> make your implementation simpler
> >>
> >>  asankha
> >>
> >>
> >>
> >>  mehdi ait oufkir wrote:
> >>  Hi,
> >>
> >>  I'm evaluating synapse for a project and one of the requirement would be to
> >> support the STOMP transport protocol. I know synapse already support by
> >> default http,https, jms, I'd like to know what it would take to support
> >> another protocol. How extensible is synapse?
> >>
> >>  If this is possible, may be you can guide me with some general dev
> >> documentation, and build documentation. I already checked out the code into
> >> eclipse but I had hard to understand the structure of the code.
> >>
> >>  Thanks,
> >>  Mehdi Ait Oufkir
> >
> >
>
> Mehdi Ait Oufkir
> Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track. . .  www.YouSendIt.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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


Re: Adding STOMP transport protocol in synapse

Posted by Rajith Attapattu <ra...@gmail.com>.
On Jan 1, 2008 10:14 PM, Mehdi Ait Oufkir <me...@yousendit.com> wrote:

> Hi Rajith,
>
> I got your point.
> If my understanding is right:
> AMPQ would allow my server to read from a queue (the way STOMP could)
> since you already have a client in C++ that can read from a MOM that
> supports AMQP.
>

That's correct.

>
> The issue now is that synapse doesn't support (yet) AMQP natively. So the
> server would have to talk directly to the MOM (something I don't want).
>

Not really, to get AMQP, you can use the the apache Qpid JMS impl and the
JMS transport in Synapse.


>
> What is the status of the dev of AMQP support for synapse and which MOM
> supports AMQP?
>

I am working on a native AMQP transport as well, and will do a code drop
tomorrow morning.
You can use the Qpid c++ broker (the java broker will be ready in
March/April) as the MOM.
Once the other implementations support the 0-10 version, you should be able
to use any of those brokers and clients. (thats the beauty of AMQP).


>
>
> Mehdi.
>
>
>
>
> On 1/1/08 10:53 AM, "Rajith Attapattu" <ra...@gmail.com> wrote:
>
>   Mehdi,
>
> I hate to sound like a salesman, but AMQP does provide the
> interoperability and cross language support you are looking for.
> I know you are looking for something based on STOMP, but AMQP is a
> protocol that will have a lot more support in the future.
> So it's worth giving it some thought. (There are other goodies that come
> with AMQP as well..)
>
> Apache Qpid does have a JMS implementation over AMQP.So you can use AMQP
> with synapse as we have a JMS transport.
> I have also started writing a native AMQP transport for Synapse as well.
> The flip side is we only have a c++ client. So u may need to figure out
> how to use that within "c" code. (I am no expert, but I heard u can do that,
> but has portability issues). If u have a "c" client then you could get a PHP
> binding so you can have a PHP client too.
>
> Regards,
>
> Rajith Attapattu
> Red Hat
> blog: http://rajith.2rlabs.com/
>
> On Dec 29, 2007 4:46 PM, mehdi ait oufkir <me...@yousendit.com> wrote:
>
>  Paul,
>
> I know I can do that. But I don't want to have my server to talk directly
> to
> activemq.
> So I would have, On the client side something like.
>
> Client<----STOMP---->Synapse<---JMS--->Activemq
> The client is in php.
>
> On the server side:
> Activemq<----JMS---->Synapse<----STOMP--->Server.
> My server is in C.
>
> I don't know if it's the best way to do it. But I don't want to have
> neither
> my client, nor my server coupled to activemq.
>
> My goal is to enable asynchronous web-services thru a queue mechanism, but
>
> to my knowledge PHP and C can't talk JMS.
>
> Let me know if I'm going the wrong way.
>
> Concerning the build of synapse. Do you have some documentation somewhere
> or
> can I build it from eclipse. I have heard about maven but I'm not familiar
>
> at all with it, I know more about ant.
>
> Mehdi.
>
>
> On 12/29/07 1:24 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>
> > Mehdi
> >
> > Synapse works "out of the box" with ActiveMQ. Would it be enough
> > simply to use ActiveMQ and enable the STOMP protocol with that?
> >
> > i.e. Synapse->ActiveMQ->STOMP
> >
> > Paul
> >
>  > On Dec 29, 2007 2:11 AM, Asankha C. Perera < asankha@wso2.com
> <ma...@wso2.com> <as...@wso2.com> > wrote:
> >>
> >>  Hi Mehdi
> >>
> >>  The transports used by Synapse are actually Axis2 transports.. Thus
> the
> >> interfaces you need to implement are actually in Axis2.. however, since
>
> >> Synapse uses more transports typically than Axis2, the Synapse code
> base
> >> contains a module "tranports" that contains the code for the VFS, JMS
> and
> >> NHTTP transports. However, the NHTTP transport is quite different and a
> bit
> >> complex - but you should be able to look at the JMS transport code to
> get a
> >> better understanding. Start from the JMSListener and JMSSender and also
> look
> >> at the AbstractTransportSender and the AbstractTransportListener that
> will
> >> make your implementation simpler
> >>
> >>  asankha
> >>
> >>
> >>
> >>  mehdi ait oufkir wrote:
> >>  Hi,
> >>
> >>  I'm evaluating synapse for a project and one of the requirement would
> be to
> >> support the STOMP transport protocol. I know synapse already support by
> >> default http,https, jms, I'd like to know what it would take to support
> >> another protocol. How extensible is synapse?
> >>
> >>  If this is possible, may be you can guide me with some general dev
> >> documentation, and build documentation. I already checked out the code
> into
> >> eclipse but I had hard to understand the structure of the code.
> >>
> >>  Thanks,
> >>  Mehdi Ait Oufkir
> >
> >
>
> Mehdi Ait Oufkir
> Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track. . .  www.YouSendIt.com <http://www.yousendit.com/>
> <http://www.yousendit.com/> <http://www.yousendit.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>
>
>
> *Mehdi Ait Oufkir
> **Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track*. . .  *www.YouSendIt.com <http://www.yousendit.com/>
> *
>



-- 
Regards,

Rajith Attapattu
Red Hat
blog: http://rajith.2rlabs.com/

Re: Adding STOMP transport protocol in synapse

Posted by Mehdi Ait Oufkir <me...@yousendit.com>.
Hi Rajith,

I got your point.
If my understanding is right:
AMPQ would allow my server to read from a queue (the way STOMP could) since
you already have a client in C++ that can read from a MOM that supports
AMQP.
The issue now is that synapse doesn¹t support (yet) AMQP natively. So the
server would have to talk directly to the MOM (something I don¹t want).
What is the status of the dev of AMQP support for synapse and which MOM
supports AMQP?

Mehdi.



On 1/1/08 10:53 AM, "Rajith Attapattu" <ra...@gmail.com> wrote:

> Mehdi,
>  
> I hate to sound like a salesman, but AMQP does provide the interoperability
> and cross language support you are looking for.
> I know you are looking for something based on STOMP, but AMQP is a protocol
> that will have a lot more support in the future.
> So it's worth giving it some thought. (There are other goodies that come with
> AMQP as well..)
>  
> Apache Qpid does have a JMS implementation over AMQP.So you can use AMQP with
> synapse as we have a JMS transport.
> I have also started writing a native AMQP transport for Synapse as well.
> The flip side is we only have a c++ client. So u may need to figure out how to
> use that within "c" code. (I am no expert, but I heard u can do that, but has
> portability issues). If u have a "c" client then you could get a PHP binding
> so you can have a PHP client too.
>  
> Regards,
> 
> Rajith Attapattu
> Red Hat
> blog: http://rajith.2rlabs.com/
>  
> On Dec 29, 2007 4:46 PM, mehdi ait oufkir <me...@yousendit.com> wrote:
>> Paul,
>> 
>> I know I can do that. But I don't want to have my server to talk directly to
>> activemq. 
>> So I would have, On the client side something like.
>> 
>> Client<----STOMP---->Synapse<---JMS--->Activemq
>> The client is in php.
>> 
>> On the server side:
>> Activemq<----JMS---->Synapse<----STOMP--->Server.
>> My server is in C.
>> 
>> I don't know if it's the best way to do it. But I don't want to have neither
>> my client, nor my server coupled to activemq.
>> 
>> My goal is to enable asynchronous web-services thru a queue mechanism, but
>> to my knowledge PHP and C can't talk JMS.
>> 
>> Let me know if I'm going the wrong way.
>> 
>> Concerning the build of synapse. Do you have some documentation somewhere or
>> can I build it from eclipse. I have heard about maven but I'm not familiar
>> at all with it, I know more about ant.
>> 
>> Mehdi.
>> 
>> 
>> On 12/29/07 1:24 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>> 
>>> > Mehdi
>>> >
>>> > Synapse works "out of the box" with ActiveMQ. Would it be enough
>>> > simply to use ActiveMQ and enable the STOMP protocol with that?
>>> >
>>> > i.e. Synapse->ActiveMQ->STOMP
>>> >
>>> > Paul
>>> >
>>> > On Dec 29, 2007 2:11 AM, Asankha C. Perera < asankha@wso2.com
>>> <ma...@wso2.com> > wrote:
>>>> >>
>>>> >>  Hi Mehdi
>>>> >>
>>>> >>  The transports used by Synapse are actually Axis2 transports.. Thus the
>>>> >> interfaces you need to implement are actually in Axis2.. however, since
>>>> >> Synapse uses more transports typically than Axis2, the Synapse code base
>>>> >> contains a module "tranports" that contains the code for the VFS, JMS
>>>> and
>>>> >> NHTTP transports. However, the NHTTP transport is quite different and a
>>>> bit 
>>>> >> complex - but you should be able to look at the JMS transport code to
>>>> get a
>>>> >> better understanding. Start from the JMSListener and JMSSender and also
>>>> look
>>>> >> at the AbstractTransportSender and the AbstractTransportListener that
>>>> will 
>>>> >> make your implementation simpler
>>>> >>
>>>> >>  asankha
>>>> >>
>>>> >>
>>>> >>
>>>> >>  mehdi ait oufkir wrote:
>>>> >>  Hi,
>>>> >>
>>>> >>  I'm evaluating synapse for a project and one of the requirement would
>>>> be to 
>>>> >> support the STOMP transport protocol. I know synapse already support by
>>>> >> default http,https, jms, I'd like to know what it would take to support
>>>> >> another protocol. How extensible is synapse?
>>>> >>
>>>> >>  If this is possible, may be you can guide me with some general dev
>>>> >> documentation, and build documentation. I already checked out the code
>>>> into
>>>> >> eclipse but I had hard to understand the structure of the code.
>>>> >>
>>>> >>  Thanks,
>>>> >>  Mehdi Ait Oufkir
>>> >
>>> >
>> 
>> Mehdi Ait Oufkir
>> Webapp lead
>> O: 408.879.9118 x222   | F: 408.879.9117
>> 
>> yousendit
>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
>> Send, Receive, Track. . .  www.YouSendIt.com <http://www.yousendit.com/>
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>> 
> 


Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit  
1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
Send, Receive, Track. . .  www.YouSendIt.com


Re: Adding STOMP transport protocol in synapse

Posted by Rajith Attapattu <ra...@gmail.com>.
Mehdi,

I hate to sound like a salesman, but AMQP does provide the interoperability
and cross language support you are looking for.
I know you are looking for something based on STOMP, but AMQP is a protocol
that will have a lot more support in the future.
So it's worth giving it some thought. (There are other goodies that come
with AMQP as well..)

Apache Qpid does have a JMS implementation over AMQP.So you can use AMQP
with synapse as we have a JMS transport.
I have also started writing a native AMQP transport for Synapse as well.
The flip side is we only have a c++ client. So u may need to figure out how
to use that within "c" code. (I am no expert, but I heard u can do that, but
has portability issues). If u have a "c" client then you could get a PHP
binding so you can have a PHP client too.

Regards,

Rajith Attapattu
Red Hat
blog: http://rajith.2rlabs.com/

On Dec 29, 2007 4:46 PM, mehdi ait oufkir <me...@yousendit.com> wrote:

> Paul,
>
> I know I can do that. But I don't want to have my server to talk directly
> to
> activemq.
> So I would have, On the client side something like.
>
> Client<----STOMP---->Synapse<---JMS--->Activemq
> The client is in php.
>
> On the server side:
> Activemq<----JMS---->Synapse<----STOMP--->Server.
> My server is in C.
>
> I don't know if it's the best way to do it. But I don't want to have
> neither
> my client, nor my server coupled to activemq.
>
> My goal is to enable asynchronous web-services thru a queue mechanism, but
> to my knowledge PHP and C can't talk JMS.
>
> Let me know if I'm going the wrong way.
>
> Concerning the build of synapse. Do you have some documentation somewhere
> or
> can I build it from eclipse. I have heard about maven but I'm not familiar
> at all with it, I know more about ant.
>
> Mehdi.
>
>
> On 12/29/07 1:24 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>
> > Mehdi
> >
> > Synapse works "out of the box" with ActiveMQ. Would it be enough
> > simply to use ActiveMQ and enable the STOMP protocol with that?
> >
> > i.e. Synapse->ActiveMQ->STOMP
> >
> > Paul
> >
> > On Dec 29, 2007 2:11 AM, Asankha C. Perera <as...@wso2.com> wrote:
> >>
> >>  Hi Mehdi
> >>
> >>  The transports used by Synapse are actually Axis2 transports.. Thus
> the
> >> interfaces you need to implement are actually in Axis2.. however, since
> >> Synapse uses more transports typically than Axis2, the Synapse code
> base
> >> contains a module "tranports" that contains the code for the VFS, JMS
> and
> >> NHTTP transports. However, the NHTTP transport is quite different and a
> bit
> >> complex - but you should be able to look at the JMS transport code to
> get a
> >> better understanding. Start from the JMSListener and JMSSender and also
> look
> >> at the AbstractTransportSender and the AbstractTransportListener that
> will
> >> make your implementation simpler
> >>
> >>  asankha
> >>
> >>
> >>
> >>  mehdi ait oufkir wrote:
> >>  Hi,
> >>
> >>  I'm evaluating synapse for a project and one of the requirement would
> be to
> >> support the STOMP transport protocol. I know synapse already support by
> >> default http,https, jms, I'd like to know what it would take to support
> >> another protocol. How extensible is synapse?
> >>
> >>  If this is possible, may be you can guide me with some general dev
> >> documentation, and build documentation. I already checked out the code
> into
> >> eclipse but I had hard to understand the structure of the code.
> >>
> >>  Thanks,
> >>  Mehdi Ait Oufkir
> >
> >
>
> Mehdi Ait Oufkir
> Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track. . .  www.YouSendIt.com <http://www.yousendit.com/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>

Re: Adding STOMP transport protocol in synapse

Posted by mehdi ait oufkir <me...@yousendit.com>.
I¹m probably missing something but I¹m making progress.
I fix the dependency issue of synapse 1.1 with current
wso2caching-core-0.1.jar by taking the file from the 1.1 release. (thanks to
asankha)

Then I was able to compile from command line (mvn clean install from top
directory).

However, when I try to follow the steps explained by Ant. I can¹t get the
six synapse projects to import. So I still can¹t build thru eclipse even
though I have the 2 plugins mentioned.

Regards,
Mehdi.



On 1/2/08 12:28 PM, "ant elder" <an...@gmail.com> wrote:

> Re the building in eclipse, i forgot to mention the Eclipse bits in the
> previous email, here's what i do:
> 
> You still need to build from the command line with mvn but you can set up
> Synapse in Eclipse as follows:
> 
> At the top level Synapse folder run:
> 
> mvn eclipse:eclipse
> 
> Now within eclipse you can import those Synapse projects into an Eclipse
> workspace. From Eclipse do File -> Import, expand the "General" toggle and
> choose "Existing Projects into  Workspace",  click Next, click Browse and
> navigate to your Synapse SVN folder, click OK and it should find the six
> Synapse projects, click Finish. That should set up the projects and show them
> in the Package Explorer. There will be lots of compile errors about missing
> classpath entries, to fix this select Window -> Preferences, expend the Java
> toggle, then expand the Build Path toggle and select Classpath Variables.
> Click New and use the name "M2_REPO" and then click Folder and navigate to you
> local Maven repository (eg C:/Documents and
> Settings/Administrator/.m2/repository), click OK and again OK and it should
> rebuild everything with all the compile errors gone.
> 
> If you're developing Synapse a lot it might be useful to install the SVN
> Eclipse plugin, see http://subclipse.tigris.org/install.html.
> 
> There's also a Maven Eclipse plugin at http://m2eclipse.codehaus.org/, i've
> not used that much.
> 
>    ...ant
> 
> 
> 
> 
> On Jan 2, 2008 4:55 PM, mehdi ait oufkir < mehdi@yousendit.com
> <ma...@yousendit.com> > wrote:
>> 
>> Thank you ant but I still have some trouble to build synapse 1.1.
>> Here is some more information:
>> I'm using JDK 1.5 and maven 2.0.6 (I'll try to upgrade if it still doesn't
>> work). I fee like I won't be able to build synapse inside eclipse because the
>> mvn plugin is not precise enough. However when I try to build it from the
>> command line (mvn clean install) here is the error I have:
>> 
>> Compiling 222 source files to
>> /Users/mehdi/ysi/workspace/ysb/modules/core/target/classes
>> [INFO] 
>> ------------------------------------------------------------------------
>> [ERROR] BUILD FAILURE
>> [INFO] 
>> ------------------------------------------------------------------------
>> [INFO] Compilation failure
>> 
>> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/
>> mediators/builtin/CacheMediator.java:[151,25] setResponseEnvelope(byte[]) in
>> org.wso2.caching.CachedObject cannot be applied to
>> (org.apache.axiom.soap.SOAPEnvelope )
>> 
>> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/
>> mediators/builtin/CacheMediator.java:[212,26]
>> setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in
>> org.apache.synapse.MessageContext cannot be applied to (byte[])
>> 
>> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/
>> mediators/builtin/CacheMediator.java:[283,17] setRequestEnvelope(byte[]) in
>> org.wso2.caching.CachedObject cannot be applied to
>> (org.apache.axiom.soap.SOAPEnvelope )
>> 
>> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/
>> mediators/builtin/CacheMediator.java:[284,17]
>> setRequestHash(java.lang.String) in org.wso2.caching.CachedObject cannot be
>> applied to (java.lang.Object )
>> 
>> Let me know what you think.
>> mehdi
>> 
>> 
>> On 1/2/08 3:55 AM, "ant elder" <an...@gmail.com> wrote:
>> 
>>> In case you've not got past this yet here's some info and Maven commands
>>> which I find useful, we should add this to the Synapse website:
>>> 
>>> Building Synapse:
>>> 
>>> Synapse requires JDK 1.5 or later and Maven 2.0.7 or later
>>> (http://maven.apache.org/download.html).
>>> <http://maven.apache.org/download.html%29.>
>>> 
>>> To build, in the top level  Synapse folder do:
>>> 
>>> mvn clean install
>>> 
>>> Or to build the distribution archive packages do (the distribution archives
>>> are created in new folder named target):
>>> 
>>> mvn assembly:assembly -Drelease
>>> 
>>> The first time you build Maven downloads all the required dependency jars to
>>> your local repository, after there has been a successful build you can add
>>> the "-o" parameter to  the above commands to run in offline mode which
>>> avoids going out to remote Maven repositories so the build runs faster. Eg
>>> 
>>> mvn clean install -o
>>> or
>>> mvn assembly:assembly -Drelease -o
>>> 
>>> If you don't want to have all the Synapse test cases run during the build
>>> you can add the parameter "-Dmaven.test.skip=true", eg:
>>> 
>>> mvn clean install -o -Dmaven.test.skip=true
>>> or
>>> mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true
>>> 
>>> Sometimes the trunk build uses snapshot versions of some dependency jars
>>> which can go out of date but may not get refreshed in your local Maven
>>> repository even when the "-o" parameter is not used. So if you get build
>>> failures you can try refreshing any snapshot dependencys with the "-U"
>>> parameter, eg: 
>>> 
>>> mvn clean install -U
>>> 
>>> By default the Maven local repository is in your home directory, you can
>>> change this so the build uses use a different local repository with the
>>> parameter "-Dmaven.repo.local=", eg:
>>> 
>>> mvn clean install -Dmaven.repo.local=\Synapse\MyRepo
>>> 
>>> HTH,
>>> 
>>>    ...ant
>>> 
>>> On Dec 31, 2007 8:29 PM, mehdi ait oufkir <mehdi@yousendit.com
>>> <ma...@yousendit.com> > wrote:
>>>> Hi,
>>>>  So I have issues with maven under eclipse. I guess the installation didn't
>>>> work properly. When I want to build, it's complaining about:[ERROR] BUILD
>>>> [INFO] The PluginDescriptor for the plugin
>>>> org.apache.maven.plugins:maven-resources-plugin was not found
>>>> 
>>>> I don't know how to solve that.
>>>> 
>>>> Also, I have a lot of type that cannot be resolved. It seems that I'm
>>>> missing a lot of apache packages (org.apache.axis2, org.apache.log...)
>>>> 
>>>> Let me know what I should do to fix those issues.
>>>> Mehdi. 
>>>> 
>>>> 
>>>> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>>>> 
>>>>> > Yes it works fine for me.... let me know if you have any problems.
>>>>> >
>>>>> > Paul
>>>>> >
>>>>> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com> wrote:
>>>>>> >> mehdi ait oufkir wrote:
>>>>>>> >>> Concerning the build of synapse. Do you have some documentation
>>>>>>> somewhere or
>>>>>>> >>> can I build it from eclipse. I have heard about maven but I'm not
>>>>>>> familiar
>>>>>>> >>> at all with it, I know more about ant.
>>>>>>> >>>
>>>>>> >> If you have Maven 2.0.6 or later installed on your system, you should
>>>>>> be 
>>>>>> >> able to type "mvn eclipse:eclipse" and it should download any/all
>>>>>> >> dependencies and create your Eclipse project correctly..
>>>>>> >>
>>>>>> >> If this does not work for any unknown reason, we have a few committers
>>>>>> >> like Upul and Ant, who uses Eclipse and they would be able to help
>>>>>> you..
>>>>>> >>
>>>>>> >> asankha
>>>>>> >>
>>>>>> >>
>>>>>> >> ---------------------------------------------------------------------
>>>>>> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>>>>> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>>>>> >>
>>>>>> >>
>>>>> >
>>>>> >
>>>> 
>>>> Mehdi Ait Oufkir
>>>> Webapp lead
>>>> O: 408.879.9118 x222   | F: 408.879.9117
>>>> 
>>>> yousendit
>>>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
>>>> Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com>
>>>> <http://www.YouSendIt.com>
>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>>> <ma...@ws.apache.org>
>>>> <ma...@ws.apache.org>
>>>> 
>>> 
>>> 
>> 
>> 
>> Mehdi Ait Oufkir
>> Webapp lead
>> O: 408.879.9118 x222   | F: 408.879.9117
>> 
>> yousendit  
>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
>> Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com>
>> 
> 


Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit  
1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
Send, Receive, Track. . .  www.YouSendIt.com


Re: Adding STOMP transport protocol in synapse

Posted by ant elder <an...@gmail.com>.
Re the building in eclipse, i forgot to mention the Eclipse bits in the
previous email, here's what i do:

You still need to build from the command line with mvn but you can set up
Synapse in Eclipse as follows:

At the top level Synapse folder run:

mvn eclipse:eclipse

Now within eclipse you can import those Synapse projects into an Eclipse
workspace. From Eclipse do File -> Import, expand the "General" toggle and
choose "Existing Projects into  Workspace",  click Next, click Browse and
navigate to your Synapse SVN folder, click OK and it should find the six
Synapse projects, click Finish. That should set up the projects and show
them in the Package Explorer. There will be lots of compile errors about
missing classpath entries, to fix this select Window -> Preferences, expend
the Java toggle, then expand the Build Path toggle and select Classpath
Variables. Click New and use the name "M2_REPO" and then click Folder and
navigate to you local Maven repository (eg C:/Documents and
Settings/Administrator/.m2/repository), click OK and again OK and it should
rebuild everything with all the compile errors gone.

If you're developing Synapse a lot it might be useful to install the SVN
Eclipse plugin, see http://subclipse.tigris.org/install.html.

There's also a Maven Eclipse plugin at http://m2eclipse.codehaus.org/, i've
not used that much.

   ...ant




On Jan 2, 2008 4:55 PM, mehdi ait oufkir <me...@yousendit.com> wrote:

>
> Thank you ant but I still have some trouble to build synapse 1.1.
> Here is some more information:
> I'm using JDK 1.5 and maven 2.0.6 (I'll try to upgrade if it still doesn't
> work). I fee like I won't be able to build synapse inside eclipse because
> the mvn plugin is not precise enough. However when I try to build it from
> the command line (mvn clean install) here is the error I have:
>
> Compiling 222 source files to
> /Users/mehdi/ysi/workspace/ysb/modules/core/target/classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java:[151,25]
> setResponseEnvelope(byte[]) in org.wso2.caching.CachedObject cannot be
> applied to (org.apache.axiom.soap.SOAPEnvelope)
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java:[212,26]
> setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in
> org.apache.synapse.MessageContext cannot be applied to (byte[])
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java:[283,17]
> setRequestEnvelope(byte[]) in org.wso2.caching.CachedObject cannot be
> applied to (org.apache.axiom.soap.SOAPEnvelope)
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/mediators/builtin/CacheMediator.java:[284,17]
> setRequestHash(java.lang.String) in org.wso2.caching.CachedObject cannot
> be applied to (java.lang.Object)
>
> Let me know what you think.
> mehdi
>
> On 1/2/08 3:55 AM, "ant elder" <an...@gmail.com> wrote:
>
> In case you've not got past this yet here's some info and Maven commands
> which I find useful, we should add this to the Synapse website:
>
> Building Synapse:
>
> Synapse requires JDK 1.5 or later and Maven 2.0.7 or later (
> http://maven.apache.org/download.html).<http://maven.apache.org/download.html%29.>
>
> To build, in the top level  Synapse folder do:
>
> mvn clean install
>
> Or to build the distribution archive packages do (the distribution
> archives are created in new folder named target):
>
> mvn assembly:assembly -Drelease
>
> The first time you build Maven downloads all the required dependency jars
> to your local repository, after there has been a successful build you can
> add the "-o" parameter to  the above commands to run in offline mode which
> avoids going out to remote Maven repositories so the build runs faster. Eg
>
> mvn clean install -o
> or
> mvn assembly:assembly -Drelease -o
>
> If you don't want to have all the Synapse test cases run during the build
> you can add the parameter "-Dmaven.test.skip=true", eg:
>
> mvn clean install -o -Dmaven.test.skip=true
> or
> mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true
>
> Sometimes the trunk build uses snapshot versions of some dependency jars
> which can go out of date but may not get refreshed in your local Maven
> repository even when the "-o" parameter is not used. So if you get build
> failures you can try refreshing any snapshot dependencys with the "-U"
> parameter, eg:
>
> mvn clean install -U
>
> By default the Maven local repository is in your home directory, you can
> change this so the build uses use a different local repository with the
> parameter "-Dmaven.repo.local=", eg:
>
> mvn clean install -Dmaven.repo.local=\Synapse\MyRepo
>
> HTH,
>
>    ...ant
>
> On Dec 31, 2007 8:29 PM, mehdi ait oufkir <mehdi@yousendit.com
> <ma...@yousendit.com> <me...@yousendit.com> > wrote:
>
> Hi,
>  So I have issues with maven under eclipse. I guess the installation
> didn't
> work properly. When I want to build, it's complaining about:[ERROR] BUILD
> [INFO] The PluginDescriptor for the plugin
> org.apache.maven.plugins:maven-resources-plugin was not found
>
> I don't know how to solve that.
>
> Also, I have a lot of type that cannot be resolved. It seems that I'm
> missing a lot of apache packages (org.apache.axis2, org.apache.log...)
>
> Let me know what I should do to fix those issues.
> Mehdi.
>
>
> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>
> > Yes it works fine for me.... let me know if you have any problems.
> >
> > Paul
> >
> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com> wrote:
> >> mehdi ait oufkir wrote:
> >>> Concerning the build of synapse. Do you have some documentation
> somewhere or
> >>> can I build it from eclipse. I have heard about maven but I'm not
> familiar
> >>> at all with it, I know more about ant.
> >>>
> >> If you have Maven 2.0.6 or later installed on your system, you should
> be
> >> able to type "mvn eclipse:eclipse" and it should download any/all
> >> dependencies and create your Eclipse project correctly..
> >>
> >> If this does not work for any unknown reason, we have a few committers
> >> like Upul and Ant, who uses Eclipse and they would be able to help
> you..
> >>
> >> asankha
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >>
> >>
> >
> >
>
> Mehdi Ait Oufkir
> Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com><http://www.YouSendIt.com>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> <ma...@ws.apache.org> <sy...@ws.apache.org>
>
>
>
>
>
> *Mehdi Ait Oufkir
> **Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track*. . .  *www.YouSendIt.com*
>

Re: Adding STOMP transport protocol in synapse

Posted by Andreas Veithen <an...@skynet.be>.
On 03 Jan 2008, at 07:31, Ruwan Linton wrote:

> Hi all,
>
> I have replaced the jar with the original one and tested the build  
> of the 1.1 tag on a clean repo. It should work now.
>
> Thanks,
> Ruwan
>
>

I confirm. Synapse 1.1 can be built again now.

Andreas


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


Re: Adding STOMP transport protocol in synapse

Posted by Ruwan Linton <ru...@gmail.com>.
Hi all,

I have replaced the jar with the original one and tested the build of the
1.1 tag on a clean repo. It should work now.

Thanks,
Ruwan

On Jan 3, 2008 10:33 AM, Ruwan Linton <ru...@gmail.com> wrote:

> Andreas, Mehdi and all,
>
> I think the caching 0.1 jars were updated after the 1.1 release
> (accidentally). I am in the process of replacing the caching jars with
> correct jars. Sorry for the inconveniences. I will let you know when I am
> done with this.
>
> Thanks,
> Ruwan
>
>
> On Jan 3, 2008 12:48 AM, Andreas Veithen <an...@skynet.be>
> wrote:
>
> > I just noticed that the file wso2caching-core-0.1.jar in the Synapse
> > 1.1 binary distribution is not the same as the one from the
> > dist.wso2.org repository. Can somebody explain this?
> >
> > Mehdi, you will be able to compile Synapse 1.1 if you take wso2caching-
> > core-0.1.jar from the binary distribution and put it into your local
> > Maven repository.
> >
> > Andreas
> >
> >
> > On 02 Jan 2008, at 17:55, mehdi ait oufkir wrote:
> >
> > >
> > > Thank you ant but I still have some trouble to build synapse 1.1.
> > > Here is some more information:
> > > I'm using JDK 1.5 and maven 2.0.6 (I'll try to upgrade if it still
> > > doesn't work). I fee like I won't be able to build synapse inside
> > > eclipse because the mvn plugin is not precise enough. However when I
> > > try to build it from the command line (mvn clean install) here is
> > > the error I have:
> > >
> > > Compiling 222 source files to /Users/mehdi/ysi/workspace/ysb/modules/
> > > core/target/classes
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [ERROR] BUILD FAILURE
> > > [INFO]
> > >
> > ------------------------------------------------------------------------
> > > [INFO] Compilation failure
> > >
> > > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > > synapse/mediators/builtin/CacheMediator.java:[151,25]
> > > setResponseEnvelope(byte[]) in org.wso2.caching.CachedObject cannot
> > > be applied to (org.apache.axiom.soap.SOAPEnvelope)
> > >
> > > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > > synapse/mediators/builtin/CacheMediator.java:[212,26]
> > > setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in
> > > org.apache.synapse.MessageContext cannot be applied to (byte[])
> > >
> > > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > > synapse/mediators/builtin/CacheMediator.java:[283,17]
> > > setRequestEnvelope(byte[]) in org.wso2.caching.CachedObject cannot
> > > be applied to (org.apache.axiom.soap.SOAPEnvelope)
> > >
> > > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > > synapse/mediators/builtin/CacheMediator.java:[284,17]
> > > setRequestHash(java.lang.String) in org.wso2.caching.CachedObject
> > > cannot be applied to (java.lang.Object)
> > >
> > > Let me know what you think.
> > > mehdi
> > >
> > > On 1/2/08 3:55 AM, "ant elder" <an...@gmail.com> wrote:
> > >
> > >> In case you've not got past this yet here's some info and Maven
> > >> commands which I find useful, we should add this to the Synapse
> > >> website:
> > >>
> > >> Building Synapse:
> > >>
> > >> Synapse requires JDK 1.5 or later and Maven 2.0.7 or later (
> > http://maven.apache.org/download.html
> > >> ).
> > >>
> > >> To build, in the top level  Synapse folder do:
> > >>
> > >> mvn clean install
> > >>
> > >> Or to build the distribution archive packages do (the distribution
> > >> archives are created in new folder named target):
> > >>
> > >> mvn assembly:assembly -Drelease
> > >>
> > >> The first time you build Maven downloads all the required
> > >> dependency jars to your local repository, after there has been a
> > >> successful build you can add the "-o" parameter to  the above
> > >> commands to run in offline mode which avoids going out to remote
> > >> Maven repositories so the build runs faster. Eg
> > >>
> > >> mvn clean install -o
> > >> or
> > >> mvn assembly:assembly -Drelease -o
> > >>
> > >> If you don't want to have all the Synapse test cases run during the
> > >> build you can add the parameter "-Dmaven.test.skip=true", eg:
> > >>
> > >> mvn clean install -o - Dmaven.test.skip=true
> > >> or
> > >> mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true
> > >>
> > >> Sometimes the trunk build uses snapshot versions of some dependency
> > >> jars which can go out of date but may not get refreshed in your
> > >> local Maven repository even when the "-o" parameter is not used. So
> > >> if you get build failures you can try refreshing any snapshot
> > >> dependencys with the "-U" parameter, eg:
> > >>
> > >> mvn clean install -U
> > >>
> > >> By default the Maven local repository is in your home directory,
> > >> you can change this so the build uses use a different local
> > >> repository with the parameter "- Dmaven.repo.local=", eg:
> > >>
> > >> mvn clean install -Dmaven.repo.local=\Synapse\MyRepo
> > >>
> > >> HTH,
> > >>
> > >>    ...ant
> > >>
> > >> On Dec 31, 2007 8:29 PM, mehdi ait oufkir < mehdi@yousendit.com <mailto:
> > mehdi@yousendit.com
> > >> > > wrote:
> > >>> Hi,
> > >>>  So I have issues with maven under eclipse. I guess the
> > >>> installation didn't
> > >>> work properly. When I want to build, it's complaining about:
> > >>> [ERROR] BUILD
> > >>> [INFO] The PluginDescriptor for the plugin
> > >>> org.apache.maven.plugins:maven-resources-plugin was not found
> > >>>
> > >>> I don't know how to solve that.
> > >>>
> > >>> Also, I have a lot of type that cannot be resolved. It seems that
> > >>> I'm
> > >>> missing a lot of apache packages (org.apache.axis2,
> > >>> org.apache.log...)
> > >>>
> > >>> Let me know what I should do to fix those issues.
> > >>> Mehdi.
> > >>>
> > >>>
> > >>> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
> > >>>
> > >>> > Yes it works fine for me.... let me know if you have any problems.
> >
> > >>> >
> > >>> > Paul
> > >>> >
> > >>> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com>
> > >>> wrote:
> > >>> >> mehdi ait oufkir wrote:
> > >>> >>> Concerning the build of synapse. Do you have some
> > >>> documentation somewhere or
> > >>> >>> can I build it from eclipse. I have heard about maven but I'm
> > >>> not familiar
> > >>> >>> at all with it, I know more about ant.
> > >>> >>>
> > >>> >> If you have Maven 2.0.6 or later installed on your system, you
> > >>> should be
> > >>> >> able to type "mvn eclipse:eclipse" and it should download any/all
> > >>> >> dependencies and create your Eclipse project correctly..
> > >>> >>
> > >>> >> If this does not work for any unknown reason, we have a few
> > >>> committers
> > >>> >> like Upul and Ant, who uses Eclipse and they would be able to
> > >>> help you..
> > >>> >>
> > >>> >> asankha
> > >>> >>
> > >>> >>
> > >>> >>
> > >>>
> > ---------------------------------------------------------------------
> > >>> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> > >>> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> > >>> >>
> > >>> >>
> > >>> >
> > >>> >
> > >>>
> > >>> Mehdi Ait Oufkir
> > >>> Webapp lead
> > >>> O: 408.879.9118 x222   | F: 408.879.9117
> > >>>
> > >>> yousendit
> > >>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> > >>> Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com
> > >>> >
> > >>>
> > >>>
> > >>>
> > ---------------------------------------------------------------------
> > >>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> > >>> For additional commands, e-mail: synapse-dev-help@ws.apache.org <mailto:synapse-dev-help@ws.apache.org
> > >>> >
> > >>>
> > >>
> > >>
> > >
> > >
> > > Mehdi Ait Oufkir
> > > Webapp lead
> > > O: 408.879.9118 x222   | F: 408.879.9117
> > >
> > > yousendit
> > > 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> > > Send, Receive, Track. . .  www.YouSendIt.com
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >
> >
>
>
> --
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"




-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: Adding STOMP transport protocol in synapse

Posted by Ruwan Linton <ru...@gmail.com>.
Andreas, Mehdi and all,

I think the caching 0.1 jars were updated after the 1.1 release
(accidentally). I am in the process of replacing the caching jars with
correct jars. Sorry for the inconveniences. I will let you know when I am
done with this.

Thanks,
Ruwan

On Jan 3, 2008 12:48 AM, Andreas Veithen <an...@skynet.be> wrote:

> I just noticed that the file wso2caching-core-0.1.jar in the Synapse
> 1.1 binary distribution is not the same as the one from the
> dist.wso2.org repository. Can somebody explain this?
>
> Mehdi, you will be able to compile Synapse 1.1 if you take wso2caching-
> core-0.1.jar from the binary distribution and put it into your local
> Maven repository.
>
> Andreas
>
>
> On 02 Jan 2008, at 17:55, mehdi ait oufkir wrote:
>
> >
> > Thank you ant but I still have some trouble to build synapse 1.1.
> > Here is some more information:
> > I'm using JDK 1.5 and maven 2.0.6 (I'll try to upgrade if it still
> > doesn't work). I fee like I won't be able to build synapse inside
> > eclipse because the mvn plugin is not precise enough. However when I
> > try to build it from the command line (mvn clean install) here is
> > the error I have:
> >
> > Compiling 222 source files to /Users/mehdi/ysi/workspace/ysb/modules/
> > core/target/classes
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Compilation failure
> >
> > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > synapse/mediators/builtin/CacheMediator.java:[151,25]
> > setResponseEnvelope(byte[]) in org.wso2.caching.CachedObject cannot
> > be applied to (org.apache.axiom.soap.SOAPEnvelope)
> >
> > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > synapse/mediators/builtin/CacheMediator.java:[212,26]
> > setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in
> > org.apache.synapse.MessageContext cannot be applied to (byte[])
> >
> > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > synapse/mediators/builtin/CacheMediator.java:[283,17]
> > setRequestEnvelope(byte[]) in org.wso2.caching.CachedObject cannot
> > be applied to (org.apache.axiom.soap.SOAPEnvelope)
> >
> > /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/
> > synapse/mediators/builtin/CacheMediator.java:[284,17]
> > setRequestHash(java.lang.String) in org.wso2.caching.CachedObject
> > cannot be applied to (java.lang.Object)
> >
> > Let me know what you think.
> > mehdi
> >
> > On 1/2/08 3:55 AM, "ant elder" <an...@gmail.com> wrote:
> >
> >> In case you've not got past this yet here's some info and Maven
> >> commands which I find useful, we should add this to the Synapse
> >> website:
> >>
> >> Building Synapse:
> >>
> >> Synapse requires JDK 1.5 or later and Maven 2.0.7 or later (
> http://maven.apache.org/download.html
> >> ).
> >>
> >> To build, in the top level  Synapse folder do:
> >>
> >> mvn clean install
> >>
> >> Or to build the distribution archive packages do (the distribution
> >> archives are created in new folder named target):
> >>
> >> mvn assembly:assembly -Drelease
> >>
> >> The first time you build Maven downloads all the required
> >> dependency jars to your local repository, after there has been a
> >> successful build you can add the "-o" parameter to  the above
> >> commands to run in offline mode which avoids going out to remote
> >> Maven repositories so the build runs faster. Eg
> >>
> >> mvn clean install -o
> >> or
> >> mvn assembly:assembly -Drelease -o
> >>
> >> If you don't want to have all the Synapse test cases run during the
> >> build you can add the parameter "-Dmaven.test.skip=true", eg:
> >>
> >> mvn clean install -o -Dmaven.test.skip=true
> >> or
> >> mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true
> >>
> >> Sometimes the trunk build uses snapshot versions of some dependency
> >> jars which can go out of date but may not get refreshed in your
> >> local Maven repository even when the "-o" parameter is not used. So
> >> if you get build failures you can try refreshing any snapshot
> >> dependencys with the "-U" parameter, eg:
> >>
> >> mvn clean install -U
> >>
> >> By default the Maven local repository is in your home directory,
> >> you can change this so the build uses use a different local
> >> repository with the parameter "-Dmaven.repo.local=", eg:
> >>
> >> mvn clean install -Dmaven.repo.local=\Synapse\MyRepo
> >>
> >> HTH,
> >>
> >>    ...ant
> >>
> >> On Dec 31, 2007 8:29 PM, mehdi ait oufkir <mehdi@yousendit.com <mailto:
> mehdi@yousendit.com
> >> > > wrote:
> >>> Hi,
> >>>  So I have issues with maven under eclipse. I guess the
> >>> installation didn't
> >>> work properly. When I want to build, it's complaining about:
> >>> [ERROR] BUILD
> >>> [INFO] The PluginDescriptor for the plugin
> >>> org.apache.maven.plugins:maven-resources-plugin was not found
> >>>
> >>> I don't know how to solve that.
> >>>
> >>> Also, I have a lot of type that cannot be resolved. It seems that
> >>> I'm
> >>> missing a lot of apache packages (org.apache.axis2,
> >>> org.apache.log...)
> >>>
> >>> Let me know what I should do to fix those issues.
> >>> Mehdi.
> >>>
> >>>
> >>> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
> >>>
> >>> > Yes it works fine for me.... let me know if you have any problems.
> >>> >
> >>> > Paul
> >>> >
> >>> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com>
> >>> wrote:
> >>> >> mehdi ait oufkir wrote:
> >>> >>> Concerning the build of synapse. Do you have some
> >>> documentation somewhere or
> >>> >>> can I build it from eclipse. I have heard about maven but I'm
> >>> not familiar
> >>> >>> at all with it, I know more about ant.
> >>> >>>
> >>> >> If you have Maven 2.0.6 or later installed on your system, you
> >>> should be
> >>> >> able to type "mvn eclipse:eclipse" and it should download any/all
> >>> >> dependencies and create your Eclipse project correctly..
> >>> >>
> >>> >> If this does not work for any unknown reason, we have a few
> >>> committers
> >>> >> like Upul and Ant, who uses Eclipse and they would be able to
> >>> help you..
> >>> >>
> >>> >> asankha
> >>> >>
> >>> >>
> >>> >>
> >>> ---------------------------------------------------------------------
> >>> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> >>> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >>> >>
> >>> >>
> >>> >
> >>> >
> >>>
> >>> Mehdi Ait Oufkir
> >>> Webapp lead
> >>> O: 408.879.9118 x222   | F: 408.879.9117
> >>>
> >>> yousendit
> >>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> >>> Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com
> >>> >
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> >>> For additional commands, e-mail: synapse-dev-help@ws.apache.org <mailto:
> synapse-dev-help@ws.apache.org
> >>> >
> >>>
> >>
> >>
> >
> >
> > Mehdi Ait Oufkir
> > Webapp lead
> > O: 408.879.9118 x222   | F: 408.879.9117
> >
> > yousendit
> > 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> > Send, Receive, Track. . .  www.YouSendIt.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: Adding STOMP transport protocol in synapse

Posted by Andreas Veithen <an...@skynet.be>.
I just noticed that the file wso2caching-core-0.1.jar in the Synapse  
1.1 binary distribution is not the same as the one from the  
dist.wso2.org repository. Can somebody explain this?

Mehdi, you will be able to compile Synapse 1.1 if you take wso2caching- 
core-0.1.jar from the binary distribution and put it into your local  
Maven repository.

Andreas


On 02 Jan 2008, at 17:55, mehdi ait oufkir wrote:

>
> Thank you ant but I still have some trouble to build synapse 1.1.
> Here is some more information:
> I’m using JDK 1.5 and maven 2.0.6 (I’ll try to upgrade if it still  
> doesn’t work). I fee like I won’t be able to build synapse inside  
> eclipse because the mvn plugin is not precise enough. However when I  
> try to build it from the command line (mvn clean install) here is  
> the error I have:
>
> Compiling 222 source files to /Users/mehdi/ysi/workspace/ysb/modules/ 
> core/target/classes
> [INFO]  
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Compilation failure
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/ 
> synapse/mediators/builtin/CacheMediator.java:[151,25]  
> setResponseEnvelope(byte[]) in org.wso2.caching.CachedObject cannot  
> be applied to (org.apache.axiom.soap.SOAPEnvelope)
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/ 
> synapse/mediators/builtin/CacheMediator.java:[212,26]  
> setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in  
> org.apache.synapse.MessageContext cannot be applied to (byte[])
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/ 
> synapse/mediators/builtin/CacheMediator.java:[283,17]  
> setRequestEnvelope(byte[]) in org.wso2.caching.CachedObject cannot  
> be applied to (org.apache.axiom.soap.SOAPEnvelope)
>
> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/ 
> synapse/mediators/builtin/CacheMediator.java:[284,17]  
> setRequestHash(java.lang.String) in org.wso2.caching.CachedObject  
> cannot be applied to (java.lang.Object)
>
> Let me know what you think.
> mehdi
>
> On 1/2/08 3:55 AM, "ant elder" <an...@gmail.com> wrote:
>
>> In case you've not got past this yet here's some info and Maven  
>> commands which I find useful, we should add this to the Synapse  
>> website:
>>
>> Building Synapse:
>>
>> Synapse requires JDK 1.5 or later and Maven 2.0.7 or later (http://maven.apache.org/download.html 
>> ).
>>
>> To build, in the top level  Synapse folder do:
>>
>> mvn clean install
>>
>> Or to build the distribution archive packages do (the distribution  
>> archives are created in new folder named target):
>>
>> mvn assembly:assembly -Drelease
>>
>> The first time you build Maven downloads all the required  
>> dependency jars to your local repository, after there has been a  
>> successful build you can add the "-o" parameter to  the above  
>> commands to run in offline mode which avoids going out to remote  
>> Maven repositories so the build runs faster. Eg
>>
>> mvn clean install -o
>> or
>> mvn assembly:assembly -Drelease -o
>>
>> If you don't want to have all the Synapse test cases run during the  
>> build you can add the parameter "-Dmaven.test.skip=true", eg:
>>
>> mvn clean install -o -Dmaven.test.skip=true
>> or
>> mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true
>>
>> Sometimes the trunk build uses snapshot versions of some dependency  
>> jars which can go out of date but may not get refreshed in your  
>> local Maven repository even when the "-o" parameter is not used. So  
>> if you get build failures you can try refreshing any snapshot  
>> dependencys with the "-U" parameter, eg:
>>
>> mvn clean install -U
>>
>> By default the Maven local repository is in your home directory,  
>> you can change this so the build uses use a different local  
>> repository with the parameter "-Dmaven.repo.local=", eg:
>>
>> mvn clean install -Dmaven.repo.local=\Synapse\MyRepo
>>
>> HTH,
>>
>>    ...ant
>>
>> On Dec 31, 2007 8:29 PM, mehdi ait oufkir <mehdi@yousendit.com  <mailto:mehdi@yousendit.com 
>> > > wrote:
>>> Hi,
>>>  So I have issues with maven under eclipse. I guess the  
>>> installation didn't
>>> work properly. When I want to build, it's complaining about: 
>>> [ERROR] BUILD
>>> [INFO] The PluginDescriptor for the plugin
>>> org.apache.maven.plugins:maven-resources-plugin was not found
>>>
>>> I don't know how to solve that.
>>>
>>> Also, I have a lot of type that cannot be resolved. It seems that  
>>> I'm
>>> missing a lot of apache packages (org.apache.axis2,  
>>> org.apache.log...)
>>>
>>> Let me know what I should do to fix those issues.
>>> Mehdi.
>>>
>>>
>>> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>>>
>>> > Yes it works fine for me.... let me know if you have any problems.
>>> >
>>> > Paul
>>> >
>>> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com>  
>>> wrote:
>>> >> mehdi ait oufkir wrote:
>>> >>> Concerning the build of synapse. Do you have some  
>>> documentation somewhere or
>>> >>> can I build it from eclipse. I have heard about maven but I'm  
>>> not familiar
>>> >>> at all with it, I know more about ant.
>>> >>>
>>> >> If you have Maven 2.0.6 or later installed on your system, you  
>>> should be
>>> >> able to type "mvn eclipse:eclipse" and it should download any/all
>>> >> dependencies and create your Eclipse project correctly..
>>> >>
>>> >> If this does not work for any unknown reason, we have a few  
>>> committers
>>> >> like Upul and Ant, who uses Eclipse and they would be able to  
>>> help you..
>>> >>
>>> >> asankha
>>> >>
>>> >>
>>> >>  
>>> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> Mehdi Ait Oufkir
>>> Webapp lead
>>> O: 408.879.9118 x222   | F: 408.879.9117
>>>
>>> yousendit
>>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
>>> Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com 
>>> >
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: synapse-dev-help@ws.apache.org  <mailto:synapse-dev-help@ws.apache.org 
>>> >
>>>
>>
>>
>
>
> Mehdi Ait Oufkir
> Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track. . .  www.YouSendIt.com


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


Re: Adding STOMP transport protocol in synapse

Posted by mehdi ait oufkir <me...@yousendit.com>.
Thank you ant but I still have some trouble to build synapse 1.1.
Here is some more information:
I¹m using JDK 1.5 and maven 2.0.6 (I¹ll try to upgrade if it still doesn¹t
work). I fee like I won¹t be able to build synapse inside eclipse because
the mvn plugin is not precise enough. However when I try to build it from
the command line (mvn clean install) here is the error I have:

Compiling 222 source files to
/Users/mehdi/ysi/workspace/ysb/modules/core/target/classes
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Compilation failure

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse
/mediators/builtin/CacheMediator.java:[151,25] setResponseEnvelope(byte[])
in org.wso2.caching.CachedObject cannot be applied to
(org.apache.axiom.soap.SOAPEnvelope)

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse
/mediators/builtin/CacheMediator.java:[212,26]
setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in
org.apache.synapse.MessageContext cannot be applied to (byte[])

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse
/mediators/builtin/CacheMediator.java:[283,17] setRequestEnvelope(byte[]) in
org.wso2.caching.CachedObject cannot be applied to
(org.apache.axiom.soap.SOAPEnvelope)

/Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse
/mediators/builtin/CacheMediator.java:[284,17]
setRequestHash(java.lang.String) in org.wso2.caching.CachedObject cannot be
applied to (java.lang.Object)

Let me know what you think.
mehdi

On 1/2/08 3:55 AM, "ant elder" <an...@gmail.com> wrote:

> In case you've not got past this yet here's some info and Maven commands which
> I find useful, we should add this to the Synapse website:
> 
> Building Synapse:
> 
> Synapse requires JDK 1.5 or later and Maven 2.0.7 or later
> (http://maven.apache.org/download.html).
> 
> To build, in the top level  Synapse folder do:
> 
> mvn clean install
> 
> Or to build the distribution archive packages do (the distribution archives
> are created in new folder named target):
> 
> mvn assembly:assembly -Drelease
> 
> The first time you build Maven downloads all the required dependency jars to
> your local repository, after there has been a successful build you can add the
> "-o" parameter to  the above commands to run in offline mode which avoids
> going out to remote Maven repositories so the build runs faster. Eg
> 
> mvn clean install -o
> or
> mvn assembly:assembly -Drelease -o
> 
> If you don't want to have all the Synapse test cases run during the build you
> can add the parameter "-Dmaven.test.skip=true", eg:
> 
> mvn clean install -o -Dmaven.test.skip=true
> or
> mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true
> 
> Sometimes the trunk build uses snapshot versions of some dependency jars which
> can go out of date but may not get refreshed in your local Maven repository
> even when the "-o" parameter is not used. So if you get build failures you can
> try refreshing any snapshot dependencys with the "-U" parameter, eg:
> 
> mvn clean install -U
> 
> By default the Maven local repository is in your home directory, you can
> change this so the build uses use a different local repository with the
> parameter "-Dmaven.repo.local=", eg:
> 
> mvn clean install -Dmaven.repo.local=\Synapse\MyRepo
> 
> HTH,
> 
>    ...ant
> 
> On Dec 31, 2007 8:29 PM, mehdi ait oufkir <mehdi@yousendit.com
> <ma...@yousendit.com> > wrote:
>> Hi,
>>  So I have issues with maven under eclipse. I guess the installation didn't
>> work properly. When I want to build, it's complaining about:[ERROR] BUILD
>> [INFO] The PluginDescriptor for the plugin
>> org.apache.maven.plugins:maven-resources-plugin was not found
>> 
>> I don't know how to solve that.
>> 
>> Also, I have a lot of type that cannot be resolved. It seems that I'm
>> missing a lot of apache packages (org.apache.axis2, org.apache.log...)
>> 
>> Let me know what I should do to fix those issues.
>> Mehdi. 
>> 
>> 
>> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>> 
>>> > Yes it works fine for me.... let me know if you have any problems.
>>> >
>>> > Paul
>>> >
>>> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com> wrote:
>>>> >> mehdi ait oufkir wrote:
>>>>> >>> Concerning the build of synapse. Do you have some documentation
>>>>> somewhere or 
>>>>> >>> can I build it from eclipse. I have heard about maven but I'm not
>>>>> familiar
>>>>> >>> at all with it, I know more about ant.
>>>>> >>>
>>>> >> If you have Maven 2.0.6 or later installed on your system, you should be
>>>> >> able to type "mvn eclipse:eclipse" and it should download any/all
>>>> >> dependencies and create your Eclipse project correctly..
>>>> >>
>>>> >> If this does not work for any unknown reason, we have a few committers
>>>> >> like Upul and Ant, who uses Eclipse and they would be able to help you..
>>>> >>
>>>> >> asankha
>>>> >>
>>>> >>
>>>> >> ---------------------------------------------------------------------
>>>> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>>> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>>> >>
>>>> >>
>>> >
>>> >
>> 
>> Mehdi Ait Oufkir
>> Webapp lead
>> O: 408.879.9118 x222   | F: 408.879.9117
>> 
>> yousendit
>> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
>> Send, Receive, Track. . .  www.YouSendIt.com <http://www.YouSendIt.com>
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>> <ma...@ws.apache.org>
>> 
> 
> 


Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit  
1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
Send, Receive, Track. . .  www.YouSendIt.com


Re: Adding STOMP transport protocol in synapse

Posted by ant elder <an...@gmail.com>.
In case you've not got past this yet here's some info and Maven commands
which I find useful, we should add this to the Synapse website:

Building Synapse:

Synapse requires JDK 1.5 or later and Maven 2.0.7 or later (
http://maven.apache.org/download.html).

To build, in the top level  Synapse folder do:

mvn clean install

Or to build the distribution archive packages do (the distribution archives
are created in new folder named target):

mvn assembly:assembly -Drelease

The first time you build Maven downloads all the required dependency jars to
your local repository, after there has been a successful build you can add
the "-o" parameter to  the above commands to run in offline mode which
avoids going out to remote Maven repositories so the build runs faster. Eg

mvn clean install -o
or
mvn assembly:assembly -Drelease -o

If you don't want to have all the Synapse test cases run during the build
you can add the parameter "-Dmaven.test.skip=true", eg:

mvn clean install -o -Dmaven.test.skip=true
or
mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true

Sometimes the trunk build uses snapshot versions of some dependency jars
which can go out of date but may not get refreshed in your local Maven
repository even when the "-o" parameter is not used. So if you get build
failures you can try refreshing any snapshot dependencys with the "-U"
parameter, eg:

mvn clean install -U

By default the Maven local repository is in your home directory, you can
change this so the build uses use a different local repository with the
parameter "-Dmaven.repo.local=", eg:

mvn clean install -Dmaven.repo.local=\Synapse\MyRepo

HTH,

   ...ant

On Dec 31, 2007 8:29 PM, mehdi ait oufkir <me...@yousendit.com> wrote:

> Hi,
>  So I have issues with maven under eclipse. I guess the installation
> didn't
> work properly. When I want to build, it's complaining about:[ERROR] BUILD
> [INFO] The PluginDescriptor for the plugin
> org.apache.maven.plugins:maven-resources-plugin was not found
>
> I don't know how to solve that.
>
> Also, I have a lot of type that cannot be resolved. It seems that I'm
> missing a lot of apache packages (org.apache.axis2, org.apache.log...)
>
> Let me know what I should do to fix those issues.
> Mehdi.
>
>
> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>
> > Yes it works fine for me.... let me know if you have any problems.
> >
> > Paul
> >
> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com> wrote:
> >> mehdi ait oufkir wrote:
> >>> Concerning the build of synapse. Do you have some documentation
> somewhere or
> >>> can I build it from eclipse. I have heard about maven but I'm not
> familiar
> >>> at all with it, I know more about ant.
> >>>
> >> If you have Maven 2.0.6 or later installed on your system, you should
> be
> >> able to type "mvn eclipse:eclipse" and it should download any/all
> >> dependencies and create your Eclipse project correctly..
> >>
> >> If this does not work for any unknown reason, we have a few committers
> >> like Upul and Ant, who uses Eclipse and they would be able to help
> you..
> >>
> >> asankha
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> >> For additional commands, e-mail: synapse-dev-help@ws.apache.org
> >>
> >>
> >
> >
>
> Mehdi Ait Oufkir
> Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track. . .  www.YouSendIt.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>

Re: Adding STOMP transport protocol in synapse

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Mehdi

Please let me know the version of Maven you use, and if your machine has
direct access to the internet (for Maven to download the required
artifacts).. Then could you capture the output from Maven and send it as
an attachment for one of us to check whats wrong

asankha

mehdi ait oufkir wrote:
> Hi,
>  So I have issues with maven under eclipse. I guess the installation didn't
> work properly. When I want to build, it's complaining about:[ERROR] BUILD
> [INFO] The PluginDescriptor for the plugin
> org.apache.maven.plugins:maven-resources-plugin was not found
>
> I don't know how to solve that.
>
> Also, I have a lot of type that cannot be resolved. It seems that I'm
> missing a lot of apache packages (org.apache.axis2, org.apache.log...)
>
> Let me know what I should do to fix those issues.
> Mehdi. 
>
>
> On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:
>
>   
>> Yes it works fine for me.... let me know if you have any problems.
>>
>> Paul
>>
>> On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com> wrote:
>>     
>>> mehdi ait oufkir wrote:
>>>       
>>>> Concerning the build of synapse. Do you have some documentation somewhere or
>>>> can I build it from eclipse. I have heard about maven but I'm not familiar
>>>> at all with it, I know more about ant.
>>>>
>>>>         
>>> If you have Maven 2.0.6 or later installed on your system, you should be
>>> able to type "mvn eclipse:eclipse" and it should download any/all
>>> dependencies and create your Eclipse project correctly..
>>>
>>> If this does not work for any unknown reason, we have a few committers
>>> like Upul and Ant, who uses Eclipse and they would be able to help you..
>>>
>>> asankha
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>>>
>>>
>>>       
>>     
>
> Mehdi Ait Oufkir
> Webapp lead
> O: 408.879.9118 x222   | F: 408.879.9117
>
> yousendit  
> 1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
> Send, Receive, Track. . .  www.YouSendIt.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>
>   

Re: Adding STOMP transport protocol in synapse

Posted by mehdi ait oufkir <me...@yousendit.com>.
Hi,
 So I have issues with maven under eclipse. I guess the installation didn't
work properly. When I want to build, it's complaining about:[ERROR] BUILD
[INFO] The PluginDescriptor for the plugin
org.apache.maven.plugins:maven-resources-plugin was not found

I don't know how to solve that.

Also, I have a lot of type that cannot be resolved. It seems that I'm
missing a lot of apache packages (org.apache.axis2, org.apache.log...)

Let me know what I should do to fix those issues.
Mehdi. 


On 12/30/07 7:51 AM, "Paul Fremantle" <pz...@gmail.com> wrote:

> Yes it works fine for me.... let me know if you have any problems.
> 
> Paul
> 
> On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com> wrote:
>> mehdi ait oufkir wrote:
>>> Concerning the build of synapse. Do you have some documentation somewhere or
>>> can I build it from eclipse. I have heard about maven but I'm not familiar
>>> at all with it, I know more about ant.
>>> 
>> If you have Maven 2.0.6 or later installed on your system, you should be
>> able to type "mvn eclipse:eclipse" and it should download any/all
>> dependencies and create your Eclipse project correctly..
>> 
>> If this does not work for any unknown reason, we have a few committers
>> like Upul and Ant, who uses Eclipse and they would be able to help you..
>> 
>> asankha
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>> 
>> 
> 
> 

Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit  
1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
Send, Receive, Track. . .  www.YouSendIt.com


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


Re: Adding STOMP transport protocol in synapse

Posted by Paul Fremantle <pz...@gmail.com>.
Yes it works fine for me.... let me know if you have any problems.

Paul

On Dec 30, 2007 2:38 PM, Asankha C. Perera <as...@wso2.com> wrote:
> mehdi ait oufkir wrote:
> > Concerning the build of synapse. Do you have some documentation somewhere or
> > can I build it from eclipse. I have heard about maven but I'm not familiar
> > at all with it, I know more about ant.
> >
> If you have Maven 2.0.6 or later installed on your system, you should be
> able to type "mvn eclipse:eclipse" and it should download any/all
> dependencies and create your Eclipse project correctly..
>
> If this does not work for any unknown reason, we have a few committers
> like Upul and Ant, who uses Eclipse and they would be able to help you..
>
> asankha
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: synapse-dev-help@ws.apache.org
>
>



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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


Re: Adding STOMP transport protocol in synapse

Posted by "Asankha C. Perera" <as...@wso2.com>.
mehdi ait oufkir wrote:
> Concerning the build of synapse. Do you have some documentation somewhere or
> can I build it from eclipse. I have heard about maven but I'm not familiar
> at all with it, I know more about ant.
>   
If you have Maven 2.0.6 or later installed on your system, you should be
able to type "mvn eclipse:eclipse" and it should download any/all
dependencies and create your Eclipse project correctly..

If this does not work for any unknown reason, we have a few committers
like Upul and Ant, who uses Eclipse and they would be able to help you..

asankha

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


Re: Adding STOMP transport protocol in synapse

Posted by mehdi ait oufkir <me...@yousendit.com>.
Paul,

I know I can do that. But I don't want to have my server to talk directly to
activemq.
So I would have, On the client side something like.

Client<----STOMP---->Synapse<---JMS--->Activemq
The client is in php.

On the server side:
Activemq<----JMS---->Synapse<----STOMP--->Server.
My server is in C.

I don't know if it's the best way to do it. But I don't want to have neither
my client, nor my server coupled to activemq.

My goal is to enable asynchronous web-services thru a queue mechanism, but
to my knowledge PHP and C can't talk JMS.

Let me know if I'm going the wrong way.

Concerning the build of synapse. Do you have some documentation somewhere or
can I build it from eclipse. I have heard about maven but I'm not familiar
at all with it, I know more about ant.

Mehdi.


On 12/29/07 1:24 AM, "Paul Fremantle" <pz...@gmail.com> wrote:

> Mehdi
> 
> Synapse works "out of the box" with ActiveMQ. Would it be enough
> simply to use ActiveMQ and enable the STOMP protocol with that?
> 
> i.e. Synapse->ActiveMQ->STOMP
> 
> Paul
> 
> On Dec 29, 2007 2:11 AM, Asankha C. Perera <as...@wso2.com> wrote:
>> 
>>  Hi Mehdi
>> 
>>  The transports used by Synapse are actually Axis2 transports.. Thus the
>> interfaces you need to implement are actually in Axis2.. however, since
>> Synapse uses more transports typically than Axis2, the Synapse code base
>> contains a module "tranports" that contains the code for the VFS, JMS and
>> NHTTP transports. However, the NHTTP transport is quite different and a bit
>> complex - but you should be able to look at the JMS transport code to get a
>> better understanding. Start from the JMSListener and JMSSender and also look
>> at the AbstractTransportSender and the AbstractTransportListener that will
>> make your implementation simpler
>> 
>>  asankha
>> 
>> 
>> 
>>  mehdi ait oufkir wrote:
>>  Hi,
>> 
>>  I'm evaluating synapse for a project and one of the requirement would be to
>> support the STOMP transport protocol. I know synapse already support by
>> default http,https, jms, I'd like to know what it would take to support
>> another protocol. How extensible is synapse?
>> 
>>  If this is possible, may be you can guide me with some general dev
>> documentation, and build documentation. I already checked out the code into
>> eclipse but I had hard to understand the structure of the code.
>> 
>>  Thanks,
>>  Mehdi Ait Oufkir
> 
> 

Mehdi Ait Oufkir
Webapp lead
O: 408.879.9118 x222   | F: 408.879.9117

yousendit  
1919 S. Bascom Ave, 3rd Floor  |   Campbell  |  CA 95008
Send, Receive, Track. . .  www.YouSendIt.com


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


Re: Adding STOMP transport protocol in synapse

Posted by Paul Fremantle <pz...@gmail.com>.
Mehdi

Synapse works "out of the box" with ActiveMQ. Would it be enough
simply to use ActiveMQ and enable the STOMP protocol with that?

i.e. Synapse->ActiveMQ->STOMP

Paul

On Dec 29, 2007 2:11 AM, Asankha C. Perera <as...@wso2.com> wrote:
>
>  Hi Mehdi
>
>  The transports used by Synapse are actually Axis2 transports.. Thus the
> interfaces you need to implement are actually in Axis2.. however, since
> Synapse uses more transports typically than Axis2, the Synapse code base
> contains a module "tranports" that contains the code for the VFS, JMS and
> NHTTP transports. However, the NHTTP transport is quite different and a bit
> complex - but you should be able to look at the JMS transport code to get a
> better understanding. Start from the JMSListener and JMSSender and also look
> at the AbstractTransportSender and the AbstractTransportListener that will
> make your implementation simpler
>
>  asankha
>
>
>
>  mehdi ait oufkir wrote:
>  Hi,
>
>  I'm evaluating synapse for a project and one of the requirement would be to
> support the STOMP transport protocol. I know synapse already support by
> default http,https, jms, I'd like to know what it would take to support
> another protocol. How extensible is synapse?
>
>  If this is possible, may be you can guide me with some general dev
> documentation, and build documentation. I already checked out the code into
> eclipse but I had hard to understand the structure of the code.
>
>  Thanks,
>  Mehdi Ait Oufkir



-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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


Re: Adding STOMP transport protocol in synapse

Posted by "Asankha C. Perera" <as...@wso2.com>.
Hi Mehdi

The transports used by Synapse are actually Axis2 transports.. Thus the
interfaces you need to implement are actually in Axis2.. however, since
Synapse uses more transports typically than Axis2, the Synapse code base
contains a module "tranports" that contains the code for the VFS, JMS
and NHTTP transports. However, the NHTTP transport is quite different
and a bit complex - but you should be able to look at the JMS transport
code to get a better understanding. Start from the JMSListener and
JMSSender and also look at the AbstractTransportSender and the
AbstractTransportListener that will make your implementation simpler

asankha

mehdi ait oufkir wrote:
> Hi,
>
> I’m evaluating synapse for a project and one of the requirement would
> be to support the STOMP transport protocol. I know synapse already
> support by default http,https, jms, I’d like to know what it would
> take to support another protocol. How extensible is synapse?
>
> If this is possible, may be you can guide me with some general dev
> documentation, and build documentation. I already checked out the code
> into eclipse but I had hard to understand the structure of the code.
>
> Thanks,
> Mehdi Ait Oufkir