Billy Byberg wrote:
>
> I have a problem trying to use the same home and remote classes with
> different implementations of the EJB class.
>
> In the ejb-jar.xml reference tags you specify home and remote interfaces.
> These does not say which ejb to use. It doesn't help to also specify
> ejb-link that should point out the exact EJB to use. The only way to change
> between different ejb classes with the same home and remote interfaces is to
> simply use one at a time.
>
> Anyone know a working example that does what I want or know anything I might
> do wrong? Maybe someone else that has the same problem? Personally I think
> it's a bug in Orion, but I hope to be proven wrong :)
You're in luck, because this is a EJB feature. ejb-jar.xml is defined by
JavaSoft and is the same everywhere you go in EJB country.
You simply can not do this. When referencing one bean from another you
are essentially being just another client of that bean. And since
clients can not, and should not, know anything about the current
implementation, you are not able to declare which implementation bean to
use.
/Marcus
--
Marcus Ahnve email: [EMAIL PROTECTED]
Lecando AB Office: +46-(0)8-634 94 18
Sweden Mobile: +46-(0)70-462 19 18
www.lecando.com ICQ#: 4564879