|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
Before you run the client applications in this directory, be sure to build the full example. This includes configuring the WebLogic Server and deploying the entity bean. Do this first.
Also, be sure to also take a look at the C++ client code.
You may now also build this example with visibroker 5.0. to do so, you must make the following changes from the instructions below:
config.xml within the Server mbean to include the following:
<Server>
<IIOP DefaultCharCodeset="iso-8859-1"
DefaultWideCharCodeset="utf-16" Name="myserver"/>
</Server>
config.xml, this gets specified in the
step below.
Client -ORBInitRef NameService=iioploc://localhost:7001/NameService
to:
Client -ORBInitRef NameService=corbaloc:iiop:1.2@localhost:7001/NameService
<Server AcceptBacklog="50" COMEnabled="true" ClusterWeight="1"
ConsoleInputEnabled="false" DGCIdlePeriodsUntilTimeout="2"
DefaultProtocol="t3" DefaultSecureProtocol="t3s"
HttpdEnabled="true" JavaCompiler="C:/bea/jdk131_02/bin/javac"
ListenPort="7001" Name="examplesServer" NativeIOEnabled="true"
ServerVersion="7.0.0.0" SocketReaderTimeoutMaxMillis="10"
TunnelingClientPingSecs="45" TunnelingClientTimeoutSecs="40">
<IIOP Name="examplesServer" DefaultMinorVersion="1"/>
</Server>
ant runEdit the build.xml file for your particular ip address and port ant, it will run the following command:
Client -ORBInitRef NameService=iioploc://localhost:7001/NameService
Enter the correct hostname and port for your particular configuration
Getting name service reference Narrowing to a naming context Resolving the naming context Narrowing to the AccountHome Creating accounts .... Finding account 0 ...failed, creating ...done Finding account 1 ...failed, creating ...done Finding account 2 ...failed, creating ...done Finding account 3 ...failed, creating ...done Finding account 4 ...failed, creating ...done Finding account 5 ...failed, creating ...done Finding account 6 ...failed, creating ...done Account: :0x00905C88 has a balance of 0 Account: :0x00905EF8 has a balance of 1000 Account: :0x00906620 has a balance of 2000 Account: :0x00906CA0 has a balance of 3000 Account: :0x00907340 has a balance of 4000 Account: :0x009079C0 has a balance of 5000 Account: :0x00908040 has a balance of 6000 Creating and marshalling a Vector Finding big accounts ... Account 0x009086C0; balance is $6000 Removing beans...
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.
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||