Oracle

com.bea.httppubsub
Interface DeliveredMessageListener

All Superinterfaces:
EventListener

public interface DeliveredMessageListener
extends EventListener

DeliveredMessageListener is introduced in order to support server-side subscription to pub/sub server's channels. A implementation of this interface is needed to register on local client before this client subscribes itself to server's channels in order to have the listener notifieid when message is published to the channels. For example:

   PubSubServer server = FactoryFinder.getFactory(FactoryFinder.PUBSUBSERVER_FACTORY);
   LocalClient client = server.getClientManager().createLocalClient();
   client.registerMessageListener(new MyDeliveredMessageListener());
   server.subscribeToChannel(client, "/foo/bar");
 

Since:
10.3.0.0
See Also:
PubSubServer.subscribeToChannel(LocalClient, String)

Method Summary
 void onPublish(DeliveredMessageEvent event)
          Notification that the local client received an event message.
 

Method Detail

onPublish

void onPublish(DeliveredMessageEvent event)
Notification that the local client received an event message. This method is not thread-safe, Pub/Sub Server may call it concurrently in multiple threads.

Parameters:
event - - the notification event

Documentation is available at
http://download.oracle.com/docs/cd/E12839_01/web.1111
Copyright 1996,2009, 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.

Part Number E13941-01
Oracle WebLogic Server 10.3.1 API Reference