cancel
Showing results for 
Search instead for 
Did you mean: 

EJB Module Adapter wrong Path Local Interfaces

Former Member
0 Kudos

   Hi All,

   I am working with Java Module Bean, when i created ejb-jar file in the projetc using SAP Netweaver Studio in  the home, remote, local-home, local, ejb-class parameters in the Enterprise Bean appear with wrong local class, like below.  For example: in the line <home>com.sap.adaptermodule.GetHostNameHome</home> it must be <home>com.sap.aii.af.mp.module.ModuleHome</home>. I searched in the internet and i didn´t find how to set this path.

   Could you help me? Please?

    Thanks a lot!

 

    Regards!

    Fábio Ferri

 

My ejb-jar


<?xml version="1.0" encoding="UTF-8"?>

<ejb-jar xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="ejb-jar_ID" version="2.1" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">

    <display-name>

    UserModule_EJB</display-name>

    <enterprise-beans>

        <session>

            <icon/>

            <ejb-name>GetHostName</ejb-name>

            <home>com.sap.adaptermodule.GetHostNameHome</home>

            <remote>com.sap.adaptermodule.GetHostNameRemote</remote>

            <local-home>com.sap.adaptermodule.GetHostNameLocalHome</local-home>

            <local>com.sap.adaptermodule.GetHostNameLocal</local>

            <ejb-class>com.sap.adaptermodule.GetHostNameBean</ejb-class>

            <session-type>Stateless</session-type>

            <transaction-type>Container</transaction-type>

        </session>

    </enterprise-beans>

</ejb-jar>

  Sample Correct ejb-jar in the Internet

ejb-jar.xml

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"

                         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

<ejb-jar>

    <description>EJB JAR description</description>

    <display-name>EJB JAR</display-name>

    <enterprise-beans>

        <session>

            <ejb-name>JSriniFileName_FinalBean</ejb-name>

            <home>com.sap.aii.af.mp.module.ModuleHome</home>

            <remote>com.sap.aii.af.mp.module.ModuleRemote</remote>

            <local-home>com.sap.aii.af.mp.module.ModuleLocalHome</local-home>

            <local>com.sap.aii.af.mp.module.ModuleLocal</local>

            <ejb-class>com.sap.JFileName.JSriniFileName_FinalBean</ejb-class>

            <session-type>Stateless</session-type>

            <transaction-type>Container</transaction-type>

        </session>

    </enterprise-beans>

</ejb-jar>

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

Hi,

The option to edit the setting is shown as soon as you create a new EnterpriseBean for an EJB module. Follow this document.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e674...

Regards,

Prateek Raj Srivastava

Former Member
0 Kudos

Hi Prateek

Thank you for your help! I solved the problem fixing the class in the field name Home, LocalModule, etc.. and i did the upload the jar files before to create de Entreprise Bean as you told!

  Thank You!

  Best Regards!

  Fábio Ferri

Answers (0)