Using the scoped EJB context to tie the client context to the jndi context will cause out of memory is used for lookup in a loop. org.jboss.ejb.client.scoped.context : Boolean value (false). If set to true it will enable scoped EJB client context (introduced in AS7.2) which will be tied to the JNDI context, otherwise the EJB client context will use the global selector in the JVM to determine the properties to call the remote EJB and host. OOME (Threads) if scoped EJB context (EJBCLIENT-34) is used with lookups in a loop https://issues.jboss.org/browse/EJBCLIENT-67 Allow Map based InitialContext configuration for ejb: https://issues.jboss.org/browse/EJBCLIENT-34
I hit the same issue with 6.1.0.ER2 too. Adding jboss-eap-6.1.0 flag.
Verified in 6.1.0.ER3.
Details inside vpn: https://post-office.corp.redhat.com/mailman/private/eap-pm-list/2013-July/msg00105.html