To do it in session bean is not allowed by EJB spec.

 -Marco


-----Original Message-----
From: Xie, Jinpeng [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 10, 2002 9:59 AM
To: [EMAIL PROTECTED]
Subject: how to load native library to ejb container


In a stateless session bean, I need to load native library by using
System.loadLibrary("SWEOJNI") in setSessionContext. I got the following
error:

Could not create stateless EJB: java.security.AccessControlException: access
denied (java.lang.RuntimePermission loadLibrary.SWEOJNI) at
com.sun.ejb.containers.StatelessSessionContainer.createStatelessEJB(Stateles
sSessionContainer.java:358)
at
com.sun.ejb.containers.StatelessSessionContainer.getContext(StatelessSession
Container.java:285) at
com.sun.ejb.containers.BaseContainer.preInvoke(BaseContainer.java:365)
at
fsu.ais.jstew.ejb.ItemListGatewayBean_EJBObjectImpl.prepareForLogin(ItemList
GatewayBean_EJBObjectImpl.java:230)
------------------------------------------

How do I set up permission to allow container to load native libraries? Any
help is highly appriciated.


Jim

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

==========================================================================To 
unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to