[jboss-dev-forums] [Design of EJB 3.0] - Re: Component Proposal - Configurable Service Locator

bill.burke@jboss.com do-not-reply at jboss.com
Mon Jan 8 10:56:26 EST 2007


anonymous wrote : From your point of view is what I am doing wrong or is it just another way to do the same things ? 

IMO, there is rarely a right/wrong way just better ways.  For client configuration your way is better.  The Java EE Client container can provide the same funtionality for you though in most cases (minus interceptors and XML reloading).  The JBoss equivalent to Spring container is JBoss Microcontainer i fyou want to try that out.

anonymous wrote : JNDI parameters are in XMLs, they can be changed easily.
  | Moving services from one EAR to another does not have impact on client source code but only on XMLs. 

Don't bash annotations.  Using annotations are great for fast prototyping or generally providing default values for your injections.  What I'm saying is that even if you use annotations, you can still override them in XML (web.xml, ejb-jar.xml, etc...) to provide the JNDI mappings you desire.  The specifications also support partial XML deployment descriptors so it is real easy to override one env/ entry.

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

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



More information about the jboss-dev-forums mailing list