RSS
 

Archive for the ‘SOA’ Category

JBoss: run 2 instances in the same environment avoiding port conflicts

19 Oct

1 – Introduction

Few months ago I was asked to install Oracle BIPublisher to provide audit reports by using the Oracle Identity Manager repository as data source.

There was a pre-existing JBoss installation in which OIM was running; the idea was to install BIP in a new JBoss instance because OIM installation modifies and deletes some of the standard JBoss files and packages.

The problem that you face when you are going to run different JBoss instances that belong to different installations in the same system is a port conflict: there are several ports that the application server uses and change all of them one by one could required time that we don’t have.

This topic explains how to quickly setup different port sets for different JBoss instances.

2 – The quick way: ServiceBindingManager

JBoss provide 3 different pre-configured port sets in addition to the default one; each port set defines different port numbers for all the service that JBoss provides:

ports-01: Increase the default port number by 100 (e.g. HTTP: 8180 )
ports-02: Increase the default port number by 200 (e.g. HTTP: 8280 )
ports-03: Increase the default port number by 300 (e.g. HTTP: 8380 )

Read the rest of this entry »

 
No Comments

Posted in SOA

 

Decompile, modify and deploy java libraries by focusing on the Oracle Identity Manager case of study

13 Oct

1 – Introduction

Lately I have been asked to solve the following problem with the ReconciliationEvent91.jar package for Oracle Identity Manager:

trace log

ERROR,06 Oct 2010 15:12:40,362,[XELLERATE.WEBAPP],Class/Method: tcActionBase/execute encounter some problems: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap
java.lang.ClassCastException: java.util.Collections$UnmodifiableMap cannot be cast to java.util.HashMap
        at com.oracle.oim.ocs.reconciliationEvents91.ReconciliationEventsAction.getSelectedValuesToLink(ReconciliationEventsAction.java:438)
        at com.oracle.oim.ocs.reconciliationEvents91.ReconciliationEventsAction.handleStatusButtons(ReconciliationEventsAction.java:333)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)

...

Basing on the steps taken to solve this issue, I want to write down the main guidelines to decompile, modify and repackage existing jar files; I want also to put the focus on Oracle Identity Manager cause by my experience the following steps are more or less the same that should be used whenever you need to add custom backend functionalities to the product.

2 – Prerequisites

You will need the following:

- The last version of the JAVA SDK (You could need the J2EE libraries also)
- A JAVA IDE (Oracle JDeveloper 11g has been used in this case)
-  A JAVA decompiler tool (JAD has been used http://www.varaneckas.com/jad)

Read the rest of this entry »