Posted by: Waqas Noor on: May 16, 2009
Sometime we need to execute java code within BPEL Process, One possibility is to write java code within BPEL Process by using tag. WSIF is another way to do same thing. In this document, I will not compare these two ways to access the Java Code but the way to use the WSIF.
In this document we will do the following things:
• Create the Java Classes, and exposed as J2EE Web Services (details are in later part of document).
• Invoke the Web Services (Java Class as Web Services) from BPEL Process.
• Place classes somewhere such that classes available at runtime
Java Code as Web Service:
Create java classes which you want to expose as Web Service. In my case, I have created two classes “Greeting.java” and “Person.java”. To create the web service, right click on class and click on “create J2EE Web Service”.
The new dialogue box open as shown in figure below, select the “SOAP 1.1 Binding” and “WSIF Binding”.

After selecting the options mentioned above, click “Weiter(Next)”, then new dialogue box opens, where you can select the type of Message Format as shown in figure below.

After selecting the Message format type, click on “Weiter” and keep pressing next (All defaults options) until finish.
BPEL Process:
Create the empty BPEL Process as shown in figure.

Create Partner Link
Create the partner link and give the reference of WSDL created from Java Code. Select the Role Type as shown in figure.

While creating the Partner link, BPEL process ask for creating the local copy of WSDL, Click Yes (Ja) as shown in figure.

After clicking on Yes (Ja), it will ask for Creating partner link as shown in figure. Click on Yes (Ja).

Now you are ready with the Partner Link. The next step is to invoke the service
Invoking WSIF
Select the Invoke component and then select the desired operation and input/output variables as shown in figure. In my case, “testInit” is operation.

Now you are ready to use the WSIF, the final BPEL Process looks a like

Deployment of Java Classes:
Firstly we have to deploy the BPEL Process along with the WSDL which describes the Java class as web service. BPEL Process requires classes which are referenced by WSIF at runtime, so one way is to place the class files at ORACLE_HOME/bpel/system/classes directory.
Hope it helps…
Posted by: Waqas Noor on: May 3, 2009
Hi,
Being a art lover and during my visit to home, i came across such a beautiful handmade items that i can not imagine. I bought some pieces for home and i hope you also like it. Here are some picture of pieces which i liked most.
Note: If you are interested to buy any of these items at reasonable price, let me know. I will guide you rest of the things. These are no doubt worthless things.
Posted by: Waqas Noor on: February 14, 2009
Today, my Blog has first birthday. I remembered correctly that last year i was free and i came up the idea to have a small blog.
I did, what i thought and today is the reality. Its a year now.
This is link for my first blog ever.
http://noorws.wordpress.com/2008/02/14/hello-world/
Things are dramatically changed from last year. Now we are passing through the economic crisis. Sometime i have seen people hopeless and sometime vice versa.
but
I will say only 1 thing.
“This world is not end of World” and seasons change!
Message for peace.
Posted by: Waqas Noor on: September 12, 2008
Drools, formally called JBoss Rule(http://www.jboss.org/drools/). Its a best Rule Engine in open source community. So what it is about.
Very simple
1. You have rules like if then (.drl file)
2. You have Java Object
3. Submit java object to rule engine
For example
Employee emp = new Employee(1, ‘Waqas Noor’)
ruleengine.submit(emp) ;
ruleengine is like
rule
when
emp : Employee (name=’Waqas Noor’)
Then
System.out.println(“Its so simple”)
end
The .drl translated into like
—– Code —-
if(emp.getName().equals(“Waqas Noor”))
System.out.println(“Its so simple”);
its just a start; there is much to do; its really a fun to work with drools, visit for more detail (http://www.jboss.org/drools/)
Posted by: Waqas Noor on: May 11, 2008
Perhaps its too early to say about Wicket web Framework but one thing is sure that Wicket contributes towards J2EE community.
Wicket is new Object Oriented web Framework, provides seperation of Presentation layer with Busniess layer. Wicket basically wrap the HTML Tags and provides full control in your Java Code.
The nice thing about Wicket is, there is no rocket science in it and provides the platform for Rapid Application Development.
In short;
Your Application = WICKET HTML TAGS + Pure Java Code (No XML Files, etc)
For starting point, have a look at
http://www.netbeans.org/kb/55/quickstart-wicket-in-netbeans.html
Posted by: Waqas Noor on: May 5, 2008
Hi,
Starting project with right technologies is really big investment. If you are intended to use JSF as your presentation layer then must have a look at JBoss Seams.
In short,
If you have some more points to share; don’t hesitate to write comments.
Posted by: Waqas Noor on: April 27, 2008
Hi,
I have an idea to list my all nicks here; which can your PhD research topic.
Here goes …
Posted by: Waqas Noor on: April 21, 2008
Hi,
If you are intended to work with Spring Framework then have a look at this site.
http://www.javapassion.com/j2ee/index.html#Spring_Framework
Posted by: Waqas Noor on: February 17, 2008
Business Process Execution Language (BPEL) is is a language for specifying business process behavior based on Web Services.
For beginners; look at http://en.wikipedia.org/wiki/BPEL.
Oracle Link; http://www.oracle.com/technology/products/ias/bpel/index.html
For me, BPEL is grand child of XML, which have capabilities of XML, XSLT, XPATH, WSDL, SOAP and may more things. So before getting into BPEL you should have at least basic working knowledge of these technologies.
Approaching to BPEL (Learning Curve)
XML, XPath, XSLT, WSDL, SOAP.