on 03-13-2013 6:32 AM
Hi Experts,
I have developed an EJB Project for an Adapter Module in NWDS.
Before Deployment, While building the Project,it is not building and not giving any error when I check in Build Folder of the Project.
But I can see physically at Build Folder in the WorkSpace, there is Class folders.
I used to the following PDFs to develop this EJB Project:
1. How To... Create Modules for the JEE Adapter Engine
2. How To… Create Modules for the J2EE Adapter Engine
What mey be issue and how to solve the same?
Regards,
Sreeni.
Hi,
What do you see in the console log then ? There has to be something...
Regards,
Michal Krawczyk
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Now I was able to deploy, but when i check in JNDI Regestry , I am not getting Object Name, but in Context name I can see my JNDI name as SreeJNDI..
Because of this my adapter is giving error as below:
-------------------
Attempt to process file failed with com.sap.engine.services.jndi.persistent.exceptions720.NameNotFoundException: Object not found in lookup of SreeJNDI.
------------------------------
Please le me know what may be issue in NWDS while Developing Adapter Module?
Regards,
Sreeni.
Hi Michal,
I have Deployed and used the same in File Adapter Sender Module as below: (I did not get any log in CC Monitoring about the this newy Deployed Module).
In the above delpoyed mdule i have written the as below to set the source directory value at runtime.
Here my intension is that I have to pick the file from a source directory based on environment.
If PI server is DEV then source directory ="//myeccserver/interface/payments/Bank/ECD";.
If PI server is TEST/QA then source directory ="//myeccserver/interface/payments/Bank/ECT";.
If PI server is PROD then source directory ="//myeccserver/interface/payments/Bank/ECP";.
See the below code from EJB Module:
-----------------------------------------------------------------------------------------------
public ModuleData process(ModuleContext moduleContext, ModuleData inputModuleData) throws ModuleException{
Object obj = null; // Handler to get Principle data
Message msg = null; // Handler to get Message object
String sourceDirectory = null; // sourceDirectory Name which is being processed
String sid = null;
AuditAccess audit = null;
MessageKey key1;
try {
obj = inputModuleData.getPrincipalData();
msg = (Message) obj;
MessagePropertyKey key = new MessagePropertyKey("Directory", "http://sap.com/xi/XI/System" );
key1 = new MessageKey(msg.getMessageId(),msg.getMessageDirection());
audit = PublicAPIAccessFactory.getPublicAPIAccess().getAuditAccess();
sid = System.getProperty("SAPSYSTEMNAME");
if (sid.equals("XID")){
sourceDirectory = "//myeccserver/interface/payments/Bank/ECD";
audit.addAuditLogEntry(key1, AuditLogStatus.SUCCESS, " sourceDirectory: "+sourceDirectory);
}
else{
if (sid.equals("XIT")){
sourceDirectory = "//myeccserver/interface/payments/Bank/ECT";
audit.addAuditLogEntry(key1, AuditLogStatus.SUCCESS, " sourceDirectory : "+sourceDirectory);
}
else{
if (sid.equals("XIP")){
sourceDirectory = "//myeccserver/interface/payments/Bank/ECP";
audit.addAuditLogEntry(key1, AuditLogStatus.SUCCESS, " sourceDirectory : "+sourceDirectory);
}
}
}
msg.setMessageProperty(key,sourceDirectory);
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
throw new ModuleException(e);
}
return inputModuleData;
}
-----------------------------------------------------------------------------------------------
Pleat me know if any thing missed the above.
Regards,
Sreeni.
Hi Again,
I got the below error for my CC and Log Veiwer in NWA, but not able to trace the problem.
Please any body got this kind of error.
I think Michal and Raja Sekhar and some other developed these kind of modules.
Here the custom adapter module have to call first, then only other standerd modules, but i can not see trace in the log about the custome adapter module.
Please suggest me further.
Regards,
Sreeni.
Hi Pragya,
This may be the issue with the view perspective you have selected in NWDS.
You can delete the unwanted folder structures under the build as per the document by directly going to the file path in your computer, and then refresh the project in NWDS. This will do the same thing as given in the How-To-Guide.
hope this will help.
Regards,
Suman
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.