DX Version: 9.5 CF228
Operating System: LINUX
Problem/Query:
I need to retrieve some custom Properties in WP_ConfigService to show from a Portlet.
For example, i’m trying to retrieve “managed.pages”. My steps are:
1º) Define the resource in web.xml
Access WP ConfigService properties
managed.pages
java.lang.String
2º) Create a bind in ibm-web-bnd.xml
3º) Call from doView() in portlet
String valueManage = (String) ctx.lookup(“java:comp/env/managed.pages”);
When I access to the portlet, the value isn’t retrieve and SystemOut show:
A NameNotFoundException occurred on an indirect lookup on the name java:comp/env/managed.pages. The name java:comp/env/managed.pages maps to a JNDI name in deployment descriptor bindings for the application performing the JNDI lookup. Make sure that the JNDI name mapping in the deployment descriptor binding is correct. If the JNDI name mapping is correct, make sure the target resource can be resolved with the specified name relative to the default initial context.
I have verified that the custom property exist (and I try with others, with the same result).
Where Have I the mistake?
Thanks