Element Details: Java+Session+Copying
 Back


Available in: Logi Info Source code name: JavaSessionCopyingIntroduced in: v11.0.127

When Info for Java is integrated with another Java application, the session variables are maintained in different ways. The two applications may need to copy session variables so they may be shared. Info session variables are accessed via @Session values. Java session variables are accessed via JSP or in a Java program via javax.servlet.http.HttpSession.

This JavaSessionCopying element enables session variable copying between Java applications.

There are four attributes which control which session variables are copied. These are CopyFromJavaInclude, CopyFromJavaExclude, CopyToJavaInclude and CopyToJavaExclude. Use these attributes to control which variables are copied. There is a small performance penalty for this process, so it's best to minimize the number of copied variables.

The "include" attributes are processed first, then the "exclude" attributes.

In Info versions prior to 11.0.115, almost all session variables were automatically copied. This behavior was sometimes not best for performance. To restore the previous behavior, add this element like this:

<JavaSessionCopying CopyToJavaInclude="^" CopyToJavaExclude="DebugFile,-bUsesSort$,-tra$,-xmlDef$,-Xsl$,-rdDef$" CopyFromJavaInclude="^"
CopyFromJavaExclude="^rd,^dt" />

This element is not used for .NET applications.



ATTRIBUTES

Click attribute Name to drill down for more information.

NamePossible ValuesDescription
CopyFromJavaExclude
UserDefined
This attribute identifies Java session variables that will NOT be copied to the Info session space. It is a comma delimited list of regular expressions. It can be difficult to write Regular Expressions which both include and exclude strings. This attribute is processed after CopyFromJavaInclude, removing variables from that list. Do not use session variable names that contain spaces.
CopyFromJavaInclude
UserDefined
This attribute controls which Java session variables will be copied to the Info session space. It is a comma delimited list of regular expressions. Do not use session variable names that contain spaces.
CopyToJavaExclude
UserDefined
This attribute identifies Info session variables that will NOT be copied to the Java session space. It is a comma delimited list of regular expressions. It can be difficult to write Regular Expressions which both include and exclude strings. This attribute is processed after CopyToJavaInclude, removing variables from that list. Do not use session variable names that contain spaces.
CopyToJavaInclude
UserDefined
This attribute controls which Info session variables will be copied to the Java session space. It is a comma delimited list of regular expressions. Do not use session variable names that contain spaces.



PARENT ELEMENTS

Click element to drill down for more information.

Setting


CHILD ELEMENTS

Click element to drill down for more information.



 Back to top