Wednesday, January 27, 2010

InBound Security in BPEL

Hello All,

A simple way to protect a BPEL Process.

1. Navigate to the /$ORACLE_HOME/bpel/domains/Domain_name/config/message-handlers.xml

2. Configure the process name which needs to be protected in the 'SecuredProcesses' tag

3.



property id="SecuredProcesses"



inbound-flow
message-handler id="Domain"
message-handler id="security"
inbound-flow






4. Generate a encrypted password based on DES algorithm.(i did through a java class)

[CDATA[TOEXz08rReMqnYt1uPZFjw==]]

10.1.3.3.1 works only with a DES algortihm .

Make sure the password is a properly encrypted if you miss one character you will

get a cipher error while deploying.

5. paste the below two lines in your bpel.xml file

configurations
property name="user" encryption="plaintext" oc4jadminproperty
property name="pw" encryption="encrypted" CDATA[TOEXz08rReMqnYt1uPZFjw==]]"property
configurations

make sure the you dont miss tags in the above encryption.

6. Deploy the process

7. used Soap UI for testing. Please make sure you pass the username /password in the token through soap header


Thanks
Prem.

Sunday, January 17, 2010

JPA Databinding in JSF Page

Hello All,

The screen shots below will help you to develop a page and bind data from a jpa data control.

Steps to build this very simple app.

1.Create database connection in your connection Navigator.

2.Import the tables as entities.

3.right click the imported entity and create a service Facade.
one the facade is created write few lines of code to view your data(it returns in a list ,you can use an iterator..) from the table.

4.Right click the Javaservice facade to create data control.

5.Create a jsf jsp page(this includes adf faces,adf core taga while creating).

6.Drop a panel page from adf tags.

7.select your desired method ,from the data control palette and drop it on the Panel page ,whick will ask you to select the table type(you can choose any type )

8.Rebuild your project.set the default target and the new jsp page you created in step 5 and run the project.

9.You should see the data.

Please let me know if you have issues.

Thanks
Prem