<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
We should have an update of the org.jboss.naming.JNDIBindingService
that exists in AS6, but apparently still only used and an mbean.
Here are a couple of testsuite configuration files:<br>
<br>
[38](ironmaiden:trunk) > cat
testsuite/src/resources/client/urlbinding-service.xml<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!DOCTYPE server PUBLIC "-//JBoss//DTD MBean Service 4.0//EN"<br>
<a class="moz-txt-link-rfc2396E" href="http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd">"http://www.jboss.org/j2ee/dtd/jboss-service_4_0.dtd"</a>><br>
<server><br>
<mbean code="org.jboss.naming.JNDIBindingServiceMgr"<br>
name="jboss.tests:service=JNDIBindingServiceMgr"><br>
<attribute name="BindingsConfig" serialDataType="jbxb"><br>
<jndi:bindings<br>
xmlns:xs=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
xmlns:jndi="urn:jboss:jndi-binding-service:1.0"<br>
xs:schemaLocation="urn:jboss:jndi-binding-service:1.0
<a class="moz-txt-link-freetext" href="resource:jndi-binding-service_1_0.xsd">resource:jndi-binding-service_1_0.xsd</a>"<br>
><br>
<jndi:binding name="SomeWebSite"><br>
<jndi:value
type="java.net.URL"><a class="moz-txt-link-freetext" href="http://www.somesite.com">http://www.somesite.com</a></jndi:value><br>
</jndi:binding> <br>
</jndi:bindings><br>
</attribute><br>
</mbean><br>
<br>
</server><br>
<br>
[40](ironmaiden:trunk) > cat
testsuite/src/resources/xml/mbeanserver/testBinding.xml<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<!-- $Id: testBinding.xml 34236 2005-07-29 13:25:44Z starksm $
--><br>
<br>
<!-- An example legacy jboss-service.xml that contains an
attribute type from<br>
an unknown namespace with a schmema binding unknown to the
SARDeployer.<br>
--><br>
<server><br>
<mbean code="org.jboss.naming.JNDIBindingService"<br>
name="jboss.tests:service=JNDIBindingService"><br>
<attribute name="Bindings" serialDataType="jbxb"><br>
<jndi:bindings<br>
xmlns:xs=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
xmlns:jndi="urn:jboss:jndi-binding-service"<br>
xs:schemaLocation="urn:jboss:jndi-binding-service
jndi-binding-service_1_0.xsd"<br>
><br>
<jndi:binding name="ctx1/key1"><br>
<jndi:value>value1</jndi:value><br>
</jndi:binding><br>
<jndi:binding name="ctx1/user.home"><br>
<jndi:value>${user.home}</jndi:value><br>
</jndi:binding><br>
<jndi:binding name="ctx1/key2"><br>
<jndi:value
type="java.net.URL"><a class="moz-txt-link-freetext" href="http://www.jboss.org">http://www.jboss.org</a></jndi:value><br>
</jndi:binding><br>
<jndi:binding name="ctx2/key1"><br>
<custom:properties
xmlns:custom="urn:jboss:custom-object-binding"<br>
xs:schemaLocation="urn:jboss:custom-object-binding
custom-object-binding.xsd"><br>
<custom:property><br>
<custom:key>key1</custom:key><br>
<custom:value>value1</custom:value><br>
</custom:property><br>
<custom:property><br>
<custom:key>key2</custom:key><br>
<custom:value>value2</custom:value><br>
</custom:property><br>
</custom:properties><br>
</jndi:binding><br>
<br>
<jndi:binding name="hosts/localhost"><br>
<jndi:value
editor="org.jboss.util.propertyeditor.InetAddressEditor"><br>
127.0.0.1<br>
</jndi:value><br>
</jndi:binding><br>
<br>
</jndi:bindings><br>
</attribute><br>
</mbean><br>
<br>
</server><br>
[41](ironmaiden:trunk) > <br>
<br>
<a class="moz-txt-link-freetext" href="http://community.jboss.org/wiki/JNDIBindingServiceMgr">http://community.jboss.org/wiki/JNDIBindingServiceMgr</a><br>
<br>
On 4/9/11 1:06 AM, Jaikiran Pai wrote:
<blockquote cite="mid:4DA013A1.30908@redhat.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<font size="-1"><tt>While looking into
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://issues.jboss.org/browse/JBAS-9261">https://issues.jboss.org/browse/JBAS-9261</a>
I realized that we don't
currently have support for non java: namespace JNDI bindings.
The
example application in that JIRA has a reference to a resource
(a EJB
in this case via ejb-ref and ejb-local-ref) and that reference
points
to a lookup name "Blah" (which is outside of java: namespace).
Pre-AS7
days we allowed EJBs and other resources to be bound outside
of java:
namespace and then allow ejb-ref to point to that binding.
Currently,
in AS7 which is backed by Services for jndi bindings, I don't
see how
to deal with that since we don't have Services for non java:
namespaces. Looking at this
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://community.jboss.org/wiki/JavaEEImplementationTechnicalRequirements">http://community.jboss.org/wiki/JavaEEImplementationTechnicalRequirements</a>
wiki I don't see it being covered. How do we plan to support
such
deployments, in AS7? Or more specifically, will binding
outside of
java: be backed by MSC services?<br>
<br>
-Jaikiran <br>
</tt></font>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
jboss-as7-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>