On Sat, Jun 22, 2002 at 06:09:06PM +0200, Aslak Hellesoy wrote:
+ 
+ 
+ > -----Original Message-----
+ > From: [EMAIL PROTECTED]
+ > [mailto:[EMAIL PROTECTED]]On Behalf Of
+ > [EMAIL PROTECTED]
+ > Sent: 21. juni 2002 23:56
+ > To: [EMAIL PROTECTED]
+ > Subject: [Xdoclet-user] getLocalHome()
+ >
+ >
+ > hi,
+ >
+ >   can someone show me how to use Util.getLocalHome()?
+ >
+ >   my generated Util class has getHome(), getHome(Hashtable), and
+ > getLocalHome().
+ >
+ > when i call getLocalHome() i get
+ >
+ >  Need to specify class name in environment or system property, or
+ > as an applet
+ > parameter, or in an application resource file:
+ > java.naming.factory.initial
+ >
+ >   since i can't specify an env to getLocalHome() like i can with
+ > getHome(Hashtable) how am i expected to use getLocalHome()?
+ >
+ 
+ Local homes/interfaces can only be used within the app server VM. (You
+ typically call this from the web tier). So there is no need to specify the
+ java.naming.factory.initial property because it's set by the app server. It
+ sounds as if you're trying to access the local home from a different VM
+ (standalone app?) You're not allowed to do that (according to the EJB spec).
+ Am I right or wrong?
+ 
+ Aslak

No, this is running in the same VM. I just have one entity bean trying to
get the local home of a second entity bean via this getLocalHome() utility.
These entity beans are both in the same jboss deployment.

barbee.


-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to