Oracle Containers for Java (OC4J)This is a featured page

product logo Oracle Containers for Java EE

Oracle Containers for Java EE (OC4J) is the core Java EE runtime component of Oracle Application Server 10g and earlier. From Oracle Application Server 11g onward, the core JEE component will be Oracle WebLogic (which used to be BEA WebLogic).

Being Java EE compatible and running on standard Java SE distributions, OC4J maintains its heritage of being easy to use and highly productive for developers, while at the same time, offering outstanding performance and scalability for production environments. OC4J is available for free download under the OTN Developer License.

*This page is only an introduction taken from the OC4J page found at OTN and should be completed by competent users who actually make use of the OC4J*

(First link - may be more appropriate to place this in a sub page later on)




vesterli
vesterli
Latest page update: made by vesterli , Aug 23 2008, 9:33 AM EDT (about this update About This Update vesterli Added text about WebLogic replacing OC4J - vesterli

24 words added
1 word deleted

view changes

- complete history)
More Info: links to this page
Started By Thread Subject Replies Last Post
admandrila getMessageListener not working on OC4J (with JMS 1.1) 0 Feb 27 2009, 7:57 AM EST by admandrila
Thread started: Feb 27 2009, 7:57 AM EST  Watch
Hello

I'm working on a C client of JMS implemented via JNI and I have problems on Java part - (I don't have great experience with Java).

I'm implementing the MessageListener. On the OnMessage() method I'm putting the current thread in a sleep mode before making the
message.acknowledge();
This is done with:

while(pause){
Thread.sleep(1);
}


The "pause" variable is initially set to true.
I'm doing this sleep on the MessageListener's thread in order to be sure that the message is committed on the C part of the program before committing it on the JMS provider in order to be synchronized with JMS JVM related to messages.

On a different thread (after the message was committed in C part), I'm getting the consumer and I want to get the message listener in order to set the "pause" to false, in order to let the MessageListener to resume its code. Once I get the messageListener, I can set the "pause" variable to false via a synchronized method of MessageListener.
But I am not able to get the MessageListener - the current thread gets blocked at the line:

MessageListenerImpl listener = (MessageListenerImpl)messageConsumer.getMessageListener();



I don't get an exception, nothing...

I've tried also with wait() and notify() but I get the same behaviour.

It seems like the MessageListener reference can't be taken from a separate thread (to make notify on it) when in sleep mode in OnMessage().

Providers used in tests are OC4J 9.0.4 and OC4J 10.1.3.40

Any suggestion is welcomed.

Thanks and Regards,
Alex
Do you find this valuable?    
Keyword tags: None
gsabbas OC4J compression 0 Feb 20 2008, 1:19 AM EST by gsabbas
Thread started: Feb 20 2008, 1:19 AM EST  Watch
Hi Everyone,

Do anyone know about oc4j compression in OBIEE ? what is it? what is the use of it? how & where we will use?

Regards,
Abbas
0  out of 2 found this valuable. Do you?    
Keyword tags: OC4J OC4J compression
Showing 2 of 2 threads for this page