You must make the following configuration changes to the WebLogic Server 8.1 to drive the example MDB using TIBCO Enterprise Message Service instead of WebLogic Server.
CLASSPATH
of WebLogic Server.weblogic-ejb-jar.xml
file for the MDB to use appropriate JMSConnectionFactory and JMSDestination.These steps are described in the following sections.
In the directory C:\bea\weblogic81\samples\domains\examples
, modify the CLASSPATH
environment variable in setExamplesEnv.cmd
(the examples setup script.) and startExamplesServer.cmd
(the start script).
![]() |
On Windows platforms the extension for both of these files is
.cmd ; on UNIX platforms the extension is .sh .
|
Modify the CLASSPATH
by adding this path to the end of its value list:
To create a foreign JMSServer, JMSConnectionFactory, and JMSDestination:
C:\bea\weblogic81\samples\domains\examples
.startExamplesServer.cmd
.http://<
machineName
>:7001/examplesWebApp/index.jsp
.
Click on the Administration Console link. Enter weblogic
as the Username and Password and click Sign In.
TIBCO JMSServer
in the Name box, com.tibco.tibjms.naming.TibjmsInitialContextFactory
in the JNDI Initial Context Factory box, and tibjmsnaming://localhost:7222
in the JNDI Connection URL box. Click Create and then click Apply.
TIBCO JMSTopicConnectionFactory
in the Name box, TIBCO.tcf
in the Local JNDI Name box, and TopicConnectionFactory
in the Remote JNDI Name box. Click Create and then click Apply.
TIBCO JMSTopic quotes
in the Name box, TIBCO.quotes
in the Local JNDI Name box, and quotes
in the Remote JNDI Name box. Click Create and then click Apply.
To create the example MDB destination objects, perform the following:
To use the appropriate JMSConnectionFactory and JMSDestination modify the file C:\bea\weblogic81\samples\server\examples\src\examples\ejb20\
as follows:
message\weblogic-ejb-jar.xml
To use the JNDI provided by TIBCO Enterprise Message Service, the example MDB client program must be modified in three areas:
The source file for the MDB client program is Client.java
in the directory:
Find and replace the following strings in the source file:
Find
|
Replace With...
|
---|---|
weblogic.jms.ConnectionFactory
|
TopicConnectionFactory
|
weblogic.jndi.WLInitialContextFactory
|
com.tibco.tibjms.naming.TibjmsInitialContextFactory
|
There should be one occurrence of each of the above strings. When you are finished, save your changes.
The client program is run by executing the ant build script with a target of run
. The build script passes the JNDI provider URL to the client program, and therefore it must be modified to pass the URL of TIBCO Enterprise Message Service JNDI. The file build.xml
in the example MDB source directory contains the build script. Near the bottom of that file is the following line:
Modify that line as follows:
You have already added the tibjms.jar
file to the CLASSPATH
in a previous section. To set the environment, perform the following:
TIBCO Enterprise Message Service™ Application Integration Guide Software Release 4.3, February 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |