Re: [Resin-interest] Quercus standalone (Re: Resin 3.1.0 release
How does the configuration of the Quercus Servlet work if using in standalone? I need to set a database (giving a JNDI path) to Quercus. Hmm. It looks like we'll need to add init-param equivalents to QuercusServlet. Thats exactly what I was thinking about. Should I add the compiler and database configuration to the QuercusServlet#init method and submit a patch? The configuration should be optional, since the default should stay with the resin way. If you're using mysql, the mysql PHP interface should know about the mysql driver and use it automatically. Parts of the application do, but the configuration fails with the following: Can't find database for driver 'com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource' and url 'jdbc:mysql://hostname:3306/' Also, if you're using PDO, you can use new PDO(java:comp/env/jdbc/ test) to get a JDBC driver from JNDI. No, we don't use PDO, since it's an old application which we are porting slowly to java. Therefore Quercus is of great value for us. Thanks for your help 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 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 3.1.0 release
Hi Scott, We also refactored Quercus in a major way for 3.1.0, so that's almost certainly what you're running into. We should be able to split out the interpreted half of Quercus as a standalone web-app (i.e. non- Resin), so we can have non-Resin users working on Quercus too. that is great news. Are there any standalone builds available? Or if there is no build available, how to create a standalone build? What is need for quercus standalone? 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 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 3.1.0 release
We also refactored Quercus in a major way for 3.1.0, so that's almost certainly what you're running into. We should be able to split out the interpreted half of Quercus as a standalone web-app (i.e. non- Resin), so we can have non-Resin users working on Quercus too. that is great news. Are there any standalone builds available? Or if there is no build available, how to create a standalone build? What is need for quercus standalone? It hasn't been tested yet, so I'm not sure it's quite ready. The two jars are resin-util.jar and quercus.jar. So you can copy them from the resin/lib directory and see if they work :). We'll be repackaging it as a .war download (and creating a quercus.caucho.com). I'll already created a maven2 build script for the quercus sources and compiled it that way. In addition to resin-util one needs a java EE jar. Currently I'm testing quercus in Glassfish. :) Thanks for the great work. 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 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] @TransactionAttribute
Hi, I have a problem with transactions in resin 3.1.s20061206. I have an EJB method annotated with @TransactionAttribute(TransactionAttributeType.REQUIRED), but there is no transaction available within the method, since if I call entityManager.flush() I'll get an exception about a missing transaction. Any idea why no transaction is available? Shouldn't the annotation force the container to create a new one if none is available? Thanks for your help 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 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Quercus + EJB
-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
[Resin-interest] EAR EJB
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, is there an example how to deploy and access EJB3s from an EAR? In the Resin 3.1-snap changelog is an entry for basic support of this. How to test and access this features? 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 iD8DBQFFgso2DBHISU1oEKERAhkVAKCKuq/80F1zvtqLyrsCQT2m03jt/ACfZEnf AkLoDVSL0u1leEbKFxFImg0= =b9BZ -END PGP SIGNATURE- ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Resin with Toplink Essentials or OpenJPA
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, is there a way to use Resin 3.1 with Toplink or OpenJPA? I've added the toplink jar to my webapp or ear and set the toplink persistence provider in the persistence.xml but the dependency injection of resin does not work anymore and I have a null EntityManager in my session bean. Any idea or hints? We need this, because amber is far from being complete. :( 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 iD8DBQFFfqE5DBHISU1oEKERAiOyAJ9HHv3PLt8Clz3xpM0XtQQrHCB5wgCgnioZ SweVLHyHTVklsl9FQRp3eGg= =aF+1 -END PGP SIGNATURE- ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] EJB and Resin 3.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, If you were using the snapshot version 3.1.s061203, you might ran into a Resin bug. yes we are using the snapshot 3.1.s061203. I found my EJB3 stopped working on this version and noticed Resin sample stateless EJB not working either. Is there any workaround or patch available to get EJBs working again with this snapshot? That would be great. Regards 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 iD8DBQFFfToDDBHISU1oEKERAshYAJ0ZGa0bqEuowPc3XAqIJ9vjJVC/PACfaHXe G8+2Yjy0XB1DHQn6VXln4lE= =Mupt -END PGP SIGNATURE- ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] EJB and Resin 3.1
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi there, is it possible to create EJBs packaged in a JAR file and have them available without creating a WAR file and a servlet to access them? Are there any examples on this? I see in the server logfile that my EJBs are compiled, but I get a NamingException when trying to access the from JNDI (from local scope, e.g. packaged in an EAR file). Thanks in advance 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 iD8DBQFFeXJiDBHISU1oEKERAh2zAJ4r9hI3RAuidG77BgqvysiYJmnSgwCfShVR DXumVHlx44Iy2qmkoWvw+Ns= =slki -END PGP SIGNATURE- ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest