Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can WBI plugins use native code like other Java programs?

0
Posted

Can WBI plugins use native code like other Java programs?

0

Yes. Because WBI is written in Java, WBI plugins can use native code through the Java Native Interface (JNI). The example History plugin does this. Native code should reside in special subdirectories. We provide a method Proxy.getNativePath() that allows you to write platform independent Java code for loading native libraries. The idea is to separate native code into platform dependent subdirectories. The names of these directories reflect the operating systems and architectures that the native code was compiled for. The names can be determined by a Java program at runtime. See Proxy.getNativePath() for details. • What are some useful packages and classes in WBI? The com.ibm.wbi.http.beans package contains many useful MEG classes that you can extend or use as is. The DocumentInfo class is helpful for getting information about HTTP requests and responses. DocumentInfo instances are obtained by calling getRequestInfo on a RequestEvent and casting the result to a DocumentInfo.

0
10

Yes. Because WBI is written in Java, WBI plugins can use native code through the Java Native Interface (JNI). The example History plugin does this. Native code should reside in special subdirectories. We provide a method Proxy.getNativePath() that allows you to write platform independent Java code for loading native libraries. The idea is to separate native code into platform dependent subdirectories. The names of these directories reflect the operating systems and architectures that the native code was compiled for. The names can be determined by a Java program at runtime. See Proxy.getNativePath() for details. • What are some useful packages and classes in WBI? The com.ibm.wbi.http.beans package contains many useful MEG classes that you can extend or use as is. The DocumentInfo class is helpful for getting information about HTTP requests and responses. DocumentInfo instances are obtained by calling getRequestInfo on a RequestEvent and casting the result to a DocumentInfo. When writin

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.