Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Beans > Re: EJB3 Inject...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 1285 of 1403
Post > Topic >>

Re: EJB3 Injection

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!
 




 5 Posts in Topic:
EJB3 Injection
Henning Eiben <eiben@[  2007-02-08 08:51:38 
Re: EJB3 Injection
Per Newgro <per.newgro  2007-02-08 11:02:19 
Re: EJB3 Injection
Henning Eiben <eiben@[  2007-02-08 16:41:49 
Re: EJB3 Injection
Per Newgro <per.newgro  2007-02-09 12:02:45 
Re: EJB3 Injection
Henning Eiben <eiben@[  2007-02-14 17:21:16 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Dec 3 23:58:32 CST 2008.