on 08-25-2011 10:39 AM
Hi Experts,
I am trying to develop an sample adapter module just to pick the name of the file and put it in the payload. I managed to deploy the module through SDM and it is showing as active in the visual admin. But when I run the interace it doesn't pick the file at all. The communication channel is working fine without module as it is picking the file processing it.
The module configured in the communcaiton channel is as below:
1 localejbs/AddFileNameToPayloadEJBBean Local Enterprise Bean 0
2 CallSapAdapter Local Enterprise Bean 0
Nothing esle is configured. Please advise I am missing some thing in the configuration or is there any other issue.
Regards,
SS
Hi,
try to restart Java services from SMICM.
I had same problem a few days ago, solved with this solution.
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is a Sender Channel right??
Change Module Order to:
1 CallSapAdapter Local Enterprise Bean 0
2 localejbs/AddFileNameToPayloadEJBBean Local Enterprise Bean 0
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The issue is resolved. For me, deleting the additional Jars did n't work, as it caused in deployment error. The clue is to create a java class under a EJB project in NWDS, rather than creating EJB. If we create EJB, the additional HOME, REMOTE,LOCAL HOME interfaces are created. XI explicitly tries to cast them into ModuleHome,ModuleRemote etc, which results in Class Cast exception. If we are just creating a class without these additional Interfaces,XI manages it internally.
But we MUST have the ejbcreate() methods implemented/present in our Module-Class.
If we don't create EJB under EJB Project, then the ejb-jar.xml will not have the representation for Home,Remote, Local Home etc.
So we need to edit the ejb-jar.xml as follows.
<?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>The class name(ex- Myclass)</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>The class name with the package defn(ex- com.xyz.Myclass</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
</enterprise-beans>
</ejb-jar>
For more info, pls follow [http://tleterme.developpez.com/bw/how/HowToCreateAdapterModules.pdf ]
Regards,
SS
try with unlocking the File adapter from VA and then check.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
1) Is the communication channel showing error in runtime workbench?
2) Try changing the Module processing sequence to:
first: CallSapAdapter Local Enterprise Bean 0
second: localejbs/AddFileNameToPayloadEJBBean Local Enterprise Bean 0
Regards,
Aravind
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.