03.05.2015 Views

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

IBM WebSphere V5.0 Security - CGISecurity

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The ITSOBank application provided with this book has a J2EE application client<br />

which requests service from an EJB operating in the remote EJB container. The<br />

EJB’s home interface is called com.ibm.itsobank.ejbs.ConsultationHome which<br />

the client accesses be querying the JNDI namespace. The source code for the<br />

server and client components is included in the application EAR file. The client<br />

does not contain any code for logging in since this mechanism is provided by the<br />

client runtime environment.<br />

The launchclient command (which is located in the /bin<br />

directory) will configure the J2EE application client environment by examining the<br />

application client’s deployment descriptor (application-client.xml) which is<br />

provided with the application client. The client runtime environment must provide<br />

access to the EJB JAR files that contain the classes used by the client. These<br />

JAR files should be referenced in the client’s MANIFEST.MF file. The<br />

recommendation is to provide the application EAR file, which will contain the<br />

classes for the entire application.<br />

ITSOBank J2EE client<br />

The ITSOBank application uses a Java application with a graphical interface to<br />

retrieve balance information for the accounts. The following steps describe how<br />

to start the application client in order to access the secured resources.<br />

1. Use the following command to launch the J2EE client.<br />

launchclient itsobank.ear -CCBootstrapHost=<br />

-CCBootstrapPort=<br />

If you do not specify host name and port number the client will connect to the<br />

localhost using the default port 2809.<br />

2. If Global <strong>Security</strong> has been enabled, a window should appear requesting user<br />

details (see Figure 6-9).<br />

Figure 6-9 J2EE client challenge<br />

3. Enter the user name and password of a user in the consultant group.<br />

4. Click OK.<br />

122 <strong>IBM</strong> <strong>WebSphere</strong> <strong>V5.0</strong> <strong>Security</strong> Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!