Archive

Archive for May, 2009

Web Services Invocation Framework (WSIF) — How to use in Jdev

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”.
step 1

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.
step 2
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.
step 3

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.
step 4
While creating the Partner link, BPEL process ask for creating the local copy of WSDL, Click Yes (Ja) as shown in figure.
step 5
After clicking on Yes (Ja), it will ask for Creating partner link as shown in figure. Click on Yes (Ja).
step 6
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.
step 7
Now you are ready to use the WSIF, the final BPEL Process looks a like
step 8

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…

Metadata Management Possiblities

From couple of days, Mostly I googled with the search keyword “metadata”. I was quite satisfy with the definition like metadata is “Data about Data”, “Documentation of metadata” but I was looking for the ways how one can manage in different scenarios. In short, I found 3 ways two manage it. Here are the techniques 

1. Management of metadata as Tags

Initially people thought that uncontrolled vocabulary will leads into disaster in the system. Along with the Web 2.0, people found it in totally in reverse way. There are lots of social systems which are using the same concepts and successful as well. I thought it is due to following factors.

  • Tags are really cheap.
  • Different people have different vocabulary for the same words. The words which are more common have more chance in search output.
  • Tags are initially not follow any pattern but later people will be focus on some of the tags.
  • There are strategies where we can build network of these tags.

Facebook is one the example which use Tags at images which helps user to navigate through the network.

 2. Metadata as Ontologies

I am not expert in building ontologies but after reading some papers; it is possible to build  ontologies on metadata. Building ontologies of metadata is helpful in the following way

  • Semantics of metadata
  • Existing tools which can search metadata by some semantics.
  • Sharing of Ontologies (Really helps between different departments, different research groups)

The other side of Face on Ontologies is that it’s hard to build as compare to Tags.

3. Taxonomy/ Hierarical metadata

I believe, this strategy also works in maintaining the metadata, if hierarchies are predefined and has rare chance to update in breadth dimension.

Basically, it is following the rules of some Schema (Hierarchy) but still it is easy to create (If hierarchies are predefined).

Categories: Articles Tags: , , ,

Handmade things for decoration

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.

 

Follow

Get every new post delivered to your Inbox.