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:

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

Posted by Amit on July 17, 2008 at 06:38 PM MDT #

Post a Comment:
Comments are closed for this entry.
About

Musings on Fusion Middleware and SOA Picture of Antony Antony works with customers across the US and Canada in implementing SOA and other Fusion Middleware solutions. Antony is the co-author of the SOA Suite 11g Developers Cookbook, the SOA Suite 11g Developers Guide and the SOA Suite Developers Guide.

Search

Archives
« July 2014
SunMonTueWedThuFriSat
  
1
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  
       
Today