Skip Navigation Links | |
Exit Print View | |
![]() |
Configuring WebLogic for Asynchronous Communications Java CAPS Documentation |
Configuring WebLogic for Asynchronous Communication
Installing the WebLogic Adapter and Asynchronous Samples
To Install the WebLogic Adapter
To Download the Asynchronous Samples
Configuring WebLogic Server 9.2
To Configure WebLogic Server 9.2
To Start the WebLogic Administration Console
To Stop and Restart the Startup and Shutdown Classes
The following procedures describe how to incorporate the sample files downloaded for the WebLogic Adapter into a WebLogic Server.
Note - These files are only for WebLogic Server 9.2. You need to use your own JAR files to establish Asynchronous Communication with WebLogic 8.1 and WebLogic 10.
weblogic.ejb.example.jar
weblogic.startup.jar
weblogic.startup.properties
Note - Disable security in STCMS for the JMS samples to work properly .
For example, in startExamplesServer.cmd:
CLASSPATH=%WL_HOME%\server\lib\webservices.jar; %POINTBASE_CLASSPATH%;%CLIENT_CLASSES%;%SERVER_CLASSES%;%COMMON_CLASSES%; %CLIENT_CLASSES%\utils_common.jar; %WL_HOME%\server\lib\com.stc.jms.stcjms.jar; %WL_HOME%\server\lib\weblogic.startup.jar
For example, in setExampleEnv.cmd:
CLASSPATH=%WL_HOME%\server\lib\webservices.jar ;%CLIENT_CLASSES%;%SERVER_CLASSES%;%POINTBASE_CLASSPATH%; %POINTBASE_TOOLS%;%COMMON_CLASSES%;%CLIENT_CLASSES%\utils_common.jar; %WEBLOGIC_CLASSPATH%;%WL_HOME%\server\lib\com.stc.jms.stcjms.jar; %WL_HOME%\server\lib\weblogic.startup.jar
Note - The sample EJBs are configured to reference the T3 naming service that is running on the localhost at port 7001. Each WebLogic Server instance is preset to listen on port 7001. If your server instance is running on a different port, modify the deployment descriptors for the EJBs to match this port.
The URL for the WebLogic Server is http://hostname:port, where hostname is the name of the server where WebLogic is installed and port is the WebLogic port number (by default, 7001).
Note - The default UserName is weblogic and the default Password is weblogic.
The Configure a New Startup or Shutdown Class page appears.
Note - You can create multiple named configurations for any given class. After you have created a class configuration, you cannot change its name. Instead, delete the configuration and create a new one with a new name.
The following properties identify the class you are configuring. Enter the following values:
Name: SunMicrosystems_Startup
Class Name: com.stc.eways.weblogic.startup.WeblogicStartup
You can select one or more servers or deploy the class to all servers in a cluster.
The following message appears on the right panel of the screen.
Startup class created successfully.
The following message appears on the right panel of the screen.
All changes have been activated. No restarts are necessary.
Name: SunMicrosystems_Startup
Class Name: com.stc.eways.weblogic.startup.WeblogicStartup
Deployment Order: 1000
Note - This is the default value.
Arguments: sbyn.wlstartup.propsfile=BEA- HOME\weblogic92\server\lib\weblogic.startup.properties (where BEA-HOME is the home directory of the WebLogic Server).
The following message appears on the right panel of the screen.
Settings updated successfully.
The following message appears on the right panel of the screen.
All changes have been activated. No restarts are necessary.
Note - Not all changes take effect immediately, some require a restart.
The Settings for the exampleServer page appear.
The Start/Stop tab is the default selection on this screen.
Note - Use this page to change the state of the current server. You can specify particular shutdown settings or view the current status of this server.
Click Save if you have modified any settings.
Select When work completes (under the Server Status) from the Shutdown drop-down menu.
This action shuts down the server.
Note - For Example, WebLogic Server Examples and Launch WebLogic Server Examples.
If the startup class is successfully invoked, you should see the following text in the Start Server command window:
weblogicstartup - Sun Microsystems startup class invoked - SunMicrosystems_Startup weblogicstartup - Topic name: Topic.Sample3 weblogicstartup - Topic name: Topic.Sample2 weblogicstartup - Topic name: Topic.Sample1 weblogicstartup - Queue name: Queue.Sample3 weblogicstartup - Queue name: Queue.Sample2 weblogicstartup - Queue name: Queue.Sample1 weblogicstartup - Successfully invoked Sun Microsystems startup.
This displays the Summary of Servers page.
This displays the Settings for exampleServer page.
Note - Before deploying the EJB, make sure that the JMS IQ Manager is running in Enterprise Manager.
This installs the EJB on the WebLogic Administration Server.
The following message appears on the right panel of the screen.
Startup Class created successfully.
The following message appears on the right panel of the screen.
All changes have been activated. No restarts are necessary.