-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>> I want to use the @EJB annotation on a quercus available class from  
>> PHP,
>> but the classes in Quercus are not introspected and therefore no
>> dependency injection is done...
>> Are there any special reasons for this?
> 
> Can you give a few more details?  How are you instantiating the  
> object?  Adding the injection is a little bit of work, so we need to  
> add code for each object instantiation that needs injection.

I've written a Java class with an @EJB annotated attribute and some
business logic methods.
Then I've created an instance of that object from PHP/Quercus and call
the business methods.
This leads to an NPE, since the attribute is not set and not dependency
injected. But for example when I do a manual JNDI lookup and set the
attribute in the constructor then every thing does work fine.
Isn't the @EJB annotation for simplify coding and helping the developer
in JNDI lookups?

Thanks
Markus Wolf
- --
NMMN - New Media Markets & Networks
http://www.nmmn.com/
Langbehnstrasse 6
22761 Hamburg
Tel. 040 284 118 - 720
Fax 040 284 118 - 999
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFhrv6DBHISU1oEKERAgJFAJ0f+xhGnnezwoYgISQBoqeHsP8YlQCgz8vu
qnXOTVierezLB48/RYO72N0=
=jIxj
-----END PGP SIGNATURE-----

_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to