You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by chandra shekher gupta <ch...@infoaxon.com> on 2007/05/04 10:21:49 UTC

create HelloWorld BC

Hi eerybody,

We are Planning to build middleware business suite using ServiceMix.
i recently started to explore servicemix(binary) and maven.

I tried to follow Hello World BC tutoial.

so first i created 
* helloorld-bc
* helloorld-se
* helloorld-sa

then i created pom.xml on top level

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>

  <groupId>org.apache.servicemix.samples.helloworld</groupId>
  <artifactId>chandra</artifactId>
  <packaging>pom</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Hello World JBI Component</name>
  <modules>
    <module>hello-world-sa</module>
    <module>hello-world-bc</module>
    <module>hello-world-su</module>
  </modules>

</project>

and when i build mvn clean install it is not creating deployable installer
.zip.
Can anybody help me to give me right direction please.

Thanks,
chandra shekher gupta
Infoaxon technologies limited.




-- 
View this message in context: http://www.nabble.com/create-HelloWorld-BC-tf3690773s12049.html#a10318714
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.


Hi Nodet

Posted by chandra shekher gupta <ch...@infoaxon.com>.
Hi Nodet,

I created Binding component (Provider) no Service Engine.
And I deployed binding component and service assembly to Service mix deploy
directory.
This is my xbean file

<beans xmlns:http="http://servicemix.apache.org/http/1.0"
       xmlns:consumer="http://servicemix.apache.org/consumer">

  <http:endpoint service="consumer:service"
                 endpoint="soap"
                 role="provider" 
                 locationURI="http://localhost:8192/example/"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                 soap="true" />             
</beans>



Look this code too..

Public class MySpringComponentTest extends SpringTestSupport {

    public void test() throws Exception {
        DefaultServiceMixClient client = new DefaultServiceMixClient(jbi);
        InOut me = client.createInOutExchange();
        me.setService(new QName("urn:test", "service"));
		me.getInMessage().setContent(new StringSource("<hello>Ski  wekjrhwekjrh
wqekjrh kwejrhkColorado!</hello>"));
        client.sendSync(me);

//////blah blah blah


I want to test BC serviceā€¦
SA and BC is deployed propely in service mix ..
How can I accesss my service now ?
Is xbean.xml is right?


Please give your input
Regards
chandra





gnodet wrote:
> 
> I would recommend you to read the User's Guide, mainly the JBI section at
>   http://incubator.apache.org/servicemix/5-jbi.html
> And take a look at http://incubator.apache.org/servicemix/support.html.
> Sending very general questions is not the best way to get help as people
> do not really understand what the exact problem is.
> 
> 
> On 5/4/07, chandra shekher gupta <ch...@infoaxon.com> wrote:
>>
>>
>> I am creating ServiceMix Binding component can you please clarify it.
>>
>> Is it write to create first
>>
>> BC then SE and in last SA?
>>
>> Please Help me..i am stuck for long time.
>>
>> Regards
>> chandra
>>
>>
>> chandra shekher gupta wrote:
>> >
>> > Hi eerybody,
>> >
>> > We are Planning to build middleware business suite using ServiceMix.
>> > i recently started to explore servicemix(binary) and maven.
>> >
>> > I tried to follow Hello World BC tutoial.
>> >
>> > so first i created
>> > * helloorld-bc
>> > * helloorld-se
>> > * helloorld-sa
>> >
>> > then i created pom.xml on top level
>> >
>> > <?xml version="1.0" encoding="UTF-8"?>
>> > <project xmlns="http://maven.apache.org/POM/4.0.0"
>> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> > http://maven.apache.org/maven-v4_0_0.xsd">
>> >
>> >   <modelVersion>4.0.0</modelVersion>
>> >
>> >   <groupId>org.apache.servicemix.samples.helloworld</groupId>
>> >   <artifactId>chandra</artifactId>
>> >   <packaging>pom</packaging>
>> >   <version>1.0-SNAPSHOT</version>
>> >   <name>Hello World JBI Component</name>
>> >   <modules>
>> >     <module>hello-world-sa</module>
>> >     <module>hello-world-bc</module>
>> >     <module>hello-world-su</module>
>> >   </modules>
>> >
>> > </project>
>> >
>> > and when i build mvn clean install it is not creating deployable
>> installer
>> > .zip.
>> > Can anybody help me to give me right direction please.
>> >
>> > Thanks,
>> > chandra shekher gupta
>> > Infoaxon technologies limited.
>> >
>> >
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/create-HelloWorld-BC-tf3690773s12049.html#a10320474
>> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog: http://gnodet.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/create-HelloWorld-BC-tf3690773s12049.html#a10373496
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.


Re: Hi Jeff and Nodet

Posted by Guillaume Nodet <gn...@gmail.com>.
I would recommend you to read the User's Guide, mainly the JBI section at
  http://incubator.apache.org/servicemix/5-jbi.html
And take a look at http://incubator.apache.org/servicemix/support.html.
Sending very general questions is not the best way to get help as people
do not really understand what the exact problem is.


On 5/4/07, chandra shekher gupta <ch...@infoaxon.com> wrote:
>
>
> I am creating ServiceMix Binding component can you please clarify it.
>
> Is it write to create first
>
> BC then SE and in last SA?
>
> Please Help me..i am stuck for long time.
>
> Regards
> chandra
>
>
> chandra shekher gupta wrote:
> >
> > Hi eerybody,
> >
> > We are Planning to build middleware business suite using ServiceMix.
> > i recently started to explore servicemix(binary) and maven.
> >
> > I tried to follow Hello World BC tutoial.
> >
> > so first i created
> > * helloorld-bc
> > * helloorld-se
> > * helloorld-sa
> >
> > then i created pom.xml on top level
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <project xmlns="http://maven.apache.org/POM/4.0.0"
> >     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > http://maven.apache.org/maven-v4_0_0.xsd">
> >
> >   <modelVersion>4.0.0</modelVersion>
> >
> >   <groupId>org.apache.servicemix.samples.helloworld</groupId>
> >   <artifactId>chandra</artifactId>
> >   <packaging>pom</packaging>
> >   <version>1.0-SNAPSHOT</version>
> >   <name>Hello World JBI Component</name>
> >   <modules>
> >     <module>hello-world-sa</module>
> >     <module>hello-world-bc</module>
> >     <module>hello-world-su</module>
> >   </modules>
> >
> > </project>
> >
> > and when i build mvn clean install it is not creating deployable
> installer
> > .zip.
> > Can anybody help me to give me right direction please.
> >
> > Thanks,
> > chandra shekher gupta
> > Infoaxon technologies limited.
> >
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/create-HelloWorld-BC-tf3690773s12049.html#a10320474
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Hi Jeff and Nodet

Posted by chandra shekher gupta <ch...@infoaxon.com>.
I am creating ServiceMix Binding component can you please clarify it.

Is it write to create first

BC then SE and in last SA?

Please Help me..i am stuck for long time.

Regards
chandra


chandra shekher gupta wrote:
> 
> Hi eerybody,
> 
> We are Planning to build middleware business suite using ServiceMix.
> i recently started to explore servicemix(binary) and maven.
> 
> I tried to follow Hello World BC tutoial.
> 
> so first i created 
> * helloorld-bc
> * helloorld-se
> * helloorld-sa
> 
> then i created pom.xml on top level
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" 
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> 
>   <modelVersion>4.0.0</modelVersion>
> 
>   <groupId>org.apache.servicemix.samples.helloworld</groupId>
>   <artifactId>chandra</artifactId>
>   <packaging>pom</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>Hello World JBI Component</name>
>   <modules>
>     <module>hello-world-sa</module>
>     <module>hello-world-bc</module>
>     <module>hello-world-su</module>
>   </modules>
> 
> </project>
> 
> and when i build mvn clean install it is not creating deployable installer
> .zip.
> Can anybody help me to give me right direction please.
> 
> Thanks,
> chandra shekher gupta
> Infoaxon technologies limited.
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/create-HelloWorld-BC-tf3690773s12049.html#a10320474
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.


Re: create HelloWorld BC

Posted by Bruce Snyder <br...@gmail.com>.
On 5/8/07, chandra shekher gupta <ch...@infoaxon.com> wrote:
>
> Hi,
>
>
> I have created one binding component as provider.
> it  takes only string data in <hello>message</hello> and  return it.
> It is not calling service engine right now.
>
> this is my default xbean.xml file
>
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>        xmlns:replaceMe="http://servicemix.apache.org/replaceMe">
>
>   <http:endpoint service="replaceMe:withYourService"
>                  endpoint="soap"
>                  role="provider"
>                  locationURI="http://localhost:8192/example/"
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                  soap="true" />
>
> </beans>
>
>
> I have deployed the Binding component and service assembly in deploy of
> Smix.
> But i have not idea how to call the services.
>
> if i take the example of  MySpringComponentTest...
> {
>
>  me.setService(new QName("urn:test", "service"));
> me.getInMessage().setContent(new StringSource("<hello>Hi
> everybody</hello>"));
>         client.sendSync(me);
> }
>
>
> i understand above testing  code.
>
> now  please clarify my 2 points.
>
> 1. what changes i have to do xbean.xml?
> 2. how i can test it?

First things first, because these questions are about using
ServiceMix, this post should be on the users list.

Second, why exactly are you developing your own JBI compliant
component? Are you trying to support a protocol that is not already
supported by developing a BC? Are you wrapping another piece of
software as a SE?

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/

Re: create HelloWorld BC

Posted by chandra shekher gupta <ch...@infoaxon.com>.
Hi,


I have created one binding component as provider.
it  takes only string data in <hello>message</hello> and  return it.
It is not calling service engine right now.

this is my default xbean.xml file

<beans xmlns:http="http://servicemix.apache.org/http/1.0"
       xmlns:replaceMe="http://servicemix.apache.org/replaceMe">

  <http:endpoint service="replaceMe:withYourService"
                 endpoint="soap"
                 role="provider" 
                 locationURI="http://localhost:8192/example/"
                 defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
                 soap="true" />             

</beans>


I have deployed the Binding component and service assembly in deploy of
Smix.
But i have not idea how to call the services.

if i take the example of  MySpringComponentTest...
{

 me.setService(new QName("urn:test", "service"));
me.getInMessage().setContent(new StringSource("<hello>Hi 
everybody</hello>"));
        client.sendSync(me);
}


i understand above testing  code.

now  please clarify my 2 points.

1. what changes i have to do xbean.xml?
2. how i can test it?

regards
chandra






chandra shekher gupta wrote:
> 
> Hi eerybody,
> 
> We are Planning to build middleware business suite using ServiceMix.
> i recently started to explore servicemix(binary) and maven.
> 
> I tried to follow Hello World BC tutoial.
> 
> so first i created 
> * helloorld-bc
> * helloorld-se
> * helloorld-sa
> 
> then i created pom.xml on top level
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" 
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd">
> 
>   <modelVersion>4.0.0</modelVersion>
> 
>   <groupId>org.apache.servicemix.samples.helloworld</groupId>
>   <artifactId>chandra</artifactId>
>   <packaging>pom</packaging>
>   <version>1.0-SNAPSHOT</version>
>   <name>Hello World JBI Component</name>
>   <modules>
>     <module>hello-world-sa</module>
>     <module>hello-world-bc</module>
>     <module>hello-world-su</module>
>   </modules>
> 
> </project>
> 
> and when i build mvn clean install it is not creating deployable installer
> .zip.
> Can anybody help me to give me right direction please.
> 
> Thanks,
> chandra shekher gupta
> Infoaxon technologies limited.
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/create-HelloWorld-BC-tf3690773s12049.html#a10372273
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.