Skip to main content

Adapted EJB3 Beans (adding an EJB2 remote home interface to an EJB3 bean)

1 reply [Last post]
Joined: 2008-05-01

According to this page
* the remote interface extends EJBObject
* the adapted bean does not implement the remote interface.

This works for GF but does not work for JBoss 4.2.3GA - it requires:
* the remote interface is just a POJO
* the adapted bean does implement the remote interface.

[the remote home interfaces are the same for both BTW]

I get deployment errors in JB if I do it the GF way, and vice versa.

According to "EJB3 In Action" (Panda/Rahman/Lane), the JB way is correct, and it seems better to me in that the bean has to implement the remote interface (the GF way could result in a bean that doesn't implement all the remote methods).

So, who's correct and/or is there a way of getting it to work with both?

Thanks! m.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-05-01

According to the EJB 3.0 specification (section 4.6.7 IIRC) GF is right and JB is wrong.
And I think JB 5 does it correctly. Sadly, my book is still wrong :-)