[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Referenced datasource not found with JBoss 5.0 (Beta4)

depryf do-not-reply at jboss.com
Sun Apr 13 09:46:37 EDT 2008

Thank you very much jaikiran, this is exactly what I was trying to do, but I had a hard time explaining it. 

The reason why we use a different resource-name for the datasource in our EJB code than what is defined in the -ds file is because our application is customizable and need to be deploy using different databases for different clients. The way we did that is to define a bunch of different datasource JNDI in the -ds file (like app-specific/datasource) but map all of them to the same reference datasource in our code (app/datasource). That way our EJB code remains generic.

The explanation about Web environment vs EJB environment makes total sense, although this is not something I would expect to change from 4.X to 5.0 ;-)

I will try to add the missing EJB references this week and see if it works.

Thanks again for all the comments!

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143709#4143709

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4143709

More information about the jboss-user mailing list