Not sure why it needs to be determined at runtime but have you tried:
EntityManager em = (EntityManager)Component.getInstance(someRuntimeString, true);
???
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090409#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...