22 February 2011

Just find the oc4j.cmd in the bin directory and use the following command to set your ORACLE_HOME set ORACLE_HOME=C:\Files\Develop\External\oc4j_extended_101340 add this line the to the first line of oc4j.cmd. Using this option, you don't need to set ORACLE_HOME in your environment variables any more.

There are two ways to define Oracle home for the PL/SQL developer.
One way is to have it in the environment variables, and point it to the installed directory. This works globally, so any other program/software is going to look for ORACLE_HOME will use this one.
Another way is to use the ORACLE_HOME registry value. You would be able to find it under HKEY_LOCAL_MACHINE -> SOFTWARE -> ORACLE -> ORACLE_HOME ; Considering you have installed Oracle on your PC. Using this registry needs some tweaks. You need to find the params.ini in your PL/SQL developer installed directory and uncomment the oraclehome and set it to ORACLE_HOME.
In the latter approach, PL/SQL developer first looks at the params.ini file for ORACLE_HOME, so you can have set your ORACLE_HOME variable in your environment variables to some other directories and use another one with your PL/SQL developer.

16 February 2011

If you are running a standalone OC4J, make sure that you have set the ORACLE_HOME and JAVA_HOME properly. If an IT guy in your company has set up your computer, then you need to double check that ORACLE_HOME is not set to the oracle folder installation but the location where you unzipped OC4J.

10 February 2011

You can find almost a good Mule startup guide at here. However, this configuration guide is not really reliable. So follow the following instructions:
Configure your Eclipse with 1.5 version of Java. You need to download Java 1.5 and install it somewhere on your PC, doesn’t matter where.
You only need to configure Eclipse once. With subsequent projects, you can skip these steps.

Start Eclipse.

In the Workspace Launcher, specify the location of the examples directory under your Mule home directory (such as C:\mule\examples), and click OK.

Click the Workbench icon on the right to display the workbench.

Choose Window > Preferences.

Expand Java in the navigation tree, click Compiler, and then change the compiler compliance level to 1.5.

Please note that you might get a warning message in your eclipse window saying that you need to create a JRE environment in your Eclipse.

Installing Mule IDE (Eclipse Galileo)

Start Eclipse, and set up a workspace for your installation of Mule if you haven't already. (Make sure your workspace does not have a space in the directory path)

Click the Mule IDE check box and click Next, and after Eclipse processes for a moment, click Next again.

Review the IDE license, select the option to accept the license, and then click Finish.

Click Yes to restart Eclipse.

From this moment, it should be easy. Whatever project you need to create, just create as a Mule project. You need to have a Mule server installed for your Eclipse. Installing is as easy as downloading the mule from its website, unpacking it and then simply pointing to it via the Eclipse environment.
You also have the option to create a Mule configuration file. I suggest you to do that under a Mule project. Creating a project, you can simply be able to use the Mule examples as well. For example, you want to implement a simple web form, just click the Hello example and then you can change the code and have your own logic implemented.
When you use Eclipse, you are saving time. Whenever you change things in your source code and run it on the server, Eclipse will deploy all the jar files and you instantly see the results.
Just keep in mind that you need to run the configuration files and not java files using Eclipse Mule server configuration.

2 February 2011

Log4J

Debug and Trace in log4j to set here: log4jproperties
It usually can be found in package/conf or some simillar path.
then you set the log4j property as follow:
log4j.logger.net.mycompany=TRACE,mycompany_package_log

Java Wrapper Service

Java wrapper service is a java package that allow you to install and run your java programs as services in windows. When looking at logs generated log4j, you will get some of the followings:
INFO | jvm 1 | 2011/02/02 10:57:08 | WrapperManager Debug: Send a packet PING : ping DEBUG | wrapperp | 2011/02/02 10:57:08 | read a packet PING : ping DEBUG | wrapperp | 2011/02/02 10:57:17 | send a packet PING : ping INFO | jvm 1 | 2011/02/02 10:57:17 | WrapperManager Debug: Received a packet PING : pingApparently this shows that the service is trying to see if there is a live JVM or not, and if not it will uses its own (I guess).