Monday, March 30, 2009

How to change your Eclipse JVM

As an example, I will update the Eclipse JVM to use JRockit:

edit %ECLIPSE_HOME%/eclipse.ini

Add the following:
-vm %BEA_HOME%\jrockit90_150_04\jre\bin\javaw.exe

Make sure you replace the %BEA_HOME% with an actual valid path such as "C:\BEA\" then restart.

Change your default JVM for workspace to the new JVM:


Once you bring up Eclipse goto – Windows -> Preferences -> Java -> Installed JRE and then on the UI that pops up choose - and add a new JRE and point to the following directory below "%BEA_HOME%\jrockit90_150_04\jre".

After adding the JRE, make it the default JRE for all projects, exit and restart and you're done.

Also make sure that the %PATH% has "C:\YOURBEAHOME\jrockit90_150_04\jre\bin;" reference before it refrences any other JDK.

And your JAVA_HOME is pointing to "C:\YOURBEAHOME\jrockit90_150_04\jre"

Tuesday, March 17, 2009

Scheduling Polling Frequency for Adapters in Oracle ESB

File Adapter will collect the files from specified folder at the polling frequency time parameter, such as every 1 second or 1 min. What about specified time, every 6pm or every morning? How?? The solution is to use the Quartz in conbination with Oracle ESB Client APIs.

Using the client APIs you can the status to enabled/disabled at the specified time.

Oracle ESB API can also be invoked via HTTP protocol. You can try this http://server:port/esbConfiguration/executeCommand?action=ExploreServices.

This URL will return an XML metadata where you can explore the services in ESB,
such as guid and status.

And this is how we create quartz to work with OC4J
http://radio.weblogs.com/0135826/2004/04/02.html

This is the example of how we communicate with Oracle ESB API Client

JAVA CODE
ConsoleClient client = ConsoleClientFactory.getConsoleClient(HOST, PORT, USER_NAME,PASSWORD);
client.perform(”UpdateServiceStatus”, requestProps);

Search This Blog