Mike,
You should be using the AMX API. OldResourcesMBean is an internal
thing and should not be used.
I think the call is:
domainRoot.getDomainConfig().removeJNDIResourceConfig( name );
See the AMX javadoc:
https://glassfish.dev.java.net/javaee5/amx/index.html
Lloyd
On Apr 7, 2008, at 12:23 AM, Tang Yong wrote:
> Hi Kedar,Admin/JMX Team,
>
> I am sorry to interrupt your work. I have a problem
> about "removeExternalJndiResourceByJndiName".
>
> In the OldResourcesMBean.java, I found that
> "removeExternalJndiResourceByJndiName" is declared the
> interface method.
>
> However, I didnot find the implemetation of
> "removeExternalJndiResourceByJndiName".
>
> By means of the JConsole, I found that the
> "removeExternalJndiResourceByJndiName"
> should lie in the ResourcesMBean.But I did not find it.Then,I
> searched the GF_SRC, but I
> still did not find it.
>
> Could you please help me provide some suggestion?
>
> BTW: the reason that why I look for the
> "removeExternalJndiResourceByJndiName" is
> that I found when executing create-jndi-resource/delete-jndi-
> resource in multi-thread mode,
> in the sever.log, the following exception appeared:
> ...
> java.lang.NullPointerException
> at
> com
> .sun
> .enterprise
> .server
> .ResourceDeployerFactory
> .getResourceDeployer(ResourceDeployerFactory.java:149)
> ...
>
> Best Regard!
> Thanks!
>
> Mike.Tang.
>
---
Lloyd L Chambers
lloyd.chambers_at_sun.com
Sun Microsystems, Inc