|
WebLogic Server 7.0 Code Examples, BEA Systems, Inc. | |||||
Before you run the client applications in this directory, be sure
to build the whole example.
This includes building the EJB for WebLogic Server and, if you wish to run through the Tuxedo Server, the necessary files for the
Tuxedo Server (iiop/stateless/server/tux)
as well.
Trader bean and configuring WebLogic Server
Setting up and configuring Tuxedo Server
Be sure to also take a look at the Tuxedo client code. Note how the authentication is set up.
All source files are located in the WL_HOME\samples\server\src directory.
// authenticate
cout << "Authenticating against the SecurityService" << endl;
weblogic::security::acl::DefaultUserInfoImpl_var user
= new weblogic_security_acl_DefaultUserInfoImpl_i
(new ::CORBA::WStringValue((const wchar_t*)(L"weblogic")),
new ::CORBA::WStringValue((const wchar_t*)(L"weblogic")));
service->authenticate(user);
tuxedo8.0/bin and tuxedo8.0/lib directories in your PATH.
build.xml script provided
in the examples\iiop\ejb\stateless\tuxclient directory to make sure it is using your correct port and
hostname. The last section of this xml file contains the run command. Run the client by entering:
ant run
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 on how to provide interoperability between WebLogic Server applications and Tuxedo services, see WebLogic Tuxedo Connector.
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||