Hello there! Here's my scenario:
I have a spring application on a tomcat machine. I need access an SLSB on a remote JBoss machine. From what I've seen so far about SLSB examples, it seems that all of 'em starts with the principle that we have both applications under the same VM (there's no jndi configuration regarding the url).
As far as I know I need some initial context configuration like below:

java.naming.factory.initial=org.jnp.interfaces.Nam ingContextFactory
java.naming.provider.url=jnp://remoteMachine:1099
java.naming.factory.url.pkgs=org.jboss.naming:org. jnp.interfaces

My question is, how would I configure my app? I'm already using <jee:> schema for lookups on tomcat's jndi provider, how can I register an outside provider (in this case, jboss')

Best regards