Hi,

FYI I have added 2 enhancements to the utility object (Xdoclet 1.2 (or in CVS)):

1. a GUID generator for your entity beans

You ever ran into problems finding a good generator of GUIDs for you EJBs?
Well, now there is one included with XDoclet that is thread, cluster, millis safe.
It generates keys that are 32 byte (256 bit) big, and are really globally unique.
It is a very performant generator (2000 keys per second on a simple development 
machine). Note: you need to have a String object as your PK.

Usage: in ejbCreate add setId(XXXUtil.generateGUID(this));

2. cached homes

You do not need a EJBHomeFactory anymore, because calling the getHome() and 
getLocalHome()
can use a cached reference to the home object. This increases speed in your J2EE app 
because
repetitive JNDI calls are now not needed anymore.

Usage: getHome() or getLocalHome() will return a cached reference to the home object

To enable these 2 enhancements, modify your build script (by default they are both 
false):
<utilobject cacheHomes="true" includeGUID="true"/> 

Kind regards,

Mathias

_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to