Discussion:
Java packages in Axapta?
(too old to reply)
Grim
2008-02-04 17:35:00 UTC
Permalink
What is the best way to use java packages in Ax? (note: i do not have the
sources, only jars with compiled class files)

The best thing I could think of was to convert the jars into .NET dlls and
use those. However, Ax could not load dlls created by IKVM.net tool and the
Visual Studio's Jbimp tool turned out to be compatible only with java 1.1.4.

I also tried creating a .NET dll via C# referencing the dlls created by
IKVM, but could not get the dlls to see all of their own interdependencies.

The fundamental goal is to get Ax to execute certain methods of the classes
in the jars using data acquired from Ax itself. Is there anything else I can
try to get this to work?
Markus
2008-02-04 19:10:01 UTC
Permalink
There is no generic Java Interop in Dynamics AX. The classic way to integrate
incompatible software components is to wrap them in a service. So set up an
Application Server, like JBoss or the Reference Implementation from SUN, and
write a webservice around the component. Netbeans has a good support for
creating webbservices. Host you service so it can be reached over HTTP. In
Visual Studio create the wrapper classes or use the wsdl tool to generate the
stub classes. Compile you C# classes to a dll and load the .NET dll in AX.
Now you can use your Java components wrapped as C# components.
--
My LinkedIn Profile:
http://www.linkedin.com/in/noebauer
Xing:
https://www.xing.com/profile/Markus_Noebauer
Post by Grim
What is the best way to use java packages in Ax? (note: i do not have the
sources, only jars with compiled class files)
The best thing I could think of was to convert the jars into .NET dlls and
use those. However, Ax could not load dlls created by IKVM.net tool and the
Visual Studio's Jbimp tool turned out to be compatible only with java 1.1.4.
I also tried creating a .NET dll via C# referencing the dlls created by
IKVM, but could not get the dlls to see all of their own interdependencies.
The fundamental goal is to get Ax to execute certain methods of the classes
in the jars using data acquired from Ax itself. Is there anything else I can
try to get this to work?
dajogl
2011-08-08 15:34:47 UTC
Permalink
a bit sich but one of the ways are that you use JNI and AX BC an example is here:

http://www.flickr.com/photos/jotrox/sets/72157627384220688/
Post by Grim
What is the best way to use java packages in Ax? (note: i do not have the
sources, only jars with compiled class files)
The best thing I could think of was to convert the jars into .NET dlls and
use those. However, Ax could not load dlls created by IKVM.net tool and the
Visual Studio's Jbimp tool turned out to be compatible only with java 1.1.4.
I also tried creating a .NET dll via C# referencing the dlls created by
IKVM, but could not get the dlls to see all of their own interdependencies.
The fundamental goal is to get Ax to execute certain methods of the classes
in the jars using data acquired from Ax itself. Is there anything else I can
try to get this to work?
Post by Markus
There is no generic Java Interop in Dynamics AX. The classic way to integrate
incompatible software components is to wrap them in a service. So set up an
Application Server, like JBoss or the Reference Implementation from SUN, and
write a webservice around the component. Netbeans has a good support for
creating webbservices. Host you service so it can be reached over HTTP. In
Visual Studio create the wrapper classes or use the wsdl tool to generate the
stub classes. Compile you C# classes to a dll and load the .NET dll in AX.
Now you can use your Java components wrapped as C# components.
--
http://www.linkedin.com/in/noebauer
https://www.xing.com/profile/Markus_Noebauer
Loading...