All Examples  This Package  JMS Examples
  Class examples.jms.startup.PoolReceive
examples.jms.startup.PoolReceive
  -  public class PoolReceive
  -  implements T3StartupDef
This example shows how to establish a JMS message consumer
 from a WebLogic startup class.  Startup classes are loaded
 and executed when the server is first started.
 The 
 PoolReceive example shows how to establish 
a pool of message listeners (MsgListener class) 
from a startup class. As messages are 
 received from the tropic they are displayed in shell running the WebLogic Server. 
 You can use the 
TopicSend client 
 to send messages to the Topic.
 Configure the server:
 
 
 - 
 Add the following properties to your weblogic.properties file:
 
 weblogic.system.startupClass.poolReceive=examples.jms.startup.PoolReceive
 weblogic.system.startupArgs.poolReceive=\
    connectionFactory=javax.jms.TopicConnectionFactory,\
    topic=javax.jms.exampleTopic
Build the example:
 - 
  Set up your development shell, as described in 
 Setting up 
 your environment.
 
- 
 Compile the file in this directory as shown in this examples for Windows NT:
   $ javac -d %SERVER_CLASSES% PoolReceive.java 
Run the example:
 - 
 Start the WebLogic Server in a new command shell.
 
- 
 Start the 
TopicSend client in your 
development shell and send messages to the topic.
The messages are displayed in the shell running 
WebLogic Server as they are 
 received from the Topic.  Send messages at less than 1 second intervals 
 to see the pool in action.
 
  -  Author:
  
-  Copyright (c) 1999 by BEA Systems. All Rights Reserved.
   l
l
  -   PoolReceive() PoolReceive()
-  
   
  -   setServices(T3ServicesDef) setServices(T3ServicesDef)
-   The setServices() method passes to the
 startup class the handle of an object that can be used 
 to access WebLogic services.
  
-   startup(String, Hashtable) startup(String, Hashtable)
-  
   
 PoolReceive
PoolReceive
 public PoolReceive()
   
 setServices
setServices
 public void setServices(T3ServicesDef services)
  -  The setServices() method passes to the
 startup class the handle of an object that can be used 
 to access WebLogic services. This makes another reference 
 to the services object so it can be used later.
   
- 
    -  Parameters:
    
-  services - Services stub
  
 
 startup
startup
 public String startup(String name,
                       Hashtable args) throws Exception
All Examples  This Package  JMS Examples