STAF uses JNI (Java Native Interface) so that STAF Java APIs run via a JVM
can call STAF C/C++ APIs (and vice versa) which is why libJSTAF.so is also
required. STAF itself is a C++ application but provides Java APIs (as
well as APIs for Python, Perl, and Tcl) so that you can submit STAF
service requests from any of these languages.
However, as JSTAF.jar and libJSTAF.so are not changing when you make a
change to your code, so I don't know why GlassFish wants to reload them.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: agou <a...@talktalk.net>
To: staf <staf-users@lists.sourceforge.net>,
Date: 12/01/2011 08:36 AM
Subject: [staf-users] A question about JSTAF.jar
Or perhaps several questions.
I am working on an interface to STAF in a web application, written in
Java and deployed on a GlassFish server. This works very well as such,
but every time I make even the smallest change to the code, I have to
re-deploy the application, and then GlassFish wants to load another
instance of libJSTAF.so, which fails; and the only cure is to restart
the GlassFish software. This means that it is incredibly frustrating
to work with.
What do other people do? I would have imagined that one could tell the
server to load JSTAF.jar and the shared library as part of its
configuration, and that one could tell the IDE (I use NetBeans) to do
the same, so I won't have to include JSTAF.so in the application
package; after all, that is how things like JDBC works, more or less.
Why is it that libJSTAF.so gets loaded when JSTAF.jar is included? Is
there a way to avoid this?
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users