You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by gn...@apache.org on 2006/07/26 00:38:24 UTC

svn commit: r425543 - in /incubator/ode/scratch/pxe-iapi: ./ jbi-examples/src/examples/ jbi-examples/src/examples/AsyncProcess2/ jbi-install/src/etc/META-INF/ jbi/

Author: gnodet
Date: Tue Jul 25 15:38:23 2006
New Revision: 425543

URL: http://svn.apache.org/viewvc?rev=425543&view=rev
Log:
Use latest servicemix version.
Try to fix the jbi samples ...

Added:
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
Modified:
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
    incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml
    incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
    incubator/ode/scratch/pxe-iapi/jbi/pom.xml
    incubator/ode/scratch/pxe-iapi/pom.xml

Modified: incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml?rev=425543&r1=425542&r2=425543&view=diff
==============================================================================
--- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml (original)
+++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml Tue Jul 25 15:38:23 2006
@@ -1,4 +1,4 @@
-<project name="AsyncProcess2" default="sar"  >
+<project name="AsyncProcess2" default="jbi-sa"  >
 
   <import file="../example-build.xml" />
 

Added: incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml?rev=425543&view=auto
==============================================================================
--- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml (added)
+++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml Tue Jul 25 15:38:23 2006
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
+     
+   <service-assembly>
+     <identification>
+       <name>AsyncProcess2</name>
+       <description>AsyncProcess2 example</description>
+     </identification>
+     <service-unit>
+       <identification>
+         <name>AsyncProcess2</name>
+         <description>AsyncProcess2 Service Unit</description>
+       </identification>
+       <target>
+         <artifacts-zip>AsyncProcess2-Process.zip</artifacts-zip>
+         <component-name>PxeBpelEngine</component-name>
+       </target>
+     </service-unit>
+    </service-assembly>
+    
+</jbi>

Modified: incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml?rev=425543&r1=425542&r2=425543&view=diff
==============================================================================
--- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml (original)
+++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml Tue Jul 25 15:38:23 2006
@@ -20,6 +20,7 @@
     <property name="rrfilename" value="${ant.project.name}.rr" />
     <property name="wsdlfilename" value="${ant.project.name}.wsdl" />
     <property name="sufilename" value="${ant.project.name}-Process.zip" />
+    <property name="safilename" value="${ant.project.name}-sa.zip" />
     
     <property name="uri.wsdl" value="urn:/${ant.project.name}.wsdl" />
     <property name="url.bpel" value="file:${basedir}/${ant.project.name}.bpel" />
@@ -32,16 +33,18 @@
     <property name="cbpfile" location="${build.dir}/${cbpfilename}" />
     <property name="rrfile" location="${build.dir}/${rrfilename}" />
     <property name="sufile" location="${build.dir}/${sufilename}" />
+    <property name="safile" location="${build.dir}/${safilename}" />
 
     <target name="clean" description="Clean intermediate artifacts.">
         <delete dir="${build.dir}"/>
     </target>
 
 
-    <target name="jbi-sa" description="Generate JBI system assembly." depends="bpelc">
-        <!-- TODO
-        <antcall target="_sar" />
-        -->
+    <target name="jbi-sa" description="Generate JBI system assembly." depends="service-unit">
+        <zip destfile="${safile}">
+            <zipfileset file="${sufile}"/>
+            <zipfileset file="jbi.xml" prefix="META-INF"/>
+        </zip>
     </target>
 
     <target name="bpelc" description="Compile BPEL process." depends="rr">

Modified: incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml?rev=425543&r1=425542&r2=425543&view=diff
==============================================================================
--- incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml (original)
+++ incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml Tue Jul 25 15:38:23 2006
@@ -54,6 +54,7 @@
         <path-element>lib/cglib.jar</path-element>
         <path-element>lib/asm.jar</path-element>
         <path-element>lib/antlr.jar</path-element>
+        <path-element>lib/quartz.jar</path-element>
 
     </component-class-path>
     <bootstrap-class-name>com.fs.pxe.jbi.PxeBootstrap</bootstrap-class-name>

Modified: incubator/ode/scratch/pxe-iapi/jbi/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
==============================================================================
--- incubator/ode/scratch/pxe-iapi/jbi/pom.xml (original)
+++ incubator/ode/scratch/pxe-iapi/jbi/pom.xml Tue Jul 25 15:38:23 2006
@@ -29,7 +29,7 @@
             <artifactId>pxe-minerva</artifactId>
         </dependency>
         <dependency>
-            <groupId>incubator-servicemix</groupId>
+            <groupId>org.apache.servicemix</groupId>
             <artifactId>servicemix-jbi</artifactId>
         </dependency>
         <dependency>

Modified: incubator/ode/scratch/pxe-iapi/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
==============================================================================
--- incubator/ode/scratch/pxe-iapi/pom.xml (original)
+++ incubator/ode/scratch/pxe-iapi/pom.xml Tue Jul 25 15:38:23 2006
@@ -75,7 +75,7 @@
         <junitVersion>3.8.1</junitVersion>
         <log4jVersion>1.2.12</log4jVersion>
         <saxonVersion>8.4</saxonVersion>
-        <servicemixVersion>3.0-SNAPSHOT</servicemixVersion>
+        <servicemixVersion>3.0-incubating-SNAPSHOT</servicemixVersion>
         <staxApiVersion>1.0</staxApiVersion>
         <staxVersion>1.1.2-dev</staxVersion>
         <wsdl4jVersion>1.5.1</wsdl4jVersion>
@@ -681,7 +681,7 @@
                 <version>${geronimoSpecsVersion}</version>
             </dependency>
             <dependency>
-                <groupId>incubator-servicemix</groupId>
+                <groupId>org.apache.servicemix</groupId>
                 <artifactId>servicemix-jbi</artifactId>
                 <version>${servicemixVersion}</version>
             </dependency>



Re: Ode jbi-examples

Posted by Alex Boisvert <bo...@intalio.com>.
Hi Guillaume,

No problem about the jbi-examples, I'm happy to see we're working in the 
same direction!

Guillaume Nodet wrote:
> This leads me to several questions / remarks.
>  * does the current jbi component expect a wsdl 1.1 wrapped message as
> defined in the spec ?
We currently have a ServiceMix-specific adapter class (*) that expects 
the content of the SOAP:Body directly in the message.  I'm hoping move 
everything to WSDL 1.1-wrapped messages soon and have been working on a 
patch for ServiceMix to do just that.   We'll see if I can get it done 
before I leave for vacation next week!

(*) 
http://svn.apache.org/repos/asf/incubator/ode/scratch/pxe-iapi/jbi/src/main/java/com/fs/pxe/jbi/msgmap/ServiceMixMapper.java

>  * i have fixed SM-488, will you be able to check that ?

Yes, I will.  The changes you made looked good.  

>  * from a JBI pov, it would be easier to use WSDL 2 (which would avoid 
> the
> need to wrap the message)
I'm not sure it would be easier and I'm not sure it would really avoid 
the need to wrap the message because we still need to map some headers 
into the message content for some use-cases where processes want to 
access protocol headers.  And I don't know exactly what it would look 
like (see comment below) since the WSDL 2.0 meta-meta-meta-model still 
eludes me.

>     Would it be theorically possible to support it ? I know that bpel is
> defined on wsdl 1.1, so i'm not sure if it would be possible to use 
> wsdl 2
Yes, from what I hear it's theoricaly feasible but I don't know what the 
message should/would look like.  I believe there would be no message 
parts and the whole message would be described with (assumingly) 
XSchema.  Maybe Assaf can comment?

>  * when a bpel process send a jbi exchange, it seems you have to 
> completely
> define the target jbi endpoint
>     in the deployment descriptor.  I think it should be enhanced to 
> support
> only the service name or an
>     interface name (which would be the port type name defined in the 
> wsdl)
>     We could also use URIs ( see
> http://servicemix.goopen.org/site/uris.html) which leverage JBI external
> endpoint
>     resolution.
Yes, I've been meaning to support only service name or only interface 
name after I get the basic examples working.   Same for external 
endpoints, PXE should be able to resolve just about any EPRs given to it.

alex


Re: Ode jbi-examples

Posted by Guillaume Nodet <gn...@gmail.com>.
Another point.

I think it would be usefull for JBI users to not have to download the full
distribution to create a service unit for the JBI component.  This is
currently not possible because the ant scripts require the bpel engine
jars.  I think it would be better (in the future) to:
  * allow deploying a bpel with the associated wsdl directly as the service
unit
      the component should easily compile them at deployment time (as it
already has all the needed
      jars) and give the compiled form the bpel engine
  * or write a maven 2 plugin which would compile the bpel process (thus the
user does not have to
       install anything, just reference the maven plugin).

Cheers,
Guillaume Nodet


On 7/26/06, Alex Boisvert <bo...@intalio.com> wrote:
>
>
> Yes, thanks for pointing this out.  For the sake of expediency, I went
> straight with Ant since I needed to integrate with PXE ant tasks to
> compile processes and the sendsoap ant task for testing.
>
> I'm planning to package the example build scripts and example artifacts
> with Maven2 such that they are all available when downloading Ode in the
> future.  That way, people downloading the distribution could play with
> the examples, change the BPEL/WSDL files, run ant and easily deploy and
> test the resulting service assembly.
>
> alex
>
>
> Guillaume Nodet wrote:
> > Btw, servicemix has a maven plugin to help the creation and packaging
> > of jbi
> > components,
> > service assemblies and service units (auto-generation of the jbi.xml
> > file of
> > the service
> > assembly, etc..).  This maven plugin does not tie the artifacts to
> > ServiceMix in any way,
> > so it may be useful for the examples and / or the component.
> > But it seems everything is nearly finished, so ...
> >
> > Cheers,
> > Guillaume Nodet
>
>

Re: Ode jbi-examples

Posted by Alex Boisvert <bo...@intalio.com>.
Yes, thanks for pointing this out.  For the sake of expediency, I went 
straight with Ant since I needed to integrate with PXE ant tasks to 
compile processes and the sendsoap ant task for testing.  

I'm planning to package the example build scripts and example artifacts 
with Maven2 such that they are all available when downloading Ode in the 
future.  That way, people downloading the distribution could play with 
the examples, change the BPEL/WSDL files, run ant and easily deploy and 
test the resulting service assembly.

alex


Guillaume Nodet wrote:
> Btw, servicemix has a maven plugin to help the creation and packaging 
> of jbi
> components,
> service assemblies and service units (auto-generation of the jbi.xml 
> file of
> the service
> assembly, etc..).  This maven plugin does not tie the artifacts to
> ServiceMix in any way,
> so it may be useful for the examples and / or the component.
> But it seems everything is nearly finished, so ...
>
> Cheers,
> Guillaume Nodet


Re: Ode jbi-examples

Posted by Guillaume Nodet <gn...@gmail.com>.
Btw, servicemix has a maven plugin to help the creation and packaging of jbi
components,
service assemblies and service units (auto-generation of the jbi.xml file of
the service
assembly, etc..).  This maven plugin does not tie the artifacts to
ServiceMix in any way,
so it may be useful for the examples and / or the component.
But it seems everything is nearly finished, so ...

Cheers,
Guillaume Nodet

On 7/26/06, Guillaume Nodet <gn...@gmail.com> wrote:
>
>
>
> On 7/26/06, Alex Boisvert <bo...@intalio.com> wrote:
> >
> >
> > Hi Guillaume,
> >
> > Just saw your change and I'm wondering what version of PXE you're using
>
>
> The one I have checked in changes in.
>
> because AsyncProcess2 need a few more changes to get working with the
> > pxe-iapi branch.
>
>
> Yeah, I have been able to deploy the service assembly successfully, but
> nothing happened.
>
> I'm actually in the process of updating all JBI examples so I want to
> > make sure I'm not stepping on your toes ;)
>
>
> I have seen that the jbi component has been updated and i just wanted to
> take a look.
> Instead of discarding my changes, i have committed them.
> Sorry, i guess I am stepping on your toes ;)
> Feel free to discard my changes.
>
> I've updated the instructions at
> > http://pxe.intalio.org/confluence/display/PXE/JBI+Deployment
>
>
> This leads me to several questions / remarks.
>   * does the current jbi component expect a wsdl 1.1 wrapped message as
> defined in the spec ?
>   * i have fixed SM-488, will you be able to check that ?
>   * from a JBI pov, it would be easier to use WSDL 2 (which would avoid
> the need to wrap the message)
>      Would it be theorically possible to support it ? I know that bpel is
> defined on wsdl 1.1, so i'm not
>      sure if it would be possible to use wsdl 2
>   * when a bpel process send a jbi exchange, it seems you have to
> completely define the target jbi endpoint
>      in the deployment descriptor.  I think it should be enhanced to
> support only the service name or an
>      interface name (which would be the port type name defined in the
> wsdl)
>      We could also use URIs ( see
> http://servicemix.goopen.org/site/uris.html) which leverage JBI external
> endpoint
>      resolution.
>
> and the PingPong example is known to work with the latest ServiceMix
> > snapshot.
>
>
> Cool, I will try this one.
>
> Cheers,
> Guillaume Nodet
>
> Now I need to review HelloWorld2 and AsyncProcess2.
> >
> > alex
> >
> >
> > gnodet@apache.org wrote:
> > > Author: gnodet
> > > Date: Tue Jul 25 15:38:23 2006
> > > New Revision: 425543
> > >
> > > URL: http://svn.apache.org/viewvc?rev=425543&view=rev
> > > Log:
> > > Use latest servicemix version.
> > > Try to fix the jbi samples ...
> > >
> > > Added:
> > >
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> > > Modified:
> > >
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> >
> > >     incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-
> > build.xml
> > >
> > incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> > >     incubator/ode/scratch/pxe-iapi/jbi/pom.xml
> > >     incubator/ode/scratch/pxe-iapi/pom.xml
> > >
> > > Modified:
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> > > URL:
> > http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml?rev=425543&r1=425542&r2=425543&view=diff
> > >
> > ==============================================================================
> >
> > > ---
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> > (original)
> > > +++
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> > Tue Jul 25 15:38:23 2006
> > > @@ -1,4 +1,4 @@
> > > -<project name="AsyncProcess2" default="sar"  >
> > > +<project name="AsyncProcess2" default="jbi-sa"  >
> > >
> > >    <import file="../example- build.xml" />
> > >
> > >
> > > Added:
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> > > URL:
> > http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml?rev=425543&view=auto
> > >
> > ==============================================================================
> >
> > > ---
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> > (added)
> > > +++
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> > Tue Jul 25 15:38:23 2006
> > > @@ -0,0 +1,21 @@
> > > +<?xml version="1.0" encoding="UTF-8"?>
> > > +<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
> > > +
> > > +   <service-assembly>
> > > +     <identification>
> > > +       <name>AsyncProcess2</name>
> > > +       <description>AsyncProcess2 example</description>
> > > +     </identification>
> > > +     <service-unit>
> > > +       <identification>
> > > +         <name>AsyncProcess2</name>
> > > +         <description>AsyncProcess2 Service Unit</description>
> > > +       </identification>
> > > +       <target>
> > > +         <artifacts-zip>AsyncProcess2-Process.zip</artifacts-zip>
> > > +         <component-name>PxeBpelEngine</component-name>
> > > +       </target>
> > > +     </service-unit>
> > > +    </service-assembly>
> > > +
> > > +</jbi>
> > >
> > > Modified:
> > incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-
> > build.xml
> > > URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> > >
> > ==============================================================================
> > > --- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-
> > build.xml (original)
> > > +++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-
> > build.xml Tue Jul 25 15:38:23 2006
> > > @@ -20,6 +20,7 @@
> > >      <property name="rrfilename" value="${ant.project.name}.rr" />
> > >      <property name="wsdlfilename" value="${ ant.project.name}.wsdl"
> > />
> > >      <property name="sufilename" value="${ant.project.name}-
> > Process.zip" />
> > > +    <property name="safilename" value="${ant.project.name}-sa.zip" />
> > >
> > >      <property name="uri.wsdl" value="urn:/${ ant.project.name}.wsdl"
> > />
> > >      <property name="url.bpel" value="file:${basedir}/${
> > ant.project.name}.bpel" />
> > > @@ -32,16 +33,18 @@
> > >      <property name="cbpfile" location="${build.dir}/${cbpfilename}"
> > />
> > >      <property name="rrfile" location="${build.dir}/${rrfilename}" />
> > >      <property name="sufile" location="${ build.dir}/${sufilename}" />
> > > +    <property name="safile" location="${build.dir}/${safilename}" />
> > >
> > >      <target name="clean" description="Clean intermediate artifacts.">
> >
> > >          <delete dir="${build.dir}"/>
> > >      </target>
> > >
> > >
> > > -    <target name="jbi-sa" description="Generate JBI system assembly."
> > depends="bpelc">
> > > -        <!-- TODO
> > > -        <antcall target="_sar" />
> > > -        -->
> > > +    <target name="jbi-sa" description="Generate JBI system assembly."
> > depends="service-unit">
> > > +        <zip destfile="${safile}">
> > > +            <zipfileset file="${sufile}"/>
> > > +            <zipfileset file="jbi.xml" prefix="META-INF"/>
> > > +        </zip>
> > >      </target>
> > >
> > >      <target name="bpelc" description="Compile BPEL process."
> > depends="rr">
> > >
> > > Modified:
> > incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> > > URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> > >
> > ==============================================================================
> > > ---
> > incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> > (original)
> > > +++
> > incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml Tue Jul
> > 25 15:38:23 2006
> > > @@ -54,6 +54,7 @@
> > >          <path-element>lib/cglib.jar</path-element>
> > >          <path-element>lib/asm.jar</path-element>
> > >          <path-element>lib/antlr.jar</path-element>
> > > +        <path-element>lib/quartz.jar</path-element>
> > >
> > >      </component-class-path>
> > >      <bootstrap-class-name>com.fs.pxe.jbi.PxeBootstrap</bootstrap-class-name>
> >
> > >
> > > Modified: incubator/ode/scratch/pxe-iapi/jbi/pom.xml
> > > URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> > >
> > ==============================================================================
> > > --- incubator/ode/scratch/pxe-iapi/jbi/pom.xml (original)
> > > +++ incubator/ode/scratch/pxe-iapi/jbi/pom.xml Tue Jul 25 15:38:23
> > 2006
> > > @@ -29,7 +29,7 @@
> > >              <artifactId>pxe-minerva</artifactId>
> > >          </dependency>
> > >          <dependency>
> > > -            <groupId>incubator-servicemix</groupId>
> > > +            <groupId>org.apache.servicemix</groupId>
> > >              <artifactId>servicemix-jbi</artifactId>
> > >          </dependency>
> > >          <dependency>
> > >
> > > Modified: incubator/ode/scratch/pxe-iapi/pom.xml
> > > URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> > >
> > ==============================================================================
> > > --- incubator/ode/scratch/pxe-iapi/pom.xml (original)
> > > +++ incubator/ode/scratch/pxe-iapi/pom.xml Tue Jul 25 15:38:23 2006
> > > @@ -75,7 +75,7 @@
> > >          <junitVersion>3.8.1</junitVersion>
> > >          <log4jVersion>1.2.12</log4jVersion>
> > >          <saxonVersion>8.4</saxonVersion>
> > > -        <servicemixVersion>3.0-SNAPSHOT</servicemixVersion>
> > > +        <servicemixVersion>3.0-incubating-SNAPSHOT
> > </servicemixVersion>
> > >          <staxApiVersion>1.0</staxApiVersion>
> > >          <staxVersion>1.1.2-dev</staxVersion>
> > >          <wsdl4jVersion>1.5.1</wsdl4jVersion>
> > > @@ -681,7 +681,7 @@
> > >                  <version>${geronimoSpecsVersion}</version>
> > >              </dependency>
> > >              <dependency>
> > > -                <groupId>incubator-servicemix</groupId>
> > > +                <groupId>org.apache.servicemix</groupId>
> > >                  <artifactId>servicemix-jbi</artifactId>
> > >                  <version>${servicemixVersion}</version>
> > >              </dependency>
> > >
> > >
> > >
> > >
> >
> >
>

Re: Ode jbi-examples

Posted by Guillaume Nodet <gn...@gmail.com>.
On 7/26/06, Alex Boisvert <bo...@intalio.com> wrote:
>
>
> Hi Guillaume,
>
> Just saw your change and I'm wondering what version of PXE you're using


The one I have checked in changes in.

because AsyncProcess2 need a few more changes to get working with the
> pxe-iapi branch.


Yeah, I have been able to deploy the service assembly successfully, but
nothing happened.

I'm actually in the process of updating all JBI examples so I want to
> make sure I'm not stepping on your toes ;)


I have seen that the jbi component has been updated and i just wanted to
take a look.
Instead of discarding my changes, i have committed them.
Sorry, i guess I am stepping on your toes ;)
Feel free to discard my changes.

I've updated the instructions at
> http://pxe.intalio.org/confluence/display/PXE/JBI+Deployment


This leads me to several questions / remarks.
  * does the current jbi component expect a wsdl 1.1 wrapped message as
defined in the spec ?
  * i have fixed SM-488, will you be able to check that ?
  * from a JBI pov, it would be easier to use WSDL 2 (which would avoid the
need to wrap the message)
     Would it be theorically possible to support it ? I know that bpel is
defined on wsdl 1.1, so i'm not
     sure if it would be possible to use wsdl 2
  * when a bpel process send a jbi exchange, it seems you have to completely
define the target jbi endpoint
     in the deployment descriptor.  I think it should be enhanced to support
only the service name or an
     interface name (which would be the port type name defined in the wsdl)
     We could also use URIs ( see
http://servicemix.goopen.org/site/uris.html) which leverage JBI external
endpoint
     resolution.

and the PingPong example is known to work with the latest ServiceMix
> snapshot.


Cool, I will try this one.

Cheers,
Guillaume Nodet

Now I need to review HelloWorld2 and AsyncProcess2.
>
> alex
>
>
> gnodet@apache.org wrote:
> > Author: gnodet
> > Date: Tue Jul 25 15:38:23 2006
> > New Revision: 425543
> >
> > URL: http://svn.apache.org/viewvc?rev=425543&view=rev
> > Log:
> > Use latest servicemix version.
> > Try to fix the jbi samples ...
> >
> > Added:
> >
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> > Modified:
> >
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> >     incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-
> build.xml
> >     incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> >     incubator/ode/scratch/pxe-iapi/jbi/pom.xml
> >     incubator/ode/scratch/pxe-iapi/pom.xml
> >
> > Modified:
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> > URL:
> http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> ==============================================================================
> > ---
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> (original)
> > +++
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> Tue Jul 25 15:38:23 2006
> > @@ -1,4 +1,4 @@
> > -<project name="AsyncProcess2" default="sar"  >
> > +<project name="AsyncProcess2" default="jbi-sa"  >
> >
> >    <import file="../example-build.xml" />
> >
> >
> > Added:
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> > URL:
> http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml?rev=425543&view=auto
> >
> ==============================================================================
> > ---
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> (added)
> > +++
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> Tue Jul 25 15:38:23 2006
> > @@ -0,0 +1,21 @@
> > +<?xml version="1.0" encoding="UTF-8"?>
> > +<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
> > +
> > +   <service-assembly>
> > +     <identification>
> > +       <name>AsyncProcess2</name>
> > +       <description>AsyncProcess2 example</description>
> > +     </identification>
> > +     <service-unit>
> > +       <identification>
> > +         <name>AsyncProcess2</name>
> > +         <description>AsyncProcess2 Service Unit</description>
> > +       </identification>
> > +       <target>
> > +         <artifacts-zip>AsyncProcess2-Process.zip</artifacts-zip>
> > +         <component-name>PxeBpelEngine</component-name>
> > +       </target>
> > +     </service-unit>
> > +    </service-assembly>
> > +
> > +</jbi>
> >
> > Modified:
> incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml
> > URL:
> http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> ==============================================================================
> > --- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-
> build.xml (original)
> > +++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-
> build.xml Tue Jul 25 15:38:23 2006
> > @@ -20,6 +20,7 @@
> >      <property name="rrfilename" value="${ant.project.name}.rr" />
> >      <property name="wsdlfilename" value="${ant.project.name}.wsdl" />
> >      <property name="sufilename" value="${ant.project.name}-Process.zip"
> />
> > +    <property name="safilename" value="${ant.project.name}-sa.zip" />
> >
> >      <property name="uri.wsdl" value="urn:/${ant.project.name}.wsdl" />
> >      <property name="url.bpel" value="file:${basedir}/${ant.project.name}.bpel"
> />
> > @@ -32,16 +33,18 @@
> >      <property name="cbpfile" location="${build.dir}/${cbpfilename}" />
> >      <property name="rrfile" location="${build.dir}/${rrfilename}" />
> >      <property name="sufile" location="${build.dir}/${sufilename}" />
> > +    <property name="safile" location="${build.dir}/${safilename}" />
> >
> >      <target name="clean" description="Clean intermediate artifacts.">
> >          <delete dir="${build.dir}"/>
> >      </target>
> >
> >
> > -    <target name="jbi-sa" description="Generate JBI system assembly."
> depends="bpelc">
> > -        <!-- TODO
> > -        <antcall target="_sar" />
> > -        -->
> > +    <target name="jbi-sa" description="Generate JBI system assembly."
> depends="service-unit">
> > +        <zip destfile="${safile}">
> > +            <zipfileset file="${sufile}"/>
> > +            <zipfileset file="jbi.xml" prefix="META-INF"/>
> > +        </zip>
> >      </target>
> >
> >      <target name="bpelc" description="Compile BPEL process."
> depends="rr">
> >
> > Modified:
> incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> > URL:
> http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> ==============================================================================
> > --- incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> (original)
> > +++ incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> Tue Jul 25 15:38:23 2006
> > @@ -54,6 +54,7 @@
> >          <path-element>lib/cglib.jar</path-element>
> >          <path-element>lib/asm.jar</path-element>
> >          <path-element>lib/antlr.jar</path-element>
> > +        <path-element>lib/quartz.jar</path-element>
> >
> >      </component-class-path>
> >      <bootstrap-class-name>com.fs.pxe.jbi.PxeBootstrap
> </bootstrap-class-name>
> >
> > Modified: incubator/ode/scratch/pxe-iapi/jbi/pom.xml
> > URL:
> http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> ==============================================================================
> > --- incubator/ode/scratch/pxe-iapi/jbi/pom.xml (original)
> > +++ incubator/ode/scratch/pxe-iapi/jbi/pom.xml Tue Jul 25 15:38:23 2006
> > @@ -29,7 +29,7 @@
> >              <artifactId>pxe-minerva</artifactId>
> >          </dependency>
> >          <dependency>
> > -            <groupId>incubator-servicemix</groupId>
> > +            <groupId>org.apache.servicemix</groupId>
> >              <artifactId>servicemix-jbi</artifactId>
> >          </dependency>
> >          <dependency>
> >
> > Modified: incubator/ode/scratch/pxe-iapi/pom.xml
> > URL:
> http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
> >
> ==============================================================================
> > --- incubator/ode/scratch/pxe-iapi/pom.xml (original)
> > +++ incubator/ode/scratch/pxe-iapi/pom.xml Tue Jul 25 15:38:23 2006
> > @@ -75,7 +75,7 @@
> >          <junitVersion>3.8.1</junitVersion>
> >          <log4jVersion>1.2.12</log4jVersion>
> >          <saxonVersion>8.4</saxonVersion>
> > -        <servicemixVersion>3.0-SNAPSHOT</servicemixVersion>
> > +        <servicemixVersion>3.0-incubating-SNAPSHOT</servicemixVersion>
> >          <staxApiVersion>1.0</staxApiVersion>
> >          <staxVersion>1.1.2-dev</staxVersion>
> >          <wsdl4jVersion>1.5.1</wsdl4jVersion>
> > @@ -681,7 +681,7 @@
> >                  <version>${geronimoSpecsVersion}</version>
> >              </dependency>
> >              <dependency>
> > -                <groupId>incubator-servicemix</groupId>
> > +                <groupId>org.apache.servicemix</groupId>
> >                  <artifactId>servicemix-jbi</artifactId>
> >                  <version>${servicemixVersion}</version>
> >              </dependency>
> >
> >
> >
> >
>
>

Re: Ode jbi-examples

Posted by Alex Boisvert <bo...@intalio.com>.
Hi Guillaume,

Just saw your change and I'm wondering what version of PXE you're using 
because AsyncProcess2 need a few more changes to get working with the 
pxe-iapi branch.

I'm actually in the process of updating all JBI examples so I want to 
make sure I'm not stepping on your toes ;)

I've updated the instructions at 
http://pxe.intalio.org/confluence/display/PXE/JBI+Deployment
and the PingPong example is known to work with the latest ServiceMix 
snapshot.

Now I need to review HelloWorld2 and AsyncProcess2.

alex


gnodet@apache.org wrote:
> Author: gnodet
> Date: Tue Jul 25 15:38:23 2006
> New Revision: 425543
>
> URL: http://svn.apache.org/viewvc?rev=425543&view=rev
> Log:
> Use latest servicemix version.
> Try to fix the jbi samples ...
>
> Added:
>     incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> Modified:
>     incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
>     incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml
>     incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
>     incubator/ode/scratch/pxe-iapi/jbi/pom.xml
>     incubator/ode/scratch/pxe-iapi/pom.xml
>
> Modified: incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml
> URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml?rev=425543&r1=425542&r2=425543&view=diff
> ==============================================================================
> --- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml (original)
> +++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/build.xml Tue Jul 25 15:38:23 2006
> @@ -1,4 +1,4 @@
> -<project name="AsyncProcess2" default="sar"  >
> +<project name="AsyncProcess2" default="jbi-sa"  >
>  
>    <import file="../example-build.xml" />
>  
>
> Added: incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml
> URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml?rev=425543&view=auto
> ==============================================================================
> --- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml (added)
> +++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/AsyncProcess2/jbi.xml Tue Jul 25 15:38:23 2006
> @@ -0,0 +1,21 @@
> +<?xml version="1.0" encoding="UTF-8"?>
> +<jbi xmlns="http://java.sun.com/xml/ns/jbi" version="1.0">
> +     
> +   <service-assembly>
> +     <identification>
> +       <name>AsyncProcess2</name>
> +       <description>AsyncProcess2 example</description>
> +     </identification>
> +     <service-unit>
> +       <identification>
> +         <name>AsyncProcess2</name>
> +         <description>AsyncProcess2 Service Unit</description>
> +       </identification>
> +       <target>
> +         <artifacts-zip>AsyncProcess2-Process.zip</artifacts-zip>
> +         <component-name>PxeBpelEngine</component-name>
> +       </target>
> +     </service-unit>
> +    </service-assembly>
> +    
> +</jbi>
>
> Modified: incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml
> URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml?rev=425543&r1=425542&r2=425543&view=diff
> ==============================================================================
> --- incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml (original)
> +++ incubator/ode/scratch/pxe-iapi/jbi-examples/src/examples/example-build.xml Tue Jul 25 15:38:23 2006
> @@ -20,6 +20,7 @@
>      <property name="rrfilename" value="${ant.project.name}.rr" />
>      <property name="wsdlfilename" value="${ant.project.name}.wsdl" />
>      <property name="sufilename" value="${ant.project.name}-Process.zip" />
> +    <property name="safilename" value="${ant.project.name}-sa.zip" />
>      
>      <property name="uri.wsdl" value="urn:/${ant.project.name}.wsdl" />
>      <property name="url.bpel" value="file:${basedir}/${ant.project.name}.bpel" />
> @@ -32,16 +33,18 @@
>      <property name="cbpfile" location="${build.dir}/${cbpfilename}" />
>      <property name="rrfile" location="${build.dir}/${rrfilename}" />
>      <property name="sufile" location="${build.dir}/${sufilename}" />
> +    <property name="safile" location="${build.dir}/${safilename}" />
>  
>      <target name="clean" description="Clean intermediate artifacts.">
>          <delete dir="${build.dir}"/>
>      </target>
>  
>  
> -    <target name="jbi-sa" description="Generate JBI system assembly." depends="bpelc">
> -        <!-- TODO
> -        <antcall target="_sar" />
> -        -->
> +    <target name="jbi-sa" description="Generate JBI system assembly." depends="service-unit">
> +        <zip destfile="${safile}">
> +            <zipfileset file="${sufile}"/>
> +            <zipfileset file="jbi.xml" prefix="META-INF"/>
> +        </zip>
>      </target>
>  
>      <target name="bpelc" description="Compile BPEL process." depends="rr">
>
> Modified: incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml
> URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml?rev=425543&r1=425542&r2=425543&view=diff
> ==============================================================================
> --- incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml (original)
> +++ incubator/ode/scratch/pxe-iapi/jbi-install/src/etc/META-INF/jbi.xml Tue Jul 25 15:38:23 2006
> @@ -54,6 +54,7 @@
>          <path-element>lib/cglib.jar</path-element>
>          <path-element>lib/asm.jar</path-element>
>          <path-element>lib/antlr.jar</path-element>
> +        <path-element>lib/quartz.jar</path-element>
>  
>      </component-class-path>
>      <bootstrap-class-name>com.fs.pxe.jbi.PxeBootstrap</bootstrap-class-name>
>
> Modified: incubator/ode/scratch/pxe-iapi/jbi/pom.xml
> URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/jbi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
> ==============================================================================
> --- incubator/ode/scratch/pxe-iapi/jbi/pom.xml (original)
> +++ incubator/ode/scratch/pxe-iapi/jbi/pom.xml Tue Jul 25 15:38:23 2006
> @@ -29,7 +29,7 @@
>              <artifactId>pxe-minerva</artifactId>
>          </dependency>
>          <dependency>
> -            <groupId>incubator-servicemix</groupId>
> +            <groupId>org.apache.servicemix</groupId>
>              <artifactId>servicemix-jbi</artifactId>
>          </dependency>
>          <dependency>
>
> Modified: incubator/ode/scratch/pxe-iapi/pom.xml
> URL: http://svn.apache.org/viewvc/incubator/ode/scratch/pxe-iapi/pom.xml?rev=425543&r1=425542&r2=425543&view=diff
> ==============================================================================
> --- incubator/ode/scratch/pxe-iapi/pom.xml (original)
> +++ incubator/ode/scratch/pxe-iapi/pom.xml Tue Jul 25 15:38:23 2006
> @@ -75,7 +75,7 @@
>          <junitVersion>3.8.1</junitVersion>
>          <log4jVersion>1.2.12</log4jVersion>
>          <saxonVersion>8.4</saxonVersion>
> -        <servicemixVersion>3.0-SNAPSHOT</servicemixVersion>
> +        <servicemixVersion>3.0-incubating-SNAPSHOT</servicemixVersion>
>          <staxApiVersion>1.0</staxApiVersion>
>          <staxVersion>1.1.2-dev</staxVersion>
>          <wsdl4jVersion>1.5.1</wsdl4jVersion>
> @@ -681,7 +681,7 @@
>                  <version>${geronimoSpecsVersion}</version>
>              </dependency>
>              <dependency>
> -                <groupId>incubator-servicemix</groupId>
> +                <groupId>org.apache.servicemix</groupId>
>                  <artifactId>servicemix-jbi</artifactId>
>                  <version>${servicemixVersion}</version>
>              </dependency>
>
>
>
>