-----BEGIN PGP SIGNED MESSAGE-----
>> I want to use the @EJB annotation on a quercus available class from
>> 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?
NMMN - New Media Markets & Networks
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
-----END PGP SIGNATURE-----
resin-interest mailing list