OK, with paramName, that can be configured externally in web.xml. Yes the paramName is hard coded, but its value can be changed from the web.xml file thus preventing code changes. You recommend using JNDI, which is great, but doesn't solve my problem. Here's why:
So in the above example I have three things that I consider "hard coded". Number one is the url to the JNDI tree, number two is the INITIAL_CONTEXT_FACTORY value of "weblogic.jndi.WLInitialContextFactory", and number three is the DataSource with the value of "jhuDataSource". I'm new to EJB, but they are supposed to be distributable and configurable right?. I thought for sure there would be a way to supply these pieces of information to my EJB without hard coding, but now I'm not sure. In a servlet or
JSP you use the web.xml file to supply parameters like these. Can you do this with EJB?
Ryan