c# - Access Dynamic AX methods using JAVA -
I need to use the Something else in the C # code. Strong> This is the thing that we have written business logic AX, but now how to migrate us to Using JNI, we load the dynamic AX connector DLL file and above the extata object in Java? (I do not expect) No, probably not directly Can we write some dynamic C # code (standalone C # program), such as, POJO returns returns like an object function .... and then a DLL file for the above function Make and access the same using JNI. Like , you can not pass Java to some C # objects directly but you need to create a JNA wrapper for some C # DLL and all together Should be able to link. I recommend creating a stand alone DLL which has some uniform interface to communicate with AX, which you can fulfill your needs. You can do all your testing with your executable very deeply in the JNI part and work your insects. Due to this, debugging JNI problems is a nightmare, and if you are jumping around JVM in your original code and going to Net Framework, debugging is going to be next to impossible. When you are satisfied that your library is working properly, create a JNI (or even JNA) cover for your new .NET native lib and basically just use your library and as a result Translate result into code in Java object. Does Microsoft provide some Java libraries to connect directly to Dynamic AX? (Should not be !!) I doubt it seriously. The above approach assumes that you only need this JNI code. Want to run on NET supported Windows platform. If this is not the case, then you have to talk to the backing server directly from the database or through some other API based interface. I'm assuming that the business connector you're talking about is C # or Has been implemented in the net. If it is an open source or protocol used to communicate with the server, then it is documented, leave the original code and re-apply that connector to Java. If not, then your only option would be a reverse engineer, and it would not be beautiful. Dynamic X to
Java .
I have gone through many blogs and articles, but I could not move it.
see the structure,
Dynamic AX < / Code> Here are the general methods (or the way we are doing) to get and to get it
Dynamic AX Business Connector (DLL file) by loading
AxaptaObject (App Connector) and
AxaptaContainer (Data Container).
The question now is,
JNI code> we
axapta in
Java over the object, can load the
dynamic x connector DLL file ?
returns POS objects like function ( accepts < Code> Method Name AX ,
Method parameter ) {
// fetch 'AxaptaObject', Process method and Client response (Merciful ) Of the image),
}
and then create a DLL file for the above function and then
JNI .
C # code in
Java is required.
Comments
Post a Comment