Revision 232
Added by bojilova over 24 years ago
src/edu/ucsb/nceas/metacat/MetaCatSession.java | ||
---|---|---|
30 | 30 |
// JNI (Java Native Interface) routines for SRB |
31 | 31 |
static String srbHost; |
32 | 32 |
static String srbPort; |
33 |
static SrbJavaGlueInterface srbJG; |
|
33 |
static SrbJavaGlueInterface srbJG = null;
|
|
34 | 34 |
static { |
35 | 35 |
try { |
36 | 36 |
Properties SRBProps = new Properties(); |
... | ... | |
90 | 90 |
int srbconn = 0; |
91 | 91 |
int err; |
92 | 92 |
|
93 |
if (srbJG == null) return false; |
|
94 |
else return true; |
|
95 |
/* |
|
93 | 96 |
// try SRB RMI Connection |
94 | 97 |
// integer value of the SBR Connection ID is returned only |
95 | 98 |
try { |
... | ... | |
118 | 121 |
// store SRB Connection in the session for later use if necessary |
119 | 122 |
this.session.putValue("srbconnection", new Integer(srbconn)); |
120 | 123 |
return true; |
124 |
*/ |
|
121 | 125 |
} |
122 | 126 |
|
123 | 127 |
/** |
Also available in: Unified diff
testing login