Advantages and disadvantages of using JNI

Advantages and disadvantages of using JNI.

Advantages :

- Developers can take the advantage of Java platform.

- Legacy code investments need not be abandoned.

- Interoperability issues can be addressed.

- Implements two-way interface that allows Java applications to invoke native code and vice versa.

Disadvantages :

- It is difficult to debug runtime error in native code.

- Security risk is high.

- JVM causes down by the errors in JNI code and do not provide mechanism for recovery.

- Heavy weight process as all the queries use strings.
What is JTA?
What is JTA? - Java Transaction API is a standard between the transaction manager and the entities participated in the distributed transaction system...
What is bean managed transaction?
What is bean managed transaction? - A bean managed transaction is an explicitly bounded for a specific transaction that is handled by a bean...
What do you mean by demarcation? Explain the types of demarcation
Demarcation and its types - Demarcation specifies a limit for a bean managed transaction...
Post your comment