Loading a dll file in the geronimo
Hi All, Is there a way to load a dll file in to the server JVM, has that to be done by wrapping it as a jar file adding a dependency for it..? I am yet to test on this..? Has some 1 done this earlier..? Thanks, Santosh. Don't talk about yourself; it will be done when you leave. CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS***
Re: Loading a dll file in the geronimo
On Jul 6, 2006, at 1:06 AM, Santosh Koti wrote:Hi All, Is there a way to load a dll file in to the server JVM, has that to be done by wrapping it as a jar file adding a dependency for it..?I am yet to test on this..? Has some 1 done this earlier..?We don't do anything in geronimo to make this easier. You need to use the normal jvm mechanisms. If you come up with some way we can suppport this better we'd love to know: in particular having a dependency on a dll make geronimo load the dll would be good if we can overcome the "you can only load a native library once" problems. I haven't investigated this area for several years but I never could get library loading to work any better than just putting my library in with the jvm's library.thanksdavid jencks Thanks,Santosh."Don't talk about yourself; it will be done when you leave. " CAUTION - Disclaimer *This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.***INFOSYS End of Disclaimer INFOSYS***
Re: Loading a dll file in the geronimo
Geronimo doesn't do anything special to help you load native libraries, nor does it do anything special to prevent you from loading a native library. To load a native library in Java use the System.load(String filename) or System.loadLibrary(String libname) methods. Native libraries can be very difficult to work with, so I suggest you read a tutorial or book on the Java Native Interface, and write a simple standalone test case before attempting to integrate a native library into Geronimo. -dain On Jul 6, 2006, at 1:06 AM, Santosh Koti wrote: Hi All, Is there a way to load a dll file in to the server JVM, has that to be done by wrapping it as a jar file adding a dependency for it..? I am yet to test on this..? Has some 1 done this earlier..? Thanks, Santosh. Don't talk about yourself; it will be done when you leave. CAUTION - Disclaimer * This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system. ***INFOSYS End of Disclaimer INFOSYS***