About Question enthuware.oce-ejbd.v6.1.350 :

Moderator: admin

Post Reply
Flavio
Posts: 5
Joined: Wed Oct 23, 2013 4:51 pm
Contact:

About Question enthuware.oce-ejbd.v6.1.350 :

Post by Flavio »

Is a question valid? Because I don't get to do anything alike.

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.1.350 :

Post by admin »

I am not sure I understand your question. Can you please explain a bit more so that we can help?
-Paul.

Flavio
Posts: 5
Joined: Wed Oct 23, 2013 4:51 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.1.350 :

Post by Flavio »

Sorry, I should have given more details.
The SfSBean didn't implement the SfSBeanRemote Interface. So how does it get to use sctx.getBusinessObject(SfSBeanRemote.class);

Shouldn't throw a IllegalStateException?

@Stateful
@Remote(SfSBeanRemote.class)
public class SfSBean  {
...
}

admin
Site Admin
Posts: 10386
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.1.350 :

Post by admin »

No, the bean class is now not required to implement any interface if it uses @Remote or @Local annotations. Please see section 4.9.7 of EJB 3.1 Spec:
The bean class must implement the interface or the interface must be designated as a local or remote business interface of the bean by means of the Local or Remote annotation or in the deployment descriptor.
HTH,
Paul.

Flavio
Posts: 5
Joined: Wed Oct 23, 2013 4:51 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.1.350 :

Post by Flavio »

Thank you very much :D !!!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests