|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServerSessionPoolListener
Listener interface for MessageListeners used by a ServerSessionPool.
Method Summary | |
---|---|
void |
initialize(Serializable userData)
MessageListeners for a ServerSessionPool are instantiated by the ServerSessionPool (not the client). |
Methods inherited from interface javax.jms.MessageListener |
---|
onMessage |
Method Detail |
---|
void initialize(Serializable userData) throws JMSException
This interface allows clients to pass a single parameter to the MessageListener. Specifically, a client must call the createServerSessionPool method from their ServerSessionPoolFactory and pass in the clientData. The clientData must implement the Serializable interface.
Once the ServerSessionPool is created, it checks to see if the MessageListener is a ServerSessionPoolListener. If it is, then the ServerSessionPool calls the intialize method for the listener to pass in the clientData .
The client implementation of the initialize method typically saves a reference to the data for use by the onMessage method.
userData
- reference to clientData (can
be null)
JMSException
- if an
error occurs.
|
Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.1.3) Part Number E41849-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |