---------- Forwarded message ----------
From: Mohammad Nour El-Din <[EMAIL PROTECTED]>
Date: Dec 28, 2006 6:31 AM
Subject: Re: Bean lookup failure if interface annotation used on bean class
To: Raj Saini <[EMAIL PROTECTED]>

Hi Raj...

Seems that we have a problem at our code and it needs a JIRA I think :), the
problem is that when you annotate the EJB with the @Remote annotation, our
code does not recognize that and it treats the interface as a Local Business
Interface and in that case you would have to lookup the business interface
using this pattern *<BeanImplClass>+Business+Local*, and this is not
consistent with the specs, so we need a JIRA to be opened, if you would like
to have this honor :). So, as a workaround, you have to annotate the
EJB with the @Remote annotation mentioning the business interface's class,
as for our case  it would be @Remote({ ShoppingCart.class}).



On 12/27/06, Mohammad Nour El-Din <[EMAIL PROTECTED]> wrote:

Hi Raj...

I have found the reason of the problem, but I can't explain the details
now, cause I am at work and I want to catch the bus, but I've attached your
code with the changes I made to make it work, take a look at it and wait for
my detailed explanation when I get back home :)



 On 12/27/06, Raj Saini <[EMAIL PROTECTED]> wrote:

> Hi Mohammad,
>
> Here goes the attachment.
>
> Thanks,#
>
> Raj
>
> Mohammad Nour El-Din wrote:
> > Hi Raj...
> >
> > On 12/27/06, Raj Saini <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi Mohammad,
> >>
> >> Yes I tried the looking up with following naming schemes:
> >>
> >> Bean name, business interface name, <bean name> + Remote, <business
> >> interface name> + remote
> >>
> >> It seems mailing list mail server wont allow the attachments Can I
> send
> >> it to your private mail id?
> >
> >
> > Yeah sure
> >
> > I posted this to dev list because I contributing these examples to the
>
> >> OpenEJB and thought it would be more relevant to the dev list.
> >
> >
> > Ok, sorry I didn't know :)
> >
> > Thanks,
> >>
> >> Raj
> >>
> >>
> >> Mohammad Nour El-Din wrote:
> >> > Hi Raj...
> >> >
> >> > I am not very aware of how JNDI names are constructed for beans
> >> > annotated by
> >> > @Remote, but did you try looking up the bean using its name only
> ???
> >> > and plz
> >> > attach the example files so I can help you more, and as friendly
> note,
> >> > these
> >> > kinds of problems should be posted on the *user* mailing list
> >> > [email protected] :)
> >> >
> >> >
> >> >
> >> > On 12/27/06, Raj Saini < [EMAIL PROTECTED]> wrote:
> >> >
> >> >> Hi,
> >> >>
> >> >> I have written a EJB 3 example and trying to run it.
> >> >>
> >> >> While running the test cases I have observed the following:
> >> >>
> >> >> Business interface annotated with interface type (e.g. @Remote) ,
> >> test
> >> >> case passes.
> >> >> Bean class is annotated with interface type (e.g. @Remote), test
> >> cases
> >> >> fails and javax.naming.NameNotFoundException is thrown
> >> >>
> >> >> In both the cases I have used the JNDI name String  in   "<Bean
> impl
> >> >> class>+Business+ Remote"  format.
> >> >>
> >> >> What is the convention used for JNDI name for the deployed beans?
> >> >>
> >> >> Thanks,
> >> >>
> >> >> Raj
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >>
> >
> >
>
>
>
>


--
Thanks
- Mohammad Nour




--
Thanks
- Mohammad Nour

--
Thanks
- Mohammad Nour

Reply via email to