|
WebLogic Server 6.1 Code Examples, BEA Systems, Inc. |
iiop.properties
located in the
WL_HOME/samples/examples/iiop
folder
(for example, it would likely be set to INPRISE_HOME=c:/Inprise/vbroker
). You also need a C++ compiler; this example used Microsoft Visual
C++. Make sure that your PATH is set so that the compiler can be run.
Before you run the client applications in this directory, be sure to build the full example. This includes building the WebLogic Server and, if you wish to run through the Tuxedo Server, the Tuxedo Server (iiop/rmi/server/tux) as well. Make sure you have run through the set up and building on the WebLogic Server side first and then attempt going through the Tuxedo Server. The following links lead to instructions on setting up the servers:
Be sure to also take a look at the C++ client code.
config.xml
contained in the
WL_HOME/config/examples
directory. For example:<Server AcceptBacklog="50" AdministrationPort="0" ClusterWeight="1" ConsoleInputEnabled="false" DGCIdlePeriodsUntilTimeout="2" DefaultGIOPMinorVersion="1" DefaultProtocol="t3" DefaultSecureProtocol="t3s" HttpdEnabled="true" JavaCompiler="C:\BEA\jdk131/bin/javac" ListenPort="7001" Name="examplesServer" NativeIOEnabled="true" RootDirectory="C:\BEA\wlserver6.1" SocketReaderTimeoutMaxMillis="10" TransactionLogFilePrefix="config/examples/logs/" TunnelingClientPingSecs="45" TunnelingClientTimeoutSecs="40" XMLEntityCache="XMLCacheMBean" XMLRegistry="examplesXMLRegistry">
Client.exe -ORBInitRef NameService=iioploc://localhost:7001/NameService
Enter the correct hostname and port for your particular configuration. You should see the Ping! message in the WebLogic server log.
iiop/samples/examples/ejb/stateless/server/wls
and
iiop/samples/examples/ejb/stateless/server/wls
). Then run
the RMI
application with the following command:
Client -ORBInitRef NameService=iioploc://ip_address:2468/NameService
Enter the correct ip address and port for your particular Tuxedo configuration. You should see the Ping! message in the Tuxedo ULOG where you booted your Tuxedo Server.
Client.exe -ORBInitRef NameService=iioploc://localhost:7001/NameService true
). If you have set up both your environments
correctly, the server you have called will make an outbound call to the other server (either Tuxedo or WebLogic) and you should see Ping!
in that servers log. In the Tuxedo case, this will be the ULOG where you booted your Tuxedo Server.
Read more about WebLogic RMI over IIOP in the Developer Guide, Using WebLogic RMI over IIOP.
Read more about WebLogic EJB in the Developer Guide, BEA WebLogic Server Enterprise JavaBeans.
Read more about WebLogic RMI in the Developer Guide, Using WebLogic RMI.
For more information about WebLogic Server WebLogic Tuxedo Connector, see:
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |