So how have you defined your ejb refs in the session bean (if that's
what it is) that is doing the lookup?
glenn dickson wrote:
> I tried that but still the same error, here are some screen shots to show
> you how I have set it up using the server that comes with J2EE.
>
> What am I doing wrong ? I really really really stumped.
>
>
> Best Regards
> Glenn Dickson
>
> Mob : 0415 534 883
> ----- Original Message -----
> From: "Evan Ireland" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Thursday, November 22, 2001 11:07 AM
> Subject: Re: Using Local Entity Beans Instead of Remote Entity Beans
>
>
>
>>Normally with a local ref you would lookup a name like
>>
> "java:comp/env/ejb/...".
>
>>Glenn Dickson wrote:
>>
>>
>>>I get a NameNotFoundException when trying to reference the local entity
>>>bean at this line of code
>>>
>>>
>>>
>>>java.lang.Object animalTypeRef = initial.lookup("AnimalType");
>>>
>>>
>>>
>>>
>>>
>>>The xml deployment file has the correct declarations for a local entity
>>>bean.
>>>
>>>
>>>
>>>Should I be using "lookup" ?
>>>
>>>If anyone can help I would really appreciate it.
>>>
>>>
>>>
>>>TIA
>>>
>>>
>>>
>>>Glenn
>>>
>>>
>>
>>--
>>
>>
> ____________________________________________________________________________
> ___
>
>>Evan Ireland Sybase EAServer Engineering
>>
> [EMAIL PROTECTED]
>
>> Wellington, New Zealand +64 4
>>
> 934-5856
>
>>
>
>
> scr.zip
>
> Content-Type:
>
> application/x-zip-compressed
> Content-Encoding:
>
> base64
>
>
--
_______________________________________________________________________________
Evan Ireland Sybase EAServer Engineering [EMAIL PROTECTED]
Wellington, New Zealand +64 4 934-5856
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".