A native library is a .dll, for example. Written in C or whatever language you want. And you can use JNI to access it.
The first problem of doing this is portability. The EJB Spec does not say that all containers must even allow it.
And related to security, a exception thrown by your native library may crash your container(like a divide by zero, for example).
The bottom line is, don't do it!