@EJB injection on Tomcat side
===

Trying to inject a bean from a jar deployed on JBOSS AS 7.1 into a class from a war deployed on Tomcat 7.0 does not work for me.

    @Remote
    public interface Transaction {
    	public abstract boolean getPaid(float value);
    }

    @Stateless
    @EJB(name="myejb", beanInterface=Transaction.class)
    public class TransactionImpl implements Transaction {
    ...
    }

context.xml from Tomcat side app:

    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    	<Resource name="myejb" type="javax.naming.Context"
    		factory="org.jnp.interfaces.NamingContextFactory" URL="jnp://127.0.0.1:1099/payment-1.0-SNAPSHOT.jar" />
    </Context>

Injecting EJB:

    public class Client {

	@EJB
	Transaction transaction;
    ...
    }

Trying to debug Tomcat webapp with Eclipse IDE reveals transaction variable's value null which i interpret as unprocessed injection.

Thanks for help!