by Henning Eiben <eiben@[EMAIL PROTECTED]
>
Feb 14, 2007 at 05:21 PM
Per Newgro schrieb:
> Dependeny injection means you have to provide a setter method.
> @[EMAIL PROTECTED]
> ICustomerDispatcher customerDispatch;
>
> public void setCustomerDispatcher(ICustomerDispatcher d) {
> customerDispatcher = d;
> }
>
> The instance has to be assigned by container. As i said before please
read
> the spec. That do***ent will bring you a clear understanding of the 3.0
> concepts. And if you want to use di please understand the pattern,
before
> usage. There are many tutorials and other docs in web.
Well, I looked at the specs (ejb-3_0-fr-spec-ejbcore.pdf) and page 44
suggests that "@[EMAIL PROTECTED]
IInterface myInstance" would be sufficient.
Anyway, as you might have already noticed I quite new to EJB at all, so
maybe you could point out some tutorials, that show how to use EJB,
dependency injection ...
Thanx!