[jboss-dev-forums] [Design of EJB 3.0] - Component Proposal - Configurable Service Locator
ALRubinger
do-not-reply at jboss.com
Tue Dec 26 01:04:53 EST 2006
Given the number of JNDI/InitialContext-related questions concerning client access to EJB3 Services on the User Forum, I'd like to suggest JBoss provide a a configurable Service Locator included w/ EJB3. Depending on feedback here, I'll gladly assume development responsibility.
Aims:
*Bring ease-of-use to the EJB client what the 3.0 Spec did for server components
* Minimized coupling between configuration and code; avoid the need for hardcoding service names or JNDI locations
* Lookup by business interface (eg. ServiceLocator.getInstance().getService(MyBusinessInterfaceRemote.class);)
* Caching of proxy stubs for SLSB, @Service; Factories and Connections for Queue, Topic (minimize JNDI calls)
* Field-level injection of proxy stubs into arbitrary client code
* Support N JNP Hosts in configuration; make location of services transparent to programmer
I've employed a good number of the objectives above and have enjoyed the results. Looking for confirmation that this will be worth pursuing, and location in which to make commits (Branch 4.0 or TRUNK in SVN I'd assume).
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996234#3996234
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996234
More information about the jboss-dev-forums
mailing list