@Deployment
public static Archive<?> deploy() {
WebArchive web = ShrinkWrap.create(WebArchive.class).addPackage(SplitInterceptorsTest.class.getPackage());
BeanArchive fst = ShrinkWrap.create(BeanArchive.class).intercept(TxInterceptor.class);
fst.addPackage(TDAO.class.getPackage());
web.addAsLibrary(fst);
JavaArchive snd = ShrinkWrap.create(JavaArchive.class).addAsManifestResource(new BeansXml().interceptors(TxInterceptor.class), ArchivePaths.create("beans.xml"));
snd.addPackage(CDAO.class.getPackage());
web.addAsLibrary(snd);