I just checked with that example and it's working fine. Where are the files/classes located, and how is JmsTemplate instantiated?
-- Scott Wesley Wu wrote: > ======beans.xml=================== > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/javaee > http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> > <alternatives> > > <class>com.buysou.cms.jms.qpid.pool.XaPooledConnectionFactory</class> > </alternatives> > </beans> > > > ========the alternative implementation====== > @Alternative > @ApplicationScoped > public class XaPooledConnectionFactory implements javax.jms.ConnectionFactory > { > > ... > } > > ========usage====== > > public class JmsTemplate { > @Inject > ConnectionFactory factory; > ... > } > > - Wesley > > > _______________________________________________ > resin-interest mailing list > [email protected] > http://maillist.caucho.com/mailman/listinfo/resin-interest > > _______________________________________________ resin-interest mailing list [email protected] http://maillist.caucho.com/mailman/listinfo/resin-interest
