How to configure the context params in Web.xml?
<context-param>
<param-name>APPL_SERVER_ID</param-name>
<param-value>0F4BC9301420146EE053A070390AA93B15769402038552357083879215854267</param-value>
</context-param>
--------------------------------------------------------------------------------------------------------------------------
How to get that value in backing bean?
import javax.servlet.ServletContext;
ServletContext servContext = (ServletContext)ADFContext.getCurrent().getEnvironment().getContext();
String applServerID = servContext.getInitParameter("APPL_SERVER_ID");
<context-param>
<param-name>APPL_SERVER_ID</param-name>
<param-value>0F4BC9301420146EE053A070390AA93B15769402038552357083879215854267</param-value>
</context-param>
--------------------------------------------------------------------------------------------------------------------------
How to get that value in backing bean?
import javax.servlet.ServletContext;
ServletContext servContext = (ServletContext)ADFContext.getCurrent().getEnvironment().getContext();
String applServerID = servContext.getInitParameter("APPL_SERVER_ID");
---------------------------------------------------------------------------------------------------------------------
Query on database to see the APPL_SERVER_ID on database:
select node_name,node_id,server_id from fnd_nodes
No comments:
Post a Comment