Have a look at Camel. They already have a binding for MINA I think.

http://activemq.apache.org/camel/mina.html

ServiceMix archetype:     servicemix-camel-service-unit

For details how to configure it correctly see the camel pages.

Regards
Lars



kai0411 schrieb:
> I'm using this command to create a new consumer BC:
> $ mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
> -DarchetypeArtifactId=servicemix-binding-component -DarchetypeVersion=3.2.1
> -DgroupId=com.mycompany.bc -DartifactId=tcpip-bc
>
> then in MyConsumerEndpoint (which extends ConsumerEndpoint implements
> MyEndpointType) I did:
> first: open a socket in start() method to receive in-bound message.
> second: channel = this.getContext().getDeliveryChannel() to send message to
> the BUS.
>
> Question 1: why there is no servicemix-tcpip-bc component? Do I really need
> to create my own or I can use other servicemix component?
> Question 2: Am I doing right to create my consumer TCP/IP BC ?
>
>
> bsnyder wrote:
>   
>> On Fri, Apr 18, 2008 at 10:22 AM, kai0411 <[EMAIL PROTECTED]>
>> wrote:
>>     
>>>  my BC is a consumer, reading input through socket (TCP/IP) from outside
>>>  world. After converting input to a XML message, I need to create a
>>> deliver
>>>  channel to 'send' it to bus.
>>>  My question: how to create a deliver channel from scratch?
>>>       
>> There's no need to create a delivery channel from scratch. You can
>> simply grab it from the ComponentContext. See the
>> ComponentContext.getDeliveryChannel() method:
>>
>> Bruce
>> -- 
>> perl -e 'print
>> unpack("u30","D0G)[EMAIL PROTECTED]&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
>> );'
>>
>> Apache ActiveMQ - http://activemq.org/
>> Apache Camel - http://activemq.org/camel/
>> Apache ServiceMix - http://servicemix.org/
>> Apache Geronimo - http://geronimo.apache.org/
>>
>> Blog: http://bruceblog.org/
>>
>>
>>     
>
>   

Reply via email to