« Configuring MQ from Oracle App Server | Main | A Little Knowledge »

Unlocking Problems with JMS

Unlocking your JMS

Twice in the past week I have come across a problem with starting an OC4J container within application server.  In both cases the container started but JMS applications did not work.  Lookups of Oracle JMS resources in JNDI would fail and a look at the OPMN log (in $ORACLE_HOME/opmn/logs/group_name~oc4j_instance~group_name~1.log) for the OC4J instance (or the command prompt for standalone OC4J instances) revealed that the Oracle JMS provider had failed to start due to an 'internal configuration error'.
Turns out that instead of closing down cleanly the OC4J instance had been abnormally terminated during JMS operations and JMS lock files had been left around in the $ORACLE_HOME/j2ee/home/config/persistence/home_group_name_1 directory.  Remove the .lock files, restart the instance and JMS once again is its cheery old self.
Note that one instance that this occurred on I was playing with JMS directly, in the other instance it was Oracle Identity Manager that was exercising JMS and hence stopped working when JMS failed to initialise.
Hopefully this will save somebody some time in diagnosing their non-working application.

Comments (1)

Amit:

Hi Antony,

Thanks for sharing this information, I could create a working adaptor for BEA WLS JMS using this. However, I have a query. We need to define the Resource Provider in %ORACLE_HOME%/j2ee/home/config/application.xml.file. In case when my oc4j is coming up if the WLS server is down then it fails to get a connection and doesn't come up. Is there any way to prevent this? Something like loose coupling with the WLS JMS?

Thanks,
Amit

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About This Entry

This page contains a single entry from the blog posted on April 26, 2007 3:14 PM.

The previous post in this blog was Configuring MQ from Oracle App Server.

The next post in this blog is A Little Knowledge.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle