Index Changes

Difference between version and version     

Back to POJO 4 JBI Sample POJO 2 BPEL, or POJO 4 JBI Sample POJO 2 BPEL Info


At line 4 changed 1 line.
[Return to POJO SE tutorials Page | POJOSETutorials]
\\[Return to POJO SE tutorials Page | POJOSETutorials]
At line 6 changed 3 lines.
!!!Echo Service - POJO calling BPEL process.
In this tutorial we will develop simple POJO service/endpoint which invokes BPEL process synchronously.
\\This tutorial will show what annotations are used in order for POJO to consume a service/JBI Endpoint.
%%(text-align:left;)
!!!Echo Service - POJO calling BPEL process
In this tutorial we will develop simple POJO service/endpoint which invokes BPEL process synchronously. This tutorial will show
\\what annotations are used in order for POJO to consume a service/JBI Endpoint.
At line 10 changed 2 lines.
\\We will create a Composite Application so that Http SOAP BC will be used to invoke POJO service, which in turn synchronously invokes BPEL process. We will also use Composite Application project's tester to test our endpoint.
\\We will create a Composite Application so that Http SOAP BC will be used to invoke POJO service, which in turn synchronously
\\invokes BPEL process. We will also use Composite Application project's tester to test our endpoint.
\\
\\Since originally written, some of the API classes have changed, but in most part this sample/tutorial should work. You can find more details of API changes [here|POJOServiceEngineUserGuide] and [here|POJOSE_DeprecatedAPI].
\\
At line 15 changed 1 line.
* [POJO Service Engine| http://download.java.net/jbi/binaries/open-jbi-components/main/nightly/latest/ojc/]
* [POJO Service Engine| http://download.java.net/maven/open-jbi-components/pojose-installer/2.7-SNAPSHOT/pojose-installer-2.7-20091111.215734-85.jar]
At line 88 removed 3 lines.
\\Note stub code is "sendSynch" code is created for you.
\\Also instance member for POJOContext and ServiceEndpoint created for you. These objects will be
injected during runtime before operation method is invoked by POJO SE.
At line 96 added 1 line.
\\
At line 100 added 10 lines.
\\
\\
Palette action dialog allows you to directly enter Interface QName which is same as WSDL PortType name. Since most of the
\\JBI components need WSDL Operation QName and WSDL operation input message type, you may enter it here, so that it will
\\be populated into appropriate annotation. Or you can select WSDL from file system or URL, dialog will read the WSDL
\\and populate all the values needed for you.
\\
\\
\\
\\
At line 113 added 23 lines.
\\
\\
Note stub code is "sendSynch" code is created for you. Also instance member for POJOContext and ServiceEndpoint created for you.
\\These objects will be injected during runtime before operation method is invoked by POJO SE.
\\
\\
\\
You may want to tweak the generated code as below.
{{{
String inputMessage = input;
try {
String outputMsg = (String) ctx.sendSynchInOut(sep1, inputMessage, POJOContext.MessageObjectType.String);
return "Hello from POJO: " + outputMsg;
} catch (Exception ex) {
ex.printStackTrace();
}
return "Hello from POJO: " + input;
}}}
\\
\\
\\
\\
At line 125 changed 2 lines.
Clean and build the composite application project. Notice the connections.
Create a "soap" port to linked to POJO SE endpoint, so that it will allow us to trigger POJO endpoint from HTTP SOAP BC.
Clean and build the composite application project. Notice the connections. Create a "soap" port to linked to POJO SE endpoint,
\\so that it will allow us to trigger POJO endpoint from HTTP SOAP BC.
At line 136 changed 1 line.
Make sure composite application project "clean and build"s correctly and POJO Service Engine is installed and running in Glassfish server.
Make sure composite application project "clean and build"s correctly and POJO Service Engine is installed and running
\\in Glassfish server.
At line 146 changed 2 lines.
Create a test in composite application project using Http SOAP BC port/WSDL created in composite application project.
Run the test, notice the output confirming the call being made to BPEL process via POJO Service Engine.
Create a test in composite application project using Http SOAP BC port/WSDL created in composite application project. Run the test,
\\notice the output confirming the call being made to BPEL process via POJO Service Engine.
At line 160 changed 1 line.
\\
\\[Return to the top | POJO4JBISamplePOJO2BPEL#EchoServicePOJOCallingBPELProcess]
\\[Return to POJO SE Page | POJOSE]
\\[Return to POJO SE tutorials Page | POJOSETutorials]
%%(text-align:justify;)
%%(text-align:left;)
%%
%%
%%

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-13) was last changed on 12-Nov-09 14:21 PM, -0800 by GirishPatil