What shoul I do to use OrientDB's JNA?

I use GlassFish 4.0, and have added  -Djna.nosys=true option
asadmin> create-jvm-options -Djna.nosys=true

In application I have ServletContextListener
public class MySCL implements ServletContextListener {
  OObjectDatabasePool pool;
 @Override
 public void contextInitialized(ServletContextEvent sce) {
    pool=new OObjectDatabasePool();
    pool.setup(1, 20);
    OObjectDatabaseTx db = pool.acquire("plocal:/odb01", "admin", "admin");
    db.getEntityManager().registerEntityClasses("pojo");
    db.close();
 }
   @Override
  public void
  contextDestroyed(ServletContextEvent sce){
    pool.close();
 }
}


but when deploying there is still warning to use diffrent JNA.
[2014-04-14T17:42:53.277+0200] [glassfish 4.0] [WARNING] [] [java.lang.Class
] [tid: _ThreadID=36 _ThreadName=admin-listener(3)] [timeMillis: 
1397490173277] [levelValue: 900] [[
 Sun Unsafe direct  memory implementation is going to be used, 
thisimplementation 
is not stable so please use JNA version instead.]]

Best regards
Tomek

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to