on 04-29-2013 10:12 PM
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>
Hi,
The option to edit the setting is shown as soon as you create a new EnterpriseBean for an EJB module. Follow this document.
Regards,
Prateek Raj Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.