Friday, March 13, 2009

Is it possible to write two EJB's that share the same Remote and Home

Question :Is it possible to write two EJB's that share the same Remote and Home
interfaces, and have different bean classes? if so, what are the
advantages/disadvantages? (EJB)

Answer :It's certainly possible. In fact, there's an example that ships with the
Inprise Application Server of an Account interface with separate
implementations for CheckingAccount and SavingsAccount, one of which
was CMP and one of which was BMP.

No comments: