Products Downloads


French version


 

On each page in which the Pool is to be used, it is essential to reference the component "com.hardis.adelia.pool.PoManager"

 

<% // Instantiation of Pool manager %>

<jsp:useBean class="com.hardis.adelia.pool.PoManager" id="Manager" scope="application"></jsp:useBean>

 

<% // Instantiation of AdeliaBean component %>

<jsp:useBean class="MyPackage.MyBean" id=" AdeliaBean "></jsp:useBean>

 

<% // Initialization of AdeliaBean component parameter %>

<% AdeliaBean.setCUSTCODE("CO12"); %>

 

<% // Call to AdeliaBean component with use of Pool by default%>

<% Manager.refresh(AdeliaBean); %>

 

or

 

<% // Call to AdeliaBean component with use of particular pool "PoolName" %>

<% Manager.refresh(AdeliaBean, "myPool"); %>

 

The manager handles reservation and release of a session and returns the errors that were thrown during processing.

In the event of an error, make three attempts before giving up. Error messages can be accessed in the stdout.txt file.

 

Reminder: Call to Adelia component without using pool

 

<% // Instantiation of AdeliaBean component %>

<jsp:useBean class="MyPackage.MyBean" id=" AdeliaBean "></jsp:useBean>

 

<% // Initialization of AdeliaBean component parameter %>

<% AdeliaBean.setCUSTCODE("CO12"); %>

 

<% // Call to AdeliaBean component %>

<%AdeliaBean.call(); %>

 

   Back

 

↑ Top of page


  • Aucune étiquette