You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by me <me...@fengsage.com> on 2010/09/13 06:06:51 UTC

How replace BPEL on SMX ?

hi,all.

I'm a new smx. Our company have some webservice. I want to recomposition these webservice. and export a new webservice. For example, our comany have following webservice.
1. Create Address  
2. Create ABC
3. Create Contact
now i need  a new  'create customer' interface, this interface include above three interface , The new interface will above three interface by following flow.
Flow : 

Data --> 1. create address --> 2. return address ID --> 
3. address ID + Data --> 4. create ABC --> 5. return ABC ID --> 
6. ABC ID + address ID + Data --> 7. create contact --> 8. return address ID + ABC ID + Contact ID

I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to know another ways solve this question. Can i using EIP or Camel solve it ?

Thanks and Regards,
Fred

Re: Re: How replace BPEL on SMX ?

Posted by Fred <me...@fengsage.com>.
YES. Or if have other ways, also please tell me .

Thanks and regards 
Fred



From: Johan Edstrom 
Date: 2010-09-25  11:16:43 
To: users 
Cc:  
Subject: Re: How replace BPEL on SMX ? 
 
Use Camel?
On Sep 24, 2010, at 8:41 PM, FredZhu wrote:
> 
> no anybody can help me ?
> -- 
> View this message in context: http://servicemix.396122.n5.nabble.com/How-replace-BPEL-on-SMX-tp2837263p2853439.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
Johan Edstrom
joed@opennms.org
They that can give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety.
Benjamin Franklin, Historical Review of Pennsylvania, 1759

Re: How replace BPEL on SMX ?

Posted by Johan Edstrom <se...@gmail.com>.
Use Camel?

On Sep 24, 2010, at 8:41 PM, FredZhu wrote:

> 
> no anybody can help me ?
> -- 
> View this message in context: http://servicemix.396122.n5.nabble.com/How-replace-BPEL-on-SMX-tp2837263p2853439.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

Johan Edstrom

joed@opennms.org

They that can give up essential liberty to purchase a little temporary safety, deserve neither liberty nor safety.

Benjamin Franklin, Historical Review of Pennsylvania, 1759






Re: How replace BPEL on SMX ?

Posted by FredZhu <me...@fengsage.com>.
no anybody can help me ?
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-replace-BPEL-on-SMX-tp2837263p2853439.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Fw: How replace BPEL on SMX ?

Posted by Charles Moulliard <cm...@gmail.com>.
For sure that camel can help you to design that easily. As you mention
camel implements Enterprise Integration Patterns (EIP), that means
that you can route, filter, enrich, aggregate, splits the messages
received.

Depending how you will expose your services, you can design camel
routes like that :

from(Data).to(bean:createAddress).to(direct:step1)
from(direct:step1).to(bean:createABC).to(direct:step2)
from(direct:step2).to(bean:createContact).to(jms:queue:A)

Regards,

Charles Moulliard

Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel - Karaf - ServiceMix Committer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Blog : http://cmoulliard.blogspot.com |  Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard



2010/9/14 Fred <me...@fengsage.com>:
> who can help me ?
>
>
>
>
> From: me
> Date: 2010-09-13 12:06:49
> To: users
> Cc:
> Subject: How replace BPEL on SMX ?
>
> hi,all.
>
> I'm a new smx. Our company have some webservice. I want to recomposition these webservice. and export a new webservice. For example, our comany have following webservice.
> 1. Create Address
> 2. Create ABC
> 3. Create Contact
> now i need  a new  'create customer' interface, this interface include above three interface , The new interface will above three interface by following flow.
> Flow :
>
> Data --> 1. create address --> 2. return address ID -->
> 3. address ID + Data --> 4. create ABC --> 5. return ABC ID -->
> 6. ABC ID + address ID + Data --> 7. create contact --> 8. return address ID + ABC ID + Contact ID
>
> I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to know another ways solve this question. Can i using EIP or Camel solve it ?
>
> Thanks and Regards,
> Fred
>

Re: Re: Fw: How replace BPEL on SMX ?

Posted by Charles Moulliard <cm...@gmail.com>.
You can use this pattern in camel :
http://camel.apache.org/pipes-and-filters.html

with the component cxf

http://camel.apache.org/cxf.html


On Tue, Sep 14, 2010 at 11:04 AM, Fred <me...@fengsage.com> wrote:
> Thanks your reply.
>
> I means that i need export a new webservice 'Create Customer', It receive  'Data' and return '8. return address ID + ABC ID + Contact ID'. It's a synchronous interface.
>
> So, i want to know if i using camel, what kinds of eip component i need.
>
> Fred
>
>
>
>
> From: Charles Moulliard
> Date: 2010-09-14  16:02:37
> To: users
> Cc:
> Subject: Re: Fw: How replace BPEL on SMX ?
> For sure that camel can help you to design that easily. As you mention
> camel implements Enterprise Integration Patterns (EIP), that means
> that you can route, filter, enrich, aggregate, splits the messages
> received.
> Depending how you will expose your services, you can design camel
> routes like that :
> from(Data).to(bean:createAddress).to(direct:step1)
> from(direct:step1).to(bean:createABC).to(direct:step2)
> from(direct:step2).to(bean:createContact).to(jms:queue:A)
> Regards,
> Charles Moulliard
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel - Karaf - ServiceMix Committer
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blog : http://cmoulliard.blogspot.com |?Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
> 2010/9/14 Fred <me...@fengsage.com>:
>> who can help me ?
>>
>>
>>
>>
>> From: me
>> Date: 2010-09-13 12:06:49
>> To: users
>> Cc:
>> Subject: How replace BPEL on SMX ?
>>
>> hi,all.
>>
>> I'm a new smx. Our company have some webservice. I want to recomposition these webservice. and export a new webservice. For example, our comany have following webservice.
>> 1. Create Address
>> 2. Create ABC
>> 3. Create Contact
>> now i need 燼 new ?create customer' interface, this interface include above three interface , The new interface will above three interface by following flow.
>> Flow :
>>
>> Data --> 1. create address --> 2. return address ID -->
>> 3. address ID + Data --> 4. create ABC --> 5. return ABC ID -->
>> 6. ABC ID + address ID + Data --> 7. create contact --> 8. return address ID + ABC ID + Contact ID
>>
>> I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to know another ways solve this question. Can i using EIP or Camel solve it ?
>>
>> Thanks and Regards,
>> Fred
>>
>

Re: Re: Re: Fw: How replace BPEL on SMX ?

Posted by Fred <me...@fengsage.com>.
Dear all,

I'm sorry, may be my question not clear. I think we can't use the pipes-and-filters this component. I will detail describe we scence.

We have three 'old' webservice ,there are 'create address' , 'create abc' , 'create contact' . now we need export a 'new' webservice 'create customer' 

First , the initData need go to 'create address' ,the webservice will create it and reutrn a 'addressID', 
Second , if the 'addressID' is right , so we will put the address and initData together. and send to 'create abc' webserivce. the webservice will return 'abcID'
Third, we will put the 'addressID','abcID' and initData together. send to 'create contact' webservice, the webservice will return 'contactID'
Last, we will return all result 'addressID','abcID','contactID' to the request user.

above flow are synchronous.

I tried use the 'pipes and filters'  component when the 'create address' webservice return 'addressID' success, the pipes component will send the seconde dirrect('create abc'),but now the data only the 'addressID' not include initData. So it's failture.
I tried use the aggregator component , aggregator inidData and addressID, but also failture. because they are not similare.

Following are some webserivce data(received and return).

'create address' interface:
request:  <xml><name>fred</name><age>0</age><detailAddress>Hong Kong</detailAddress></xml> response: <xml><addressID>123456</addressID></xml>

'create abc' interface:
request: <xml><name>fred</name><age>0</age><abcDatail>ABC</abcDatail></xml> response: <xml><abcID>654321</abcID></xml>

'create contact' interface:
request: <xml><name>fred</name><age>0</age><contactName>alex</contactName></xml> response: <xml><contactID>abc123</contactID></xml>

we need export new interface 'create customer':
request: <xml><name>fred</name><age>0</age><detailAddress>Hong Kong</detailAddress><abcDatail><ABC/abcDatail><contactName>alex</contactName></xml> 
response: <xml><addressID></addressID><abcID>654321</abcID><contactID>abc123</contactID></xml>

Hope everybody could sufferance my long question. My english so bad.

Thanks and regards 
Fred



From: Charles Moulliard 
Date: 2010-09-14  17:21:41 
To: users 
Cc:  
Subject: Re: Re: Fw: How replace BPEL on SMX ? 
 
You can use this pattern in camel :
http://camel.apache.org/pipes-and-filters.html
with the component cxf
http://camel.apache.org/cxf.html
On Tue, Sep 14, 2010 at 11:04 AM, Fred <me...@fengsage.com> wrote:
> Thanks your reply.
>
> I means that i need export a new webservice 'Create Customer', It receive  'Data' and return '8. return address ID + ABC ID + Contact ID'. It's a synchronous interface.
>
> So, i want to know if i using camel, what kinds of eip component i need.
>
> Fred
>
>
>
>
> From: Charles Moulliard
> Date: 2010-09-14  16:02:37
> To: users
> Cc:
> Subject: Re: Fw: How replace BPEL on SMX ?
> For sure that camel can help you to design that easily. As you mention
> camel implements Enterprise Integration Patterns (EIP), that means
> that you can route, filter, enrich, aggregate, splits the messages
> received.
> Depending how you will expose your services, you can design camel
> routes like that :
> from(Data).to(bean:createAddress).to(direct:step1)
> from(direct:step1).to(bean:createABC).to(direct:step2)
> from(direct:step2).to(bean:createContact).to(jms:queue:A)
> Regards,
> Charles Moulliard
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel - Karaf - ServiceMix Committer
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blog : http://cmoulliard.blogspot.com |?Twitter : http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
> 2010/9/14 Fred <me...@fengsage.com>:
>> who can help me ?
>>
>>
>>
>>
>> From: me
>> Date: 2010-09-13 12:06:49
>> To: users
>> Cc:
>> Subject: How replace BPEL on SMX ?
>>
>> hi,all.
>>
>> I'm a new smx. Our company have some webservice. I want to recomposition these webservice. and export a new webservice. For example, our comany have following webservice.
>> 1. Create Address
>> 2. Create ABC
>> 3. Create Contact
>> now i need 燼 new ?create customer' interface, this interface include above three interface , The new interface will above three interface by following flow.
>> Flow :
>>
>> Data --> 1. create address --> 2. return address ID -->
>> 3. address ID + Data --> 4. create ABC --> 5. return ABC ID -->
>> 6. ABC ID + address ID + Data --> 7. create contact --> 8. return address ID + ABC ID + Contact ID
>>
>> I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to know another ways solve this question. Can i using EIP or Camel solve it ?
>>
>> Thanks and Regards,
>> Fred
>>
>

Re: Re: Fw: How replace BPEL on SMX ?

Posted by Fred <me...@fengsage.com>.
Thanks your reply.

I means that i need export a new webservice 'Create Customer', It receive  'Data' and return '8. return address ID + ABC ID + Contact ID'. It's a synchronous interface.

So, i want to know if i using camel, what kinds of eip component i need.

Fred




From: Charles Moulliard 
Date: 2010-09-14  16:02:37 
To: users 
Cc:  
Subject: Re: Fw: How replace BPEL on SMX ? 
For sure that camel can help you to design that easily. As you mention
camel implements Enterprise Integration Patterns (EIP), that means
that you can route, filter, enrich, aggregate, splits the messages
received.
Depending how you will expose your services, you can design camel
routes like that :
from(Data).to(bean:createAddress).to(direct:step1)
from(direct:step1).to(bean:createABC).to(direct:step2)
from(direct:step2).to(bean:createContact).to(jms:queue:A)
Regards,
Charles Moulliard
Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel - Karaf - ServiceMix Committer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Blog : http://cmoulliard.blogspot.com |?Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
2010/9/14 Fred <me...@fengsage.com>:
> who can help me ?
>
>
>
>
> From: me
> Date: 2010-09-13 12:06:49
> To: users
> Cc:
> Subject: How replace BPEL on SMX ?
>
> hi,all.
>
> I'm a new smx. Our company have some webservice. I want to recomposition these webservice. and export a new webservice. For example, our comany have following webservice.
> 1. Create Address
> 2. Create ABC
> 3. Create Contact
> now i need 燼 new ?create customer' interface, this interface include above three interface , The new interface will above three interface by following flow.
> Flow :
>
> Data --> 1. create address --> 2. return address ID -->
> 3. address ID + Data --> 4. create ABC --> 5. return ABC ID -->
> 6. ABC ID + address ID + Data --> 7. create contact --> 8. return address ID + ABC ID + Contact ID
>
> I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to know another ways solve this question. Can i using EIP or Camel solve it ?
>
> Thanks and Regards,
> Fred
>

Fw: How replace BPEL on SMX ?

Posted by Fred <me...@fengsage.com>.
who can help me ?




From: me
Date: 2010-09-13 12:06:49
To: users
Cc: 
Subject: How replace BPEL on SMX ?

hi,all.

I'm a new smx. Our company have some webservice. I want to recomposition these webservice. and export a new webservice. For example, our comany have following webservice.
1. Create Address  
2. Create ABC
3. Create Contact
now i need  a new  'create customer' interface, this interface include above three interface , The new interface will above three interface by following flow.
Flow : 

Data --> 1. create address --> 2. return address ID --> 
3. address ID + Data --> 4. create ABC --> 5. return ABC ID --> 
6. ABC ID + address ID + Data --> 7. create contact --> 8. return address ID + ABC ID + Contact ID

I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to know another ways solve this question. Can i using EIP or Camel solve it ?

Thanks and Regards,
Fred

Re: How replace BPEL on SMX ?

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Fred,

For simple routing, you can use pure JBI.
For more complex routing, you can use Camel.

If you want something more near from ODE, maybe take a look on
OSWorkflow component.

Regards
JB

On 09/13/2010 06:06 AM, me wrote:
> hi,all.
> 
> I'm a new smx. Our company have some webservice. I want to recomposition these webservice. and export a new webservice. For example, our comany have following webservice.
> 1. Create Address
> 2. Create ABC
> 3. Create Contact
> now i need  a new  'create customer' interface, this interface include above three interface , The new interface will above three interface by following flow.
> Flow :
> 
> Data -->  1. create address -->  2. return address ID -->
> 3. address ID + Data -->  4. create ABC -->  5. return ABC ID -->
> 6. ABC ID + address ID + Data -->  7. create contact -->  8. return address ID + ABC ID + Contact ID
> 
> I know if i using Apache ODE for smx's bpel engint. it's easy. But I want to know another ways solve this question. Can i using EIP or Camel solve it ?
> 
> Thanks and Regards,
> Fred
>