Step-By-Step How to deploy CMP Entity bean from IBM WebSphere 3.5 samples to Weblogic 5.1.0

This topic shows you step-by-step how to deploy a CMP entity bean from IBM WebSphere 3.5 to WebLogic 5.1.0 and run a client for it.

Create a project and modify CMP bean


EJB is now ready. Let us create a table in the cloudscape database.

Field

Value

Server type

CloudScape

Set class path

%WL_HOME%/eval/cloudscape/lib/cloudscape.jar

Set Database

%WL_HOME%/eval/cloudscape/data/demo

Ok, we're ready for take off!

This allows to run unregistered servlets from the servlet classpath.

WLS51: Finished with 0 Errors, 0 Warnings

WLS console displays a message like:

Fri Aug 25 12:06:44 GMT+02:00 2000:EJB home interface: 'WebSphereSamples.Increment.IncrementHome' deployed bound to the JNDI name: 'Increment'

Ok, deployment complete. Now let us make some changes to the client.

Find the string

incrementHome = (IncrementHome)javax.rmi.PortableRemoteObject.narrow((org.omg.CORBA.Object) homeObject, IncrementHome.class);"

and remove org.omg.CORBA.Object)

     Hashtable env = new Hashtable();
    env.put(Context.PROVIDER_URL, provider);
    env.put(Context.INITIAL_CONTEXT_FACTORY, factory);

out.println(<form method="get" action="/servlet/WebSphereSamples.Increment.VisitIncrementSite\"");

and replace it with

 
out.println(<form method="get" action="/servlets/WebSphereSamples/Increment/VisitIncrementSite\"");

Run the client.