How to Bind values into JNDI in JBoss EAP 6 similar to the JNDIBindingServiceMgr?
Issue
- How to bind an arbitrary string into JNDI in JBoss EAP 6? This could be done through
org.jboss.naming.JNDIBindingServiceMgrMBean in previous EAP versions. - Is there anything similar to
org.jboss.naming.JNDIBindingServiceMgrin JBoss EAP 6? - After adding the following in
standalone.xml file:
<subsystem xmlns="urn:jboss:domain:naming:1.4">
<simple name="java:url/url_userstore_client" value="http://remotingqa.abc.com/userstoresvcjws/" type="java.net.URL" />
<remote-naming/>
</subsystem>
following ERROR pops up in server.log file :
Message: JBAS014789: Unexpected element '{urn:jboss:domain:naming:1.4}simple' encountered
- We are running EAP 6.2 and would like to bind some object into JNDI. Right now we're interested in binding URL and String objects into JNDI. We want these objects to be available to several webapps so we're thinking they need to be in a server-wide context. In any case, it doesn't look like this can be done through the admin console so we're looking for your recommended approach.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
