Actually, its the first. You are not allowed to call native code from an
EJB. From the EJB Spec 1.1, Section 18.1.2, Programming Restrictions (page
274):

* The enterprise bean must not attempt to load a native library.

Kurt in Atlanta

>-----Original Message-----
>From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, October 25, 2000 7:28 PM
>To: Orion-Interest
>Subject: RE: calling native code from ejb
>
>
>I can think of only two possible reasons. One, you are not 
>allowed to call
>native code from EJB, and two, your native code is causing some sort of
>problem. The first..I am not sure if that is the case or not. 
>The second
>seems more likely to me..something might be wrong in your call 
>to JNI, the
>native code may be causing the exception which your java code 
>is reporting,
>etc. Sorry..I don't know much else about it.
>
>
>> -----Original Message-----
>> From: Luis M Bernardo [mailto:[EMAIL PROTECTED]]
>> Sent: Wednesday, October 25, 2000 2:56 PM
>> To: Orion-Interest
>> Subject: calling native code from ejb
>> 
>> 
>> 
>> 
>> hello,
>> 
>> I have no experience calling native code from java applications but I
>> managed to write my first stateless seesion bean that uses a 
>> java class
>> that calls native methods. when use a client to invoke a 
>method in the
>> bean I get the following error:
>> 
>> ----
>> C:\orion>java
>> -Djava.library.path=u:\bernardo\javaqt\unlic\com\thi\quanttools -j
>> ar orion.jar
>> Orion/1.3.8 initialized
>> #
>> # An EXCEPTION_ACCESS_VIOLATION exception has been detected 
>> in native code
>> outsi
>> de the VM.
>> # Program counter=0x10001c48
>> #
>> #
>> # An EXCEPTION_ACCESS_VIOLATION exception has been detected 
>> in native code
>> outsi
>> de the VM.
>> # Program counter=0x10001c48
>> #
>> ----
>> 
>> can someone suggest what the problem is. can I call native 
>> methods from
>> ejbs?
>> 
>> thanks.
>> 
>> 
>> 
>> 
>

Reply via email to