public LocalProducerFactory(ConsumerContainer container, Class producer, MessageProperties props, Destination dest, InitialContext ctx, Hashtable icProperties) { super(container, producer, props, dest, ctx, icProperties); try { factoryName = pImpl.connectionFactory(); if (factoryName.equals("")) factoryName = "java:/ConnectionFactory"; } catch (Exception e) { throw new RuntimeException(e); } }
public Object createProxyBusiness() { Class[] interfaces = {producer, ProducerObject.class}; ProducerManagerImpl mImpl = null; mImpl = new ProducerManagerImpl(dest, factory, props.delivery(), props.timeToLive(), props.priority(), methodMap, initialContextProperties, pImpl.transacted(), pImpl.acknowledgeMode()); Interceptor[] interceptors = {mImpl}; ProducerProxy ih = new ProducerProxy(mImpl, interceptors); return java.lang.reflect.Proxy.newProxyInstance(producer.getClassLoader(), interfaces, ih); }
ProducerImpl annotation = new ProducerImpl(di.getClassLoader() .loadClass(producer.getClassName())); if (producer.getConnectionFactory() != null) annotation.setConnectionFactory(producer.getConnectionFactory()); producersAnnotation.addProducer(annotation); ProducerImpl annotation = new ProducerImpl(di.getClassLoader() .loadClass(producer.getClassName())); if (producer.getConnectionFactory() != null) annotation.setConnectionFactory(producer.getConnectionFactory()); producersAnnotation.addProducer(annotation);
pImpl = new ProducerImpl(p); jndiName = producer.getName();
public Object createProxyBusiness() { Class[] interfaces = {producer, ProducerObject.class}; ProducerManagerImpl mImpl = null; mImpl = new ProducerManagerImpl(dest, factoryName, props.delivery(), props.timeToLive(), props.priority(), methodMap, initialContextProperties, pImpl.transacted(), pImpl.acknowledgeMode()); Interceptor[] interceptors = {mImpl}; ProducerProxy ih = new ProducerProxy(mImpl, interceptors); return java.lang.reflect.Proxy.newProxyInstance(producer.getClassLoader(), interfaces, ih); }
public RemoteProducerFactory(ConsumerContainer container, Class producer, MessageProperties props, Destination dest, InitialContext ctx, Hashtable initialContextProperties) { super(container, producer, props, dest, ctx, initialContextProperties); try { String factoryName = pImpl.connectionFactory(); if (factoryName.equals("")) factoryName = "ConnectionFactory"; factory = (ConnectionFactory) ctx.lookup(factoryName); } catch (Exception e) { throw new RuntimeException(e); } }