Hi, Is it possible to call win DLLs in java code if yes,how can i do this Thanks in advance
posted 15 years ago
Yes... using JNI (Java Native Interface). And if you do, there goes portability out the window IMHO in an EJB it makes even less sense. Maybe it would make more sense in a stand alone app that one expects to run only in Windows... ?
Tony Alicea Senior Java Web Application Developer, SCPJ2, SCWCD
According to the spec, an EJB isn't allowed to use JNI. Not only is portability lost, but EJBs are operating inside a complex server environment to begin with. JNI could cause the server to behave unreliably.
An IDE is no substitute for an Intelligent Developer.