[Resin-interest] Quercus example apps that work

2006-12-18 Thread Alex Sharaz
Chaps,
Has anyone got an example Quercus app utilising a database that works?

I've got the latest resin 3.1 snapshot  and am trying to get
eithergallery2 or mediawiki to work. Needless to say I'm not having much
luck. I've got the standard hello world and a php info page to work
but nothing else really.

Alex
*
To view the terms under which this email is distributed, please go to 
http://www.hull.ac.uk/legal/email_disclaimer.html
*___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Quercus + EJB

2006-12-18 Thread Markus Wolf
-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