Hi Sharon,
Thank you for getting back to me. Yes this is the code, but what you
can't see is that handle is defined as a STAFHandle in another place,
sorry for the confusion.
/jan
Sharon Lucas wrote:
> Is the following really the Java code you're using to create a new
> STAFHandle?
>
> Handle=new STAFHandle("session");
>
> If so, it's syntax is incorrect. It should be the following as documented
> in the STAF Java User's Guide at
> http://staf.sourceforge.net/current/STAFJava.htm#Header_STAFHandle
>
> STAFHandle handle = new STAFHandle("session");
>
> --------------------------------------------------------------
> Sharon Lucas
> IBM Austin, [email protected]
> (512) 286-7313 or Tieline 363-7313
>
>
>
>
> From: "Andersen, Jan" <[email protected]>
> To: "staf" <[email protected]>,
> Date: 11/22/2011 10:11 AM
> Subject: [staf-users] Using STAF from an Java EE 6 application
> server
>
>
>
> I am developing a web application that needs to call into STAF; the
> application server is GlassFish 3, the java is version 6, and I have
> included a reference to the JSTAF.jar in the server configuration. I try
> to create a new STAFHandle like this:
>
> @ManagedBean
> public class StafSession {
>
> public StafSession() {
> try {
> Handle=new STAFHandle("session");
> } catch (STAFException ex) {
> Logger.getLogger(StafSession.class.getName()).log(Level.SEVERE, null,
> ex);
> }
> name="";
> cmd="";
> }
> ...
>
> - but I get an error, saying:
>
> Could not initialize class com.ibm.staf.STAFHandle
>
> What have I done wrong? Is it the wrong version of java? Something in the
> server setup?
>
> ------------------------------------------------------------------------------
> 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
> [email protected]
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users