How do I add a method to the data mapper?
I have taken the sample code (http://support.adeptia.com/entries/21277658-Sample-code-for-Custom-Method-Class), removed 2 of the 3 functions, calling it GlobalMethodCall2 in Eclipse and placing the .class file into the directory. I tried again by making a copy of the existing GlobalMethodCall.class and renaming it GlobalMethodCall2.class and putting it in, the same thing happens.
-
Normally in Custom class folder if any of the class have the issues then it will not be get loaded into the Data mapper. From your details we can understand that you are facing the issues just after placing the GlobalMethodCall.class.
It seems that you have renamed the original class file to but the actual class may be GlobalMethodCall2.class. Java aspects the class file to be of same name which you have used while creating the class i.e.GlobalMethodCall.class and not GlobalMethodCall2.class.
If you are trying to add one more class by modifying GlobalMethodCall.class then try generating a new class with a different name i.e. for ex. GlobalMethodCall2 using .java compiler by removing the two methods as you mentioned. After compilation put the Class file i.e. GlobalMethodCall2.class in custom classes folder and restart Adeptia.
We have checked the Custom classes sent by you and found that there is a version mismatch of jdk for class GlobalMethodCall2.class. We found that GlobalMethodCall2.class is compiled with jdk version 5 but this should be compiled with jdk version 6 i.e. supported by Adeptia.
0 -
1) Stop the Kernel and WebRunner
2) Place the class file in the ./ServerKernel/customClasses folder
3) Start the Kernel and WebRunner0
Post is closed for comments.
Comments
2 comments