users@glassfish.java.net

Re: Session Bean Confusion

From: Dies Koper <dies_at_jp.fujitsu.com>
Date: Fri, 11 Apr 2008 21:37:34 +0900

Hi Markus,

I think the fault in your first try was somewhere else. What did your
interface look like? Was the interface specified in the deployment
descriptor in a tag that was meant for a EJB 2.1 remote interface?

Regards,
Dies

Markus KARG wrote:
> I am using the verifier to check wheter my application is complaint to
> EJB 3.0.
>
> In EJB 3.0 CORE spec, chapter 4.6.7 "Session Bean's Remote Interface",
> it says:
>
> "The interface must extend the javax.ejb.EJBObject interface."
>
> Ok, so I wrote this:
>
> @Remote
> public interface HelloServerRemote extends EJBObject {
>
> But the verifier now complains about doing so:
>
>
>
> 1 # of Warnings : 0 # of Errors : 0 -----------------------------
> RESULTS FOR EJB-RELATED TESTS -----------------------------
> -------------- FAILED TESTS : -------------- Test Name :
> tests.ejb.ejb30.BusinessIntfInheritance Test Assertion : A business
> interface must not extend javax.ejb.EJBObject or
> javax.ejb.EJBLocalObject. Please refer to EJB 3.0 Simplified API Section
> #3.2 for further information. Test Description : For [
> hello#helloserver.jar#HelloServer ] [ example.server.HelloServerRemote ]
> extends either javax.ejb.EJBObject or javax.ejb.EJBLocalObject.
> ---------------------------------- END OF STATIC VERIFICATION RESULTS
> ----------------------------------
>
>
>
> I am totally confused...?!
>
> What is my fault?
>
> Thanks
> Markus
>