Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How to deploy a simple bean in Oracle 9iAS

  Asked By: Dora    Date: Jan 28    Category: Java    Views: 925

anybody help me how to deploy a
simple bean in OC4J ( Oracle Container For JAVA).

i tried, but i am getting error.



2 Answers Found

Answer #1    Answered By: Sydney Thompson     Answered On: Jan 28

What was the error  u got? Give a complete description.

Answer #2    Answered By: Kim Cruz     Answered On: Jan 28

Deploying a bean  in Oracle9ias

1. Create the Bean classes. and compile it in the corresponding Folder "d:\app1\app\ecomp"
that u have set in the application.xml in the config folder

<web-module id="DefaultWebApp" path="d:\app1\app\web" />
<ejb-module path="d:\app1\app\ecomp" remote="false" />
<client-module path="d:\app1\app\ecomp" remote="false" />
<persistence path="../persistence" />

2. Modify the ejb-jar.xml in the path "d:\app1\app\ecomp\META_INF" folder


<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>

<ejb-name>SampleStatelessHome</ejb-name> <!-- can be any Name->
<ejb-name>SampleStatelessHome</ejb-name> <!-- ejb-name specified in the session tag -->

3. Restart the server, and the bean is re-deployed.

If u further find any problems, let me know

Didn't find what you were looking for? Find more on How to deploy a simple bean in Oracle 9iAS Or get search suggestion and latest updates.