as step of migration to JBoss 7, I want first to migrate from JBoss Cache to Infinispan. As you might know, there is libraries version problem between what JBoss 5.1 got and what Infinispan uses. Therefore I needed to include newer versions in lib directory of my WARs to get Infinispan working. I cannot make same trick with my session beans (it's separate EJB-JAR file, as multiple WARs are using it). The problem is, I don't know how to 'tell' this JAR should use different libs (not the ones from AS).
I tried to put all into EAR, however that is changing JNDI names of the beans and escalates the number of changes.