activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Active MQ Integration with JBoss DataSource. JNDI Lookup fails
Date Tue, 01 May 2007 16:29:53 GMT
If you're using Spring to configure the data source, why not just drop
JNDI altogether & use Spring?

On 5/1/07, tnine <todd.nine@gmail.com> wrote:
>
> Just an Update.  I've also tried the following for the JNDI connection.
> Whenever I view the jmx-console, my data source has connected and started
> successfully, any help would be greatly appreciated.  I'm thoroughly stumped
> on this one, my knowledge of deploying RARs is minimal.
>
> new config snippit
> [code]
> <bean id="mysql-jndi"
> class="org.springframework.jndi.JndiObjectFactoryBean">
>         <property name="jndiName" value="jdbc/ActiveMQDS"/>
>         <property name="jndiTemplate" ref="jndiTemplate"/>
>         <property name="cache" value="false"/>
>         <property name="proxyInterface" value="javax.sql.DataSource"/>
>   </bean>
>
>         <bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
>                 <property name="environment">
>                         <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:org.jnp.interfaces</prop>
>                         </props>
>                 </property>
>         </bean>
> [/code]
> --
> View this message in context: http://www.nabble.com/Active-MQ-Integration-with-JBoss-DataSource.--JNDI-Lookup-fails-tf3671136s2354.html#a10271819
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message