Feature Requests item #481529, was opened at 2001-11-13 16:05
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402707&aid=481529&group_id=31602
Category: None
Group: None
Status: Pending
Priority: 5
Submitted By: Michael Larionov (mlarionov)
Assigned to: Nobody/Anonymous (nobody)
Summary: lookup methods in home interface
Initial Comment:
Hi,
I think it is very cool that we have static variables
COMP_NAME and JNDI_NAME in home interfaces.
What would be even cooler is to have a lookup methods
in a home interface, like:
public static MyBeanHome getHome() {
..........
}
This method would
1)encapsulate lookup logic
2) implement cacheing of home interfaces, so you don't
have to do jndi lookup every time.
Thanks!
Michael.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-11-14 04:13
Message:
Logged In: NO
Add the utilobject build option. It will create a factory
class that does this.
Dave
----------------------------------------------------------------------
Comment By: Aslak Helles�y (rinkrank)
Date: 2001-11-13 17:08
Message:
Logged In: YES
user_id=49846
This functionality already exists. Use a <utilobject/>
subelement of <ejbdoclet/> element in Ant. This will give
you a XXXUtil class for each XXX bean which does what
you're looking for. You'll find getHome() and getLocalHome
() methods in these classes. Isn't this what you want?
Aslak
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=402707&aid=481529&group_id=31602
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel