<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<font size="-1"><tt>Traditionally JBoss AS (backed by the JNP naming
server) hasn't allowed access to objects bound in java: JNDI namespace
outside of the server JVM. For example, if someone does a
java:DefaultDS lookup from a remote JVM, it's bound to fail with a
NameNotFoundException. However, with the introduction of "Global JNDI
naming scheme" in EJB3.1 spec, which mandates binding of EJBs under the
java:global/ namespace, accessing the beans under java:global/
namespace from outside server JVM becomes necessary. <br>
<br>
>From what I understand, the java: namespace handling (i.e. not allowing
it to be accessed outside the JVM) is a JBoss specific implementation
detail and the spec doesn't mandate that (haven't found a documentation
which says otherwise). <br>
<br>
Is there a way, we can make available the resources under java:
namespace to be available to remote clients, in AS6? I understand that
this might break existing functionality and applications, so probably
we could pass a property through the InitialContext constructor (or
jndi.properties) during a EJB lookup (or any other lookup for that
matter) which would explicitly allow access to this namespace remotely.
Is this something that could be introduced in the naming server
implementation? Or any other better way to handle this?<br>
<br>
<br>
P.S: Looking at the naming server code, I _think_ I might have a very
hackish way of providing a remotely accessible java:global/ namespace,
from within the EJB3 jndi binding code. I haven't tried it though and
would preferably avoid doing it in the EJB3 code.<br>
<br>
<br>
-Jaikiran<br>
</tt></font>
</body>
</html>