Java Reference
In-Depth Information
org.jnp.interfaces.NamingContextFactory
</prop>
<prop key="java.naming.provider.url">
jnp://localhost:1099
</prop>
<prop key="java.naming.factory.url.pkgs">
org.jboss.naming.client
</prop>
</props>
</property>
</bean>
<bean id="qReport" class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName" value="queue/reportQ" />
<property name="jndiEnvironment">
<props>
<prop key="java.naming.factory.initial">
org.jnp.interfaces.NamingContextFactory
</prop>
<prop key="java.naming.provider.url">
jnp://localhost:1099
</prop>
<prop key="java.naming.factory.url.pkgs">
org.jboss.naming.client
</prop>
</props>
</property>
</bean>
<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate" >
<property name="connectionFactory" ref="qConnectionFactory"/>
<property name="defaultDestination" ref="qReport"/>
</bean>
<bean id="reportingDelegate"
class="com.apress.insurance.view.delegate.impl.ReportingDelegateImpl">
<property name="jmsTemplate" ref="jmsTemplate" />
</bean>
</beans>
 
 
Search WWH ::




Custom Search