Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

IConnectionProperty properties

Hi,

Is anyone aware of any <b>IConnectionProperty</b> properties that might set a session timeout for a particular user? I am trying to make a JCA call from the Portal login page using a generic user (as this is pre-login). After this call is complete, the connection is no longer needed. But I can see the session remains open until the default timeout which is much too long for this user. Using something like the following code...

Context ctx = new InitialContext();

connectionFactory = (IConnectionFactory)ctx.lookup("deployedAdapters/SAPFactory/shareable/SAPFactory");

IConnectionSpec spec = connectionFactory.getConnectionSpec();

((Map) spec).put("client", "100");

((Map) spec).put("UserName", "test");

((Map) spec).put("Password", "test");

((Map) spec).put("logonmethod", "UIDPW");

((Map) spec).put("Language", "EN");

((Map) spec).put("ashost", "app.test.dom");

((Map) spec).put("sysnr", "25");

I am looking for something like this...

((Map) spec).put("SESSION-TIMEOUT", "1");

...or some sort of documentation on what the valid properties are. The Javadocs only mention UserName, Password and Language.

Thanks for any help you can provide,

JW

Former Member
Not what you were looking for? View more on this topic or Ask a question