You must make the following configuration changes to the WebLogic Server 10.0 to drive the example MDB using TIBCO Enterprise Message Service instead of WebLogic Server.
• Add the TIBCO Enterprise Message Service JAR file to the CLASSPATH of WebLogic Server.
• Create the appropriate JMS Destination and connection factory objects inside the TIBCO Enterprise Message Service server using its administration tool.
• Modify the MDB class file by adding JavaDoc annotations, to use the appropriate JMSConnectionFactory, JMSDestination, and JNDI Connection Factory when rebuilding and redeploying.
• Modify the client program to look up its administered objects from the built-in JNDI provider in TIBCO Enterprise Message Service.In the directory WebLogicHome\samples\domains\wl_server\examples, modify the CLASSPATH environment variable in setExamplesEnv.cmd (the examples setup script.).In the directory WebLogicHome\samples\domains\wl_server\bin, modify the CLASSPATH variable in 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:
1. Start the TIBCO Enterprise Message Service server by selecting Start > Programs > TIBCO EMS 6.0 > Start JMS Server from the Windows Start menu.
2. Start the TIBCO Enterprise Message Service administration tool by selecting Start > Programs > TIBCO EMS 6.0 > Start EMS Administration Tool from the Windows Start menu.You must modify the MessageTraderBean.java file in three ways. The MessageTraderBean.java file is located in:WebLogicHome\samples\server\examples\src\examples\ejb\ejb20\message
3. Modify the MessageDriven tag, so that the destinationJndiName property is TIBCO.quotes, and the transactionType property is BEAN driven. For example:To use the JNDI provided by TIBCO Enterprise Message Service, the example MDB client program must be modified in three areas:
• the runtime environment i.e. the CLASSPATHThe source file for the MDB client program is Client.java in the directory:WebLogicHome\samples\server\examples\src\examples\ejb\ejb20\message
TopicConnectionFactory or TIBCO.tcf
2. Change the line in constructor method to be (this line is right after getInitialContext() call):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:You have already added the tibjms.jar file to the CLASSPATH in a previous section. To set the environment, perform the following:
Copyright © TIBCO Software Inc. All Rights Reserved.