How about a "minimal" JBoss setup? The architecture of JBoss is such that you only need to deploy the services you are going to use. Look at the minimal directory - it comes with JNDI and the deployer service. Nothing else.
Well, I'm just looking at Sun's JNDI implementation, turns out that you can pick and chose the bits that you want, so I thought that I might try to get the COS naming service running on top of IBM's JDK..
lol, gutton for punishment!!
Then maybe I'll try to extract the naming service stuff (JBossNS) from a JBoss install and try running that on its own..
Wonder if it needs to be running or its possible to call it on demand..