Discussion Locked

BEA WebLogic Server EJB Deployment

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

This is about Enterprize Java Beans Deployment on Bea weblogic server
Any information on Deploying and configuring Weblogic is welcome

1 reply

by psujith

Hi,
I dont know exactly what you wanted. Once you have installed the weblogic, you can see the weblogic.properties in the root directory. It gives a lot of info.

After you have created your bean's remote,home interface and bean implementation
just compile it your system . Ensure that u have the correct classpath in dos prompt.

If u dont have correct classpath u have to follow thw following steps:

in the root directory you have a file called setenv.cmd If you are using win95 thenrename the file as setenv.bat

edit the file. set the parameter for wl_home and java_home accordingly. save.

Before you do any compiling in dos prompt just run the setenv file. Now set classpath=%classpath%;.
now you can compile all the required files for the bean.

now start the deployer.
File->new->
It will ask for the path/name.jar file

in the dialog box select the path and give a name. Then in the top there is an icon to add files. Add all the class files to the jar.click finish.

Now in the tree click the file name you get a dialog box indix=cating the classes , there you can give the JNDI name. Now it is over. close it.

now your jar is ready. Deployemnt can be done from the deployer itself but it's delay process. Goto dos prompt where u caompiled previously.

Type:java -Dweblogic.home=%wl_home% weblogic.ejbc

if the program is correct no error message will come. Now the required jar file is ready.

Go to weblogic.properties search for ejb.deploy from the top. Second search will get you to a palce . There you specify the jar file you have specified. Be carefull about backward slash and forward slash and space as this will create problems. # is a comment in the file. You can see some ten lines of examples. You can uncomment the first line and give the file name of your jar.
Save it. Run the weblogic server.

This discussion is closed to new replies.