Christopher,

I am not calling the implementation directly.  I am using the local 
interface.  So are you saying that the client can't call local interface 
directly?  I did the same way as the example from JBoss CMP 2.0 
documentation.  The UserLocalTest example lookup a local home interface.  
Instead of narrowing the object to the home class.  It uses cast to get the 
home object.  Here is the function from their example code.  This function 
gets the local home interface of a bean.

private UserLocalHome getUserLocalHome() {
      try {
         InitialContext jndiContext = new InitialContext();

         return (UserLocalHome) 
jndiContext.lookup("commerce/UserLocalHome");
      } catch(Exception e) {
         e.printStackTrace();
         fail("Exception in getUserLocalHome: " + e.getMessage());
      }
      return null;
   }

I did the same way, instead of using the narrow function from portable 
remote object, I use cast to get my local home object.  But it doesn't work. 
  Any idea?

Thanks,

Douglas
>From: Christopher William Turner <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: [JBoss-user] Help! Local Interface Problem With JBoss 3
>Date: Tue, 11 Jun 2002 20:52:46 +0100
>
>It is not legal to call your ejb implementation. You must use
>the remote. There are optimising hints that you give to speed up
>ejb to ejb calls in a single jvm (see volunteer docs).
>
>It might be legal to have a non-ejb implementation class which you can
>call
>direct. Then make the ejb implementation delegate to the non-ejb
>implementation. See Bridge and Proxy patterns from the Gof book.
>
>
>Douglas Su wrote:
> >
> > Hi all,
> >    I was able to access my entity bean with its remote interface, but I 
>have
> > been having trouble accessing my bean with its local interface.  I have
> > stuck with this problem for 2 days now.  Please help!!
>
>--
>Christopher William Turner, http://www.cycom.co.uk/ Java development
>since 1996
>http://club.cycom.co.uk/tms.htm Terminology Management software
>http://club.cycom.co.uk/wt.htm  Wind Turbine blade design software
>
>_______________________________________________________________
>
>Multimillion Dollar Computer Inventory
>Live Webcast Auctions Thru Aug. 2002 - 
>http://www.cowanalexander.com/calendar
>
>
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/jboss-user




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


_______________________________________________________________

Multimillion Dollar Computer Inventory
Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar



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

Reply via email to