Sunday 26 March 2017

Workbench | Configure the user inactivity logout

Use below steps to set how much time that Workbench users must be inactive before they are automatically logged out.

1. Stop the Endeca Tools Service.
2. Navigate to $ENDECA_TOOLS_CONF/conf.
3. Open the webstudio.properties file, and locate the com.endeca.webstudio.timeout.warning property.
# The warning for impending auto-logout
com.endeca.webstudio.timeout.warning=3300
 
4. Change the value to the number of seconds of inactivity that you want to elapse before an impending
automatic logout warning appears to an inactive user.
5. Locate the com.endeca.webstudio.timeout.logout property.
# The time where a user will be automatically logged out due to inactivity
com.endeca.webstudio.timeout.logout=3600
 
6. Change the value to the number of seconds of inactivity that you want to elapse before an inactive user is logged out of Workbench.
7. Save and close the file.
8. Start the Endeca Tools Service.

Note : Here time out value specified in seconds.

Application displays below pop up after warning timeout. Here on click on OK user can continue the session without login.

Timeout pop up
Timeout warning Pop up
 
Application display below pop up after session time out time. Here on click on OK, it redirects user to login window.

Session Expire pop  up
Session Expire Pop up

Saturday 18 March 2017

Endeca | Convert Forge output binary records to xml

While trouble shooting forge based application indexing. I was trying to find the way to convert endeca binary records [forge output] to xml records. This is essential to know what is output from Forge to analyze the issue.

Then I found very handy utility from endeca to achieve this : binary2xml utility

This utility is locate at $ENDECA_ROOT/bin.

Using this utility you can easily convert binary records to xml file.

Syntax  : binary2xml.exe <Source binary file> <Output xml file>

Example : binary2xml.exe  Test-sgmt0.records.binary Test.xml 

Below is the sample output generated using this utility.

=========================================================================

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE RECORDS SYSTEM "records.dtd">
<RECORDS>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Tea</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>1</PVAL>
      </PROP>
   </RECORD>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Cup</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>2</PVAL>
      </PROP>
   </RECORD>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Cycle</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>3</PVAL>
      </PROP>
   </RECORD>
   <RECORD>
      <PROP NAME="ProductName">
         <PVAL>Coffee</PVAL>
      </PROP>
      <PROP NAME="ProductId">
         <PVAL>4</PVAL>
      </PROP>
   </RECORD>
</RECORDS>

=========================================================================