You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by FreshAir <li...@yahoo.com.cn> on 2008/07/11 07:40:53 UTC
Help! Need a TCP/IP BC in servicemix.
Hi,
I want a indepent TCP/IP BC in servicemix to use(not that servicemix-camel
or activemq way to transport TCP/IP msg).
Currently I have ChainBuild ESB TCP/IP BC, and Spagic tcp/ip BC, but i
don't know how to manually write their corresponding configuring xml files
to expose them as an endpoint.
Is there any way out?
Thanks in advance!
--
View this message in context: http://www.nabble.com/Help%21-Need-a-TCP-IP-BC-in-servicemix.-tp18397114p18397114.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Help! Need a TCP/IP BC in servicemix.
Posted by Gert Vanthienen <ge...@skynet.be>.
L.S.,
If you download a recent snapshot of the servicemix-camel component, you
can also use the Camel MINA component together with a codec. We didn't
support setting your own codec on the version that shipped with 3.2.1,
but you will be able to do this for 3.2.2 (currently -SNAPSHOT) which
comes with Camel 1.4.0. This will allow you to even skip creating the
BC and just create a Camel SU with the codec in it.
Regards,
Gert
kai0411 wrote:
> I created my BC following http://servicemix.apache.org/hello-world-bc.html
> and used MINA example in
> http://mina.apache.org/tutorial-on-protocolcodecfilter-for-mina-2x.html for
> my TCP/IP connection. It works.
>
>
>
> FreshAir wrote:
>
>> I want a indepent TCP/IP BC in servicemix to use(not that servicemix-camel
>> or activemq way to transport TCP/IP msg).
>>
>>
>
>
Re: Help! Need a TCP/IP BC in servicemix.
Posted by kai0411 <jo...@softechnics.com>.
I created my BC following http://servicemix.apache.org/hello-world-bc.html
and used MINA example in
http://mina.apache.org/tutorial-on-protocolcodecfilter-for-mina-2x.html for
my TCP/IP connection. It works.
FreshAir wrote:
>
> I want a indepent TCP/IP BC in servicemix to use(not that servicemix-camel
> or activemq way to transport TCP/IP msg).
>
--
View this message in context: http://www.nabble.com/Help%21-Need-a-TCP-IP-BC-in-servicemix.-tp18397114p18446144.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Help! Need a TCP/IP BC in servicemix.
Posted by FreshAir <li...@yahoo.com.cn>.
Andrea Zoppello-2 wrote:
>
> Sorry for the late reply the following one is an example of xbean
> configuration
> for a TCP-IP Consumer endpoint, this means the endpoint wait for tcp
> request.
>
> <?xml version="1.0"?>
> <beans xmlns:sm="http://servicemix.apache.org/config/1.0"
> xmlns:tcp="http://servicemix.apache.org/tcp/1.0"
> xmlns:TestTCP_v_0="urn:eng:spagic:processes:TestTCP:v0"
> xmlns:util="http://www.springframework.org/schema/util">
>
> <bean id="spagicProcessProperties"
>
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
> <property name="location" value="classpath:spagic.properties"/>
> </bean>
>
>
> <tcp:consumer
> depends-on="spagicProcessProperties"
> service="TestTCP_v_0:TestTCP.TCP_v_0"
> endpoint="TestTCP.TCP_v_0"
> targetService="TestTCP_v_0:TestTCP.Groovy_v_0"
> >
>
> <tcp:config>
>
> <tcp:tcpBCConfig
>
> pointName="TestTCP.TCP_v_0"
> pointType="POINT_TYPE_SERVER"
> pointMode="OPERATION_MODE_BIDIRECTIONAL"
> outNmEnvelope="PLAIN-MESSAGE"
> inNmEnvelope="PLAIN-MESSAGE"
> base64encode="TRUE"
> base64decode="TRUE"
> defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
> incomingWrapper="WRAPPER_USER"
> incomingHeader="0x0B"
> incomingTrailer="0x1C 0x0D"
> stripWrapping="true"
> outgoingWrapper="WRAPPER_USER"
> outgoingHeader="0x0B"
> outgoingTrailer="0x1C 0x0D"
> logConnections="false"
> logData="false"
> logDataAsHex="false"
> connectionLogFileName=""
> extraInformation="false"
>
> useSSL="false"
> useSSLClientMode="false"
> keyStoreFileName=""
> keyStorePassword=""
> keyStoreType="JKS"
> trustStoreFileName=""
> trustStorePassword=""
> trustStoreType="JKS"
> connNumber="-1"
> localPort="7001"
> localAddress="0.0.0.0"
>
> >
> </tcp:tcpBCConfig>
>
> </tcp:config>
>
> </tcp:consumer></beans>
> FreshAir ha scritto:
>>
>> Andrea Zoppello-2 wrote:
>>
>>> Hi,
>>>
>>> If you use spagic you could try configure a TCP/IP Binding component
>>> with
>>> spagic studio.
>>>
>>> Andrea
>>> FreshAir ha scritto:
>>>
>>>> Hi,
>>>> I want a indepent TCP/IP BC in servicemix to use(not that
>>>> servicemix-camel
>>>> or activemq way to transport TCP/IP msg).
>>>> Currently I have ChainBuild ESB TCP/IP BC, and Spagic tcp/ip BC, but i
>>>> don't know how to manually write their corresponding configuring xml
>>>> files
>>>> to expose them as an endpoint.
>>>> Is there any way out?
>>>>
>>>> Thanks in advance!
>>>>
>>>>
>>>
>>>
>>
>> Hi,
>> The question is I want to know a typical configuration and, I cann't use
>> that studio for some reason at present. I just want a pure TCP/IP BC,
>> that's
>> it.
>> Would you please give me an example of SU(xbean.xml) or sth?
>> Thank you!
>>
>>
>
>
>
Hi,
Thanks for your help. I really really appreciate that! I will keep learning.
Best regards,
FreshAir
--
View this message in context: http://www.nabble.com/Help%21-Need-a-TCP-IP-BC-in-servicemix.-tp18397114p18461402.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Help! Need a TCP/IP BC in servicemix.
Posted by Andrea Zoppello <zo...@tiscali.it>.
Sorry for the late reply the following one is an example of xbean
configuration
for a TCP-IP Consumer endpoint, this means the endpoint wait for tcp
request.
<?xml version="1.0"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0"
xmlns:tcp="http://servicemix.apache.org/tcp/1.0"
xmlns:TestTCP_v_0="urn:eng:spagic:processes:TestTCP:v0"
xmlns:util="http://www.springframework.org/schema/util">
<bean id="spagicProcessProperties"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="classpath:spagic.properties"/>
</bean>
<tcp:consumer
depends-on="spagicProcessProperties"
service="TestTCP_v_0:TestTCP.TCP_v_0"
endpoint="TestTCP.TCP_v_0"
targetService="TestTCP_v_0:TestTCP.Groovy_v_0"
>
<tcp:config>
<tcp:tcpBCConfig
pointName="TestTCP.TCP_v_0"
pointType="POINT_TYPE_SERVER"
pointMode="OPERATION_MODE_BIDIRECTIONAL"
outNmEnvelope="PLAIN-MESSAGE"
inNmEnvelope="PLAIN-MESSAGE"
base64encode="TRUE"
base64decode="TRUE"
defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
incomingWrapper="WRAPPER_USER"
incomingHeader="0x0B"
incomingTrailer="0x1C 0x0D"
stripWrapping="true"
outgoingWrapper="WRAPPER_USER"
outgoingHeader="0x0B"
outgoingTrailer="0x1C 0x0D"
logConnections="false"
logData="false"
logDataAsHex="false"
connectionLogFileName=""
extraInformation="false"
useSSL="false"
useSSLClientMode="false"
keyStoreFileName=""
keyStorePassword=""
keyStoreType="JKS"
trustStoreFileName=""
trustStorePassword=""
trustStoreType="JKS"
connNumber="-1"
localPort="7001"
localAddress="0.0.0.0"
>
</tcp:tcpBCConfig>
</tcp:config>
</tcp:consumer></beans>
FreshAir ha scritto:
>
> Andrea Zoppello-2 wrote:
>
>> Hi,
>>
>> If you use spagic you could try configure a TCP/IP Binding component with
>> spagic studio.
>>
>> Andrea
>> FreshAir ha scritto:
>>
>>> Hi,
>>> I want a indepent TCP/IP BC in servicemix to use(not that
>>> servicemix-camel
>>> or activemq way to transport TCP/IP msg).
>>> Currently I have ChainBuild ESB TCP/IP BC, and Spagic tcp/ip BC, but i
>>> don't know how to manually write their corresponding configuring xml
>>> files
>>> to expose them as an endpoint.
>>> Is there any way out?
>>>
>>> Thanks in advance!
>>>
>>>
>>
>>
>
> Hi,
> The question is I want to know a typical configuration and, I cann't use
> that studio for some reason at present. I just want a pure TCP/IP BC, that's
> it.
> Would you please give me an example of SU(xbean.xml) or sth?
> Thank you!
>
>
Re: Help! Need a TCP/IP BC in servicemix.
Posted by FreshAir <li...@yahoo.com.cn>.
Andrea Zoppello-2 wrote:
>
> Hi,
>
> If you use spagic you could try configure a TCP/IP Binding component with
> spagic studio.
>
> Andrea
> FreshAir ha scritto:
>> Hi,
>> I want a indepent TCP/IP BC in servicemix to use(not that
>> servicemix-camel
>> or activemq way to transport TCP/IP msg).
>> Currently I have ChainBuild ESB TCP/IP BC, and Spagic tcp/ip BC, but i
>> don't know how to manually write their corresponding configuring xml
>> files
>> to expose them as an endpoint.
>> Is there any way out?
>>
>> Thanks in advance!
>>
>
>
>
Hi,
The question is I want to know a typical configuration and, I cann't use
that studio for some reason at present. I just want a pure TCP/IP BC, that's
it.
Would you please give me an example of SU(xbean.xml) or sth?
Thank you!
--
View this message in context: http://www.nabble.com/Help%21-Need-a-TCP-IP-BC-in-servicemix.-tp18397114p18399262.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: Help! Need a TCP/IP BC in servicemix.
Posted by Andrea Zoppello <zo...@tiscali.it>.
Hi,
If you use spagic you could try configure a TCP/IP Binding component with
spagic studio.
Andrea
FreshAir ha scritto:
> Hi,
> I want a indepent TCP/IP BC in servicemix to use(not that servicemix-camel
> or activemq way to transport TCP/IP msg).
> Currently I have ChainBuild ESB TCP/IP BC, and Spagic tcp/ip BC, but i
> don't know how to manually write their corresponding configuring xml files
> to expose them as an endpoint.
> Is there any way out?
>
> Thanks in advance!
>