Quantcast
Channel: SCN : Unanswered Discussions - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 6719

EJB Module Adapter wrong Path Local Interfaces

$
0
0

   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/j2eehttp://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>


Viewing all articles
Browse latest Browse all 6719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>