Re: Non daemon threads launched by Timer service and not properly stopped

2009-01-27 Thread David Blevins
contributors. Especially here on the list. Some questions are the basic "how do I configure a datasource" types which are easy to answer. Certainly is a good way to help the community grow. -David David Blevins wrote: On Jan 19, 2009, at 5:08 AM, uglything wrote: Hie David.

Re: Stateless Example

2009-01-27 Thread David Blevins
On Jan 16, 2009, at 11:32 AM, hretter wrote: Could someone post or direct me to a post of a COMPLETE web application archive (war file) example with: ejb: public interface EchoLocal { public String echo(String msg); } @Stateless public Class EchoBean implements EchoLocal { public String

Re: Problem with entityManager and Open EJB 3.1

2009-01-27 Thread David Blevins
On Jan 20, 2009, at 2:54 AM, Olivier THIERRY wrote: Hi, I use Open EJB to run TestNG unit tests in a Maven project. This project contains many Seam components. All of them are EJB3 stateful session beans (conversation scoped) and use extended persistence context (same persistence unit everywhe

Re: EntityManager Propagation Problem under 3.1

2009-01-27 Thread David Blevins
u wanted to help expand that test case that could be very useful. You did some good work in the sample app. -David On Dec 10, 2008, at 9:33 AM, David Blevins wrote: On Nov 21, 2008, at 3:04 PM, JimOR wrote: David, Looks like OpenEJB3.1 is the culprit. EJB3.0 with JPA 1.0.1, 1.1,

Re: OpenEJB on Oracle

2009-01-26 Thread David Blevins
On Jan 19, 2009, at 2:20 PM, JensToerber wrote: Hi David, thanks a lot for your support: I) i tried the javax.mail.Session Resource: What i found out: a) If you specify the pass-through Properties in # mail.host="" mail.pop3.user=jens.toerber mail.pop3.host=pop.web.

[Travel Assistance] Applications for ApacheCon EU 2009 - Now Open

2009-01-23 Thread David Blevins
The Travel Assistance Committee is now accepting applications for those wanting to attend ApacheCon EU 2009 between the 23rd and 27th March 2009 in Amsterdam. The Travel Assistance Committee is looking for people who would like to be able to attend ApacheCon EU 2009 who need some financial suppor

Re: Tomcat and openEJB - how to do this simple config?

2009-01-23 Thread David Blevins
Hi Jp, I've put my meager perl skills to the test -- no php skills, sorry -- to at least give you some kind of non-java client to try and confidence that you are indeed going the right direction. It took me a while -- thank goodness I'm stubborn -- but I finally got one that worked using

Re: In-VM transport for web service endpoint

2009-01-22 Thread David Blevins
Hi John, I asked the CXF guys if they already had any special support for this and they pointed me at: http://cwiki.apache.org/CXF20DOC/local-transport.html That page unfortunately didn't have any information on clients using the JAX-WS Service.create(..) approach for getting services. I

Re: Non daemon threads launched by Timer service and not properly stopped

2009-01-21 Thread David Blevins
! -David David Blevins wrote: On Jan 5, 2009, at 8:28 AM, uglything wrote: Hie. I tried the finalize approach, but unfortunately it doesn't seem to work... Some hard reference must be kept somewhere but I can't find where. I've not looked thoroughly thought... I took a quick l

Re: Programatically configure persistence under Tomcat

2009-01-21 Thread David Blevins
rent databases)? -David David Blevins escreveu: On Jan 14, 2009, at 8:23 AM, Luis Fernando Planella Gonzalez wrote: I'm working on an application which will have several instances deployed on the same server. I intend to do it as 'deploy friendly' as possible, and, since

Re: logging.properties file ignored for unit tests

2009-01-21 Thread David Blevins
On Jan 19, 2009, at 2:40 AM, Olivier THIERRY wrote: Hi, I use Open EJB 3.1 within a Maven 2.0.9 project to run tests. Everything works well for the moment. But for a few days I encounter a bug with entity manager and I need to activate logs to understand what happens. I start OpenEJB this way

Re: Tomcat and openEJB - how to do this simple config?

2009-01-21 Thread David Blevins
Hi Jp, That article is pretty old. You'll probably be able to write a far better article/blog once everything is up and running :) In fact, I encourage it! Truth be told, I'm not sure how many people are aware of how simple it can get. With all the various things we do automatically fo

Re: DataSource problem

2009-01-21 Thread David Blevins
Not giving out direct references to the driver-created DataSources is an unavoidable part of connection pooling -- the concept is built on giving out several "handles" which delegate to a DataSource which is tracked in the transaction associated with the current thread and returned to the p

Re: datasource problem with hibernate and oracle

2009-01-21 Thread David Blevins
Hi Paolo, Something interesting is going on. The openejb.xml looks great and the persistence-unit declaration for "MyEM" looks perfect. Can you post the declaration for the "MyOrclEM" persistence-unit? Even if the MyOrclEM declaration was somehow flawed I wouldn't expect the outcome you

Re: Exception while testing MDB

2009-01-19 Thread David Blevins
On Jan 14, 2009, at 2:52 AM, marekd wrote: Could it be the same problem as this one: https://issues.apache.org/activemq/browse/AMQ-1824 (see next to last comment) ? Seems very likely. I'd recommend upgrading the ActiveMQ version to try it out, but unfortunately they repackaged their code b

Re: Stateless Example

2009-01-18 Thread David Blevins
On Jan 16, 2009, at 11:32 AM, hretter wrote: Could someone post or direct me to a post of a COMPLETE web application archive (war file) example with: ejb: public interface EchoLocal { public String echo(String msg); } @Stateless public Class EchoBean implements EchoLocal { public String

Re: Programatically configure persistence under Tomcat

2009-01-18 Thread David Blevins
On Jan 14, 2009, at 8:23 AM, Luis Fernando Planella Gonzalez wrote: I'm working on an application which will have several instances deployed on the same server. I intend to do it as 'deploy friendly' as possible, and, since there is already a configuration file for other properties, I'd li

Re: Classlaoding via Remote

2009-01-18 Thread David Blevins
On Jan 13, 2009, at 1:44 AM, Oliver Günther wrote: Hi, Scenarion: OpenEJB in Standalone Mode. Client connecting via the RemoteClient I'm wondering if there is a way to utilize the classloader of a EJB on the ClientSide. In short, create some form of URL- or RMIClassLoader on the Client,

Re: Cannot override security annotations

2009-01-18 Thread David Blevins
On Jan 12, 2009, at 1:09 AM, Marcin Kwapisz wrote: Hi, I think this property should be set in System, not in InitialContext. System .setProperty("log4j.category.OpenEJB.startup.attributes","DEBUG"); I'm not sure if you're stating a preference or reporting that setting via InitialContext

Re: unused persistence units

2009-01-18 Thread David Blevins
On Jan 8, 2009, at 9:24 AM, Marcin Kwapisz wrote: we have several persistence.xml files in our application just for testing purposes. They are placed in src/test/resources/... and thus not packaged to the final product. However Eclipse places them on the classpath which cause OpenEJB to see th

Re: Non daemon threads launched by Timer service and not properly stopped

2009-01-18 Thread David Blevins
On Jan 5, 2009, at 8:28 AM, uglything wrote: Hie. I tried the finalize approach, but unfortunately it doesn't seem to work... Some hard reference must be kept somewhere but I can't find where. I've not looked thoroughly thought... I took a quick look as well and couldn't find anything st

User Blog: OpenEJB Resource injection for Unit Testing

2009-01-18 Thread David Blevins
Quintin Beukes has written another great blog post on an advanced OpenEJB testing technique. He's created quite an interesting technique for allowing the use of alternate deployment descriptors for testing than those used for production. The post details using NetBeans with a bit of Ant sc

Re: OpenEJB on Oracle

2009-01-18 Thread David Blevins
On Jan 9, 2009, at 5:08 PM, JensToerber wrote: Tried to get my application running with Hibernate as JPA-Provider on Tomcat with Openejb: Openejb is loaded during startup of Tomcat, hence the Classes in \lib (yes lib) are loaded very early. Take care to do the same Class Loading Order in yo

Re: OpenEJB on Oracle

2009-01-18 Thread David Blevins
On Jan 9, 2009, at 4:35 AM, JensToerber wrote: Hi David, thanks a lot. Yes, had a little problems with my logging and some Openejb-Auto-Correction-Logging-Entries are a little bit confusing for me. Definitely let us know what things tripped you up and what you found confusing regarding

Re: JNDI lookup in Tomcat

2009-01-17 Thread David Blevins
java.lang.String /openejb org.apache.openejb.core.ivm.naming.IvmContext /openejb/ConfigurationInfoBusinessRemote org.apache.openejb.core.ivm.naming.Busi nessRemoteReference /openejb/DeployerBusinessRemote org.apache.openejb.core.ivm.naming.BusinessRemot eReference ...and then other contexts created by my MDB/

Re: encrypt database username and password

2009-01-17 Thread David Blevins
On Jan 9, 2009, at 3:45 PM, skumar123 wrote: i am trying to encrypt database username and password in the openejb.xml file, i have googled a lot for this information with no luck. i need help in how to achieve this. i am using openejb with tomcat. in my ejb jar file i have persistence.xml

Re: Cannot override security annotations

2009-01-08 Thread David Blevins
On Jan 8, 2009, at 12:30 AM, Marcin Kwapisz wrote: I think this property should be set in System, not in InitialContext. System .setProperty("log4j.category.OpenEJB.startup.attributes","DEBUG"); I'm not sure if you're stating a preference or reporting that setting via InitialContext didn't

Re: Cannot override security annotations

2009-01-07 Thread David Blevins
On Jan 7, 2009, at 5:17 PM, Marcin Kwapisz wrote: Hi, I cannot override security annotations in OpenEJB3 (the same concerns OpenEJB3.1). In the following example I cannot call createStudent with role SysAdmin. When I remove security annotation I can call createStudent only with role SysAd

Re: Looking up resources in Tomcat fails

2009-01-07 Thread David Blevins
On Jan 7, 2009, at 2:00 AM, Jean-Sébastien Scrève wrote: Well, thanks Luis but I did that already. I'm not in a "standard" configuration. My library is not in an external web application. It is in the "lib" folder of the OpenEJB war directly. I found a workaround. I call SystemInstance .ge

Re: Unauthenticated principal

2009-01-06 Thread David Blevins
On Jan 5, 2009, at 4:13 AM, Luis Fernando Planella Gonzalez wrote: I tried this out in embedded mode using "guest" instead of "public" and it worked fine. Should work the same way in Tomcat. Give the code above a try in Tomcat but with "guest" in the RolesAllowed instead of "public". I

Re: Hai.. I have Problem with openejb

2009-01-06 Thread David Blevins
On Jan 6, 2009, at 8:17 PM, Donny Lie wrote: Exception in thread "main" javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.openejb.client.RemoteInitialContextFactory [Root exception is java.lang.ClassNotFoundException: org.apache.openejb.client.RemoteInitialCont

Re: Issue with using JPA in openejb

2009-01-03 Thread David Blevins
On Jan 2, 2009, at 1:51 AM, Debarshi Sanyal wrote: Hi All, New Year greetings! Happy new year to you too! I was trying to execute the example on EJB entity-manager provided at * http://openejb.apache.org/3.0/injection-of-entitymanager- example.html.* I have replaced the test case with

Re: Non daemon threads launched by Timer service and not properly stopped

2009-01-03 Thread David Blevins
On Dec 31, 2008, at 5:30 AM, uglything wrote: PS : I wish you all a nice new year eve !!! Happy new year to you!! PPS : I'm trying to make my managers switch to OpenEJB 3.1, I'm particularly interrested in the Singleton mechanism. Many thanks to the OpenEJB crew for it's amazing work at s

Re: Unauthenticated principal

2009-01-03 Thread David Blevins
On Dec 30, 2008, at 3:51 AM, Luis Fernando Planella Gonzalez wrote: Well, my problem is not really configuring the default (or unauthenticated) username, but it's roles. We should already be adding a role of the same name so that people could do as you demonstrate below. I've checked the

Re: Unauthenticated principal

2008-12-28 Thread David Blevins
On Dec 18, 2008, at 7:44 AM, Luis Fernando Planella Gonzalez wrote: Luis Fernando Planella Gonzalez escreveu: HI. I'm using openejb under tomcat (with openejb.war). I implemented a custom Tomcat Realm, and everything was going fine, but I found one problem: I need to use a role name ("public"

Re: Exception in Transaction does not show the original Cause

2008-12-28 Thread David Blevins
On Dec 22, 2008, at 12:34 AM, Maxime Thieu wrote: Hello, I am using OpenEJB3.1 in Tomcat with JPA and Hibernate 3.3 as provider. It works well, but when an persistence exception occurs (originaly thrown by Hibernate, for exemple, Constraint violation), the visible Exception is : javax

Re: Helloworld Problem

2008-12-28 Thread David Blevins
On Dec 27, 2008, at 6:59 AM, kim law wrote: Hello :) i have a problem with my hello world my os is MAC OS X i send you my logs too thank you Hi Kim, From the looks of your log file your app and bean are successfully deployed and the bean is available under the JNDI name "HelloBeanRemote"

Re: Catching OpenJPA validation exceptions in OpenEJB

2008-12-28 Thread David Blevins
On Dec 23, 2008, at 8:06 AM, Luis Fernando Planella Gonzalez wrote: Hi all! I'm using OpenEJB 3.1 under Tomcat. When I try to persist an invalid entity, say, with a field annotated with @Basic(optional=false) with a null value, all I get is a javax.ejb.EJBTransactionRolledbackException.

Re: OpenEJB on Oracle

2008-12-28 Thread David Blevins
On Dec 28, 2008, at 2:12 PM, JensToerber wrote: Hi again, Hi Jens! I did not manage to run OpenEJB on Oracle in JUnit-Test if i configure it like this: p.put(DATASOURCE, "new://Resource?type=DataSource"); p.put(DATASOURCE + ".JdbcDriver", "oracle.jdbc.OracleDriver"); // it

Re: OpenEJB issue with Oracle Driver

2008-12-19 Thread David Blevins
On Dec 19, 2008, at 5:29 PM, ericp56 wrote: Well, I went back and made sure the demo was working, which it was. I created a simple EJB project and ran unit tests on that to make sure I had it all OK. There were problems with the Junit classloader (I don't know why I didn't run into thi

Re: EJB Annotation does not work in AbstractServlet

2008-12-19 Thread David Blevins
On Dec 19, 2008, at 1:03 AM, Maxime Thieu wrote: Hello, I am using OpenEJB 3.1 in Tomcat. I use the Annotation @EJB in my Servlet in order to obtain my EJB and it works well. But If I use the Annotation @EJB in an abstract Servlet (which is the superclass of all my Servlets), it does'nt

Re: How to use Spring integration with OpenEJB3 embedded into Tomcat

2008-12-19 Thread David Blevins
On Dec 17, 2008, at 2:20 AM, Grenier Nicolas wrote: Hello, I'm trying to setup OpenEJB3 in order to reference a Spring Bean from a stateless session bean. I'm using the OpenEJB 3.1 webapp into a Tomcat 5.5 instance and I wonder how to setup OpenEJB3 to allow it to "see" Spring Beans ? Cu

Re: Asking about env.properties

2008-12-19 Thread David Blevins
On Dec 10, 2008, at 5:42 AM, Sanga Lawalata wrote: Greetings, OpenEjb allow us to do injection of env-entry. We can use ejb- jar.xml or env.properties which is on src/main/resource/META-INF directory. I use this injected value in my unit testing. My question, it is possible these injected v

Re: Unit Testing with openEjb

2008-12-10 Thread David Blevins
Hi Sanga, Hoping the OpenJPA folks have some insight on the error. -David On Dec 9, 2008, at 2:35 AM, sanga lawalata wrote: Greetings, I know the problem is that there is no in my persistence XML. but I get problems here that in DB : Table User (number id, varchar name, numb

Re: JMS ConnectionFactory

2008-12-10 Thread David Blevins
On Dec 5, 2008, at 8:46 AM, Oliver Günther wrote: Also, if the server should use the same ConnectionFactory as the remote client (which is needed, then the client and and a server bean what to send/receive messages on the same topic/queue) the openejb.xml needs to be changed: BrokerXmlC

Re: Unknown error in Assembler for MessageDriven bean

2008-12-10 Thread David Blevins
On Nov 22, 2008, at 11:39 PM, [EMAIL PROTECTED] wrote: A bit of a late response to On Oct 8, 2008, David wrote: ... For EJb 2.1 and prior the is a required xml element -- autodiscovery via introspection

Re: OpenEJB on Oracle

2008-12-10 Thread David Blevins
(excuse the delay - vacation) On Nov 22, 2008, at 6:54 AM, JensToerber wrote: Hint: If you try to run it as openejb-3.1.war you get trouble with the installer.jsp, because the install-Button there expects ContextPath /openejb. It's better to run it as openejb.xml, because otherwise you get s

Re: EntityManager Propagation Problem under 3.1

2008-12-10 Thread David Blevins
On Nov 21, 2008, at 3:04 PM, JimOR wrote: David, Looks like OpenEJB3.1 is the culprit. EJB3.0 with JPA 1.0.1, 1.1, 1.2 and 1.3-SNAPSHOT work as expected, but 3.1 with any of the JPA jars fails. This sample http://www.nabble.com/file/p20631026/sample.zip sample.zip should give you a hea

Re: JUnit question

2008-11-19 Thread David Blevins
On Nov 19, 2008, at 6:32 AM, ericp56 wrote: I wasn't paying attention to the package, only the class name. Thanks for the clarification:) No worries. I've often thought it would be neat to add some functionality that would catch ClassNotFoundExceptions and print the name of the jar

Re: EntityManager Propagation Problem under 3.1

2008-11-19 Thread David Blevins
On Nov 18, 2008, at 4:29 PM, JimOR wrote: Apologies in advance for cross-posting, but my post to OpenJPA ( http://n2.nabble.com/EntityManager-Propagation-with-Extended-PersistenceContext-td1495977.html http://n2.nabble.com/EntityManager-Propagation-with-Extended-PersistenceContext-td1495977.ht

Re: Error connecting OpenEJB3.0 client to OpenEJB 3.1 server.

2008-11-19 Thread David Blevins
Hi Paul, The client and server versions have to match. We did a major overhaul of the client/server communication between 3.0 and 3.1. The remote client/server performance of 3.1 is many times faster than 3.0 and I'd definitely recommend switching all clients over. We *try* to keep the

Re: UserTransaction injection

2008-11-18 Thread David Blevins
On Nov 11, 2008, at 6:57 PM, Carlos MacLeod wrote: 2008-11-12 00:40:55,155 - ERROR - Error merging OpenEJB JNDI entries in to war /Bunda: Exception: null java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:394) at org .apache .catalina .deploy.NamingResourc

Re: Global JNDI Destinations with ActiveMQ

2008-11-18 Thread David Blevins
On Nov 13, 2008, at 12:23 PM, ebmm_axis wrote: First and foremost, thanks to the openEJB team for all the efforts... I am running openEJB as a stand alone server and haven't dove into it's use with a full application server. My reasoning for this is to keep things simple and just learn the

Re: How to maintain a schema per user?

2008-11-18 Thread David Blevins
On Nov 10, 2008, at 2:35 PM, Paul Spencer wrote: Dain, I am using OpenJPA. Do you know if, and how, they support per user connections? OpenJPA will use whatever DataSources we give it. You might be able to use the Commons DBCP PerUserPoolDataSource as Dain suggests but it'll take some

Re: Global JNDI Destinations with ActiveMQ

2008-11-18 Thread David Blevins
On Nov 13, 2008, at 12:23 PM, ebmm_axis wrote: First and foremost, thanks to the openEJB team for all the efforts... I am running openEJB as a stand alone server and haven't dove into it's use with a full application server. My reasoning for this is to keep things simple and just learn the

Re: OpenEJB on Oracle

2008-11-15 Thread David Blevins
On Nov 15, 2008, at 7:42 AM, JensToerber wrote: During start of tomcat with openejb ejb-examples-1.0 Web-App deployed i get the attached openejb.log. Looking at your log file it seems you still have the HQSL data sources configured and active in your openejb.xml: 2008-11-15 16:30:03,000

Re: UserTransaction injection

2008-11-11 Thread David Blevins
On Nov 11, 2008, at 11:00 AM, Carlos MacLeod wrote: Hi, Is there a way to inject the UserTransaction without a JNDI lookup ? In Glassfish i simple di: @Resource private UserTransaction utx; And the transaction is injected. How can i configure the openejb so it can work ? Hi Carlos, That

Re: ServiceProvider Id in openejb.xml

2008-11-11 Thread David Blevins
On Nov 10, 2008, at 6:02 PM, ebmm_axis wrote: So,I've been playing around witht his a little bit more, but I still can't get it to work... On the OpenEJB site it states the following: The service-jar.xml should be placed not in the META-INF but somewhere in your package hierarchy (our

Re: PersistenceContext problems after upgrade to 3.1

2008-11-10 Thread David Blevins
Hi Oliver, In OpenEJB 3.0, each module (ejb-jar) that we discovered in the classpath was treated as if it had been deployed individually as a standalone app. This put the restriction in there that any persistence units you referenced had to be in the same app (ejb-jar module) and were no

Re: Inspect database when using embedded OpenEJB

2008-11-06 Thread David Blevins
On Oct 29, 2008, at 3:58 AM, Bernhard Humm wrote: thanks a lot for your response. I have installed the new release. However, I still can't find database values on disk. All JUnit test cases that create and retrieve entity beans run fine (OpenEJB is really a great product :-)). In my NetBe

Re: ApplicationException annotation ignored

2008-11-05 Thread David Blevins
On Nov 5, 2008, at 4:41 PM, Kory Markevich wrote: I have a fairly simple EAR that I'm developing using Geronimo 2.1.2 and thus whatever version of OpenEJB it uses, making use of EJB 3. I've been trying to flag an exception with the @ApplicationException annotation but it doesn't seem to

Re: JUnit question

2008-11-05 Thread David Blevins
On Nov 5, 2008, at 2:50 PM, ericp56 wrote: That's already included in my classpath via openejb-core-3.0.jar (in Geronimo server). Not sure I follow. The embeddable EJB container functionality for unit testing doesn't use the Geronimo server. Also Geronimo doesn't use commons-dbcp as i

Re: How to set Java / JDBC / SQL type mapping with Open EJB ?

2008-11-05 Thread David Blevins
On Nov 4, 2008, at 7:52 AM, Olivier THIERRY wrote: But it nevers returns any result, while I have no problem running the similar queries with string or int columns instead of float one ! So it's just a problem with floats. Moreover using Hibernate console, I could make it work but I had to

Re: JUnit question

2008-11-05 Thread David Blevins
On Nov 4, 2008, at 3:05 PM, ericp56 wrote: org .eclipse .jdt .internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: 196) Caused by: java.lang.NoClassDefFoundError: org/apache/commons/dbcp/BasicDataSource I'm guessing it's something simple with my configuration... That class i

Re: JUnit question

2008-11-04 Thread David Blevins
Hi Eric, Can you post the stack trace? -David On Nov 3, 2008, at 8:53 AM, ericp56 wrote: Hello, In Eclipse, I'm able to test a simple EJB with Junit. I'm having problems testing one slightly more complicated. I had to create an ejb-jar.xml file, because the openejb-jar.xml file was not

Re: Help: Eclipse RCP as remote OpenEJB client

2008-11-04 Thread David Blevins
This is a tricky one. Both the org.apache.openejb.client.RemoteInitialContextFactory and org.apache.openejb.client.EJBObjectProxy are in the same jar so should be available equally. I wonder if eclipse is changing the thread context classloader to one that doesn't contain the openejb-cli

Re: OpenEJB on Oracle

2008-11-04 Thread David Blevins
The first persistence.xml file looks accurate as does the openejb.xml. I wonder if the openejb.xml is getting picked up. If one isn't found we auto create one in tomcat.base/conf/openejb.xml. If you can post your openejb log output that should give us some indication of what's going on.

Additional OpenEJB 3.1 Release notes

2008-10-29 Thread David Blevins
We had a few items that didn't make it into the auto-generated release notes. We've gone through and manually added in some missing entries. The RELEASE-NOTES.txt for the 3.1 release has been updated, but for your convenience here are the items that have been added: New Features: * [OP

Re: [ANN] OpenEJB 3.1 Released

2008-10-29 Thread David Blevins
/ infoq.com posts we get a year. All the best, David On Oct 27, 2008, at 7:55 PM, David Blevins wrote: Download binaries here: http://openejb.apache.org/download.html Highlights - Major new features: - EJB 3.1 Singleton Support - EJB Constructor Injection - Spring Integration

Re: Error Building OpenEJB Source File

2008-10-29 Thread David Blevins
Hi Suhaas, I did try to build the 3.0 sources. I didn't get the error that you got but I did find an issue with a missing dependency caused by the maven-shade-plugin. As 3.1 was just released, I tried again with that source to make sure it could build from the src zip. Everything built

Re: Help required with OpenEJB integration with JSF Hibernate and Spring

2008-10-28 Thread David Blevins
On Oct 21, 2008, at 7:00 PM, suhaas wrote: At this point in time, I have drilled down the problem to Spring 2.0 and OpenEJB 3.0 integration. As mentioned in the original problem statement older application (without OpenEJB) is using JSF -> backing bean -> service locator flow to call

Re: Inspect database when using embedded OpenEJB

2008-10-28 Thread David Blevins
On Oct 22, 2008, at 3:15 AM, Bernhard Humm wrote: David Blevins wrote: In OpenEJB 3.0, when using the supplied HSQL datasource in a TestCase we should be using an in memory database with the JdbcUrl of "jdbc:hsqldb:mem:hsqldb". In OpenEJB 3.0 that sometimes worked and someti

Re: How to remove stateful sessions programmatically ?

2008-10-28 Thread David Blevins
On Oct 22, 2008, at 4:11 AM, Jean-Sébastien Scrève wrote: Ok thanks for the tip David. What I try to implement is "conversation" between Tapestry and OpenEJB. This "conversation" concept is already implemented into Seam. Very interesting. I store the stateful instance into a web session

Re: persistence.xml in a Jar in Tomcat Common classloader (ERROR : PersistenceUnit already deployed)

2008-10-28 Thread David Blevins
On Oct 28, 2008, at 2:08 AM, Henri Gomez wrote: Could it be done for 3.1 release ? Hi to all, In the 3.1 release changelog I could see : EAR-style classpath application discovery groups individual modules as an EAR allowing sharing of persistence units and improved connector and custom MDB

[ANN] OpenEJB 3.1 Released

2008-10-27 Thread David Blevins
Download binaries here: http://openejb.apache.org/download.html Highlights - Major new features: - EJB 3.1 Singleton Support - EJB Constructor Injection - Spring Integration - Multicast Client-Server Discovery Significant Improvements: - EAR-style classpath applic

Re: How to remove stateful sessions programmatically ?

2008-10-20 Thread David Blevins
On Oct 20, 2008, at 2:21 AM, Jean-Sébastien Scrève wrote: Well, I don't see any simple way of doing it. I'm gonna do like in Seam : lookup for a method annotated @Remove with no parameters and call it if present. If you don't mind being bound to OpenEJB internals, you could grab the Cor

Re: Inspect database when using embedded OpenEJB

2008-10-20 Thread David Blevins
On Oct 20, 2008, at 8:11 AM, Bernhard Humm wrote: Dear all, when using OpenEJB embedded in JUnit tests are entity beans actually being persisted to disk? Is there a way of inspecting the database content after execution of the JUnit tests? I am using NetBeans IDE. Can I use the built-in

Re: Help required with OpenEJB integration with JSF Hibernate and Spring

2008-10-20 Thread David Blevins
On Oct 20, 2008, at 3:01 PM, suhaas wrote: Here is the problem statement We currently have an application that uses Spring 2.0, Hibernate 3.X, JSF1.1/Myfaces/Richfaces 3.1.X on Tomcat 5.5.27 The current layers are : The JSF UI calls backing bean that in turn calls service locator that call

Re: How to remove stateful sessions programmatically ?

2008-10-17 Thread David Blevins
On Oct 17, 2008, at 1:49 PM, David Blevins wrote: On Oct 17, 2008, at 5:57 AM, Jean-Sébastien Scrève wrote: Hi all, I'd like to remove stateful sessions beans by calling a method from OpenEJB itself and I don't see how I can do that. I don't want to call a meth

Re: How to remove stateful sessions programmatically ?

2008-10-17 Thread David Blevins
On Oct 17, 2008, at 5:57 AM, Jean-Sébastien Scrève wrote: Hi all, I'd like to remove stateful sessions beans by calling a method from OpenEJB itself and I don't see how I can do that. I don't want to call a method with @Remove annotation because I did not create the stateful myself. Is

Re: persistence.xml in a Jar in Tomcat Common classloader (ERROR : PersistenceUnit already deployed)

2008-10-16 Thread David Blevins
Hi Maxime, It should be possible to put the service.jar in the Tomcat lib/ directory without a persistence.xml in it and then include that persistence xml in your webapp. You should be able to include a file> element in the unit declaration that points to the C:/tomcat6/ lib/service.jar so

Re: OpenEJB Tomcat Deployments

2008-10-15 Thread David Blevins
Hi Thiago, We do in fact scan all of WEB-INF/lib/ and WEB-INF/classes for ejbs. The openejb.deployments.classpath.include property applies to boot- time scanning of the system classpath, but we could probably rig up something that allows you to set that and similar flags for an individual

Re: OpenEJB with JUnit from NetBeans: NameNotFoundException

2008-10-11 Thread David Blevins
On Oct 11, 2008, at 9:39 AM, franz see wrote: Good day, The script you gave me passed with no problem. And after comparing with my failing copy, I found out what the reason is. My `meta-inf` were in all small caps, and because of that openejb failed to detect `META-INF/ejb-jar.xml`. A

Re: OpenEJB with JUnit from NetBeans: NameNotFoundException

2008-10-10 Thread David Blevins
On Oct 9, 2008, at 9:42 PM, franz see wrote: I figured out what the solution is, The setUp() of the test cases are missing this line properties.setProperty("openejb.deployments.classpath.include", ".*simple-stateless/target/classes.*"); I don't know why though ( I don't know how openej

Re: OpenEJB in an OSGi container

2008-10-09 Thread David Blevins
inside those so that they are automatically configured as plain EJB or web services. Though, this was in the context of ServiceMix, where the EJBs were to be exposed on the JBI bus and eventually through HTTP/SOAP too. On Thu, Oct 9, 2008 at 9:26 PM, David Blevins <[EMAIL PROTECTED]> wrote:

Re: OpenEJB in an OSGi container

2008-10-09 Thread David Blevins
Guillaume is the one who's done most the work in this area in regards to his use of OpenEJB in the OSGi-based ServiceMix 4. What boot technique did you use in ServieMix? -David On Oct 9, 2008, at 2:08 PM, Zog wrote: Hi So, I managed to get my EJB app running just fine in Tomcat/ OpeneEJ

Re: OpenEJB with JUnit from NetBeans: NameNotFoundException

2008-10-09 Thread David Blevins
On Oct 9, 2008, at 4:32 AM, Bernhard Humm wrote: init: deps-jar: compile: compile-test: Testsuite: org.superbiz.calculator.CalculatorTest Apache OpenEJB 3.0build: 20080408-04:13 http://openejb.apache.org/ INFO - openejb.home = C:\temp\NetBeans\OpenEJBTest INFO - openejb.base = C:\temp\NetBe

Re: Override annotations in ejb-jar.xml for a test case

2008-10-09 Thread David Blevins
On Oct 9, 2008, at 3:16 AM, Marcin Kwapisz wrote: Correct me if I am wrong: when ejb-jar is empty OpenEJB process all class files (in classes and test-classes) and looks for annotated EJBs. When ejb-jar is modified, OpenEJB process that file and looks for annotated EJBs in test-classes onl

Re: OpenEJB with JUnit from NetBeans: NameNotFoundException

2008-10-09 Thread David Blevins
On Oct 8, 2008, at 2:09 PM, Bernhard Humm wrote: This is what I did first, with the same effect: NameNotFoundException Could you post the log output from the test run? -David

Re: EntityManager not picking up Map properties

2008-10-09 Thread David Blevins
On Sep 18, 2008, at 10:28 PM, rde8026 wrote: I'm using Hibernate as my JPA provider in a Stateless EJB. I need to add the hibernate.default_catalog property to the EntityManager based on the dialect being used (i.e. SQL Server = dbo). I'm injecting the EntityManagerFactory and trying to

Re: HELP! JNDI DataSource Name

2008-10-09 Thread David Blevins
On Sep 19, 2008, at 5:10 PM, rde8026 wrote: Object obj1 = new javax.naming.InitialContext().lookup("java:openejb/Resource/JTADS"); I've also tried it like this: Properties props = new Properties(); props.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "org.apache.openejb.client.LocalInitialCo

Re: Rollback transactions in unit testing

2008-10-09 Thread David Blevins
On Sep 29, 2008, at 8:39 AM, Glauber Ferreira wrote: Hi all. I need to rollback transactions in order to revert all data modified (deleted, updated, created) by my tests. How can I do that in the test code listed in this link: http://openejb.apache.org/3.0/unit-testing-transactions.html S

Re: Override annotations in ejb-jar.xml for a test case

2008-10-08 Thread David Blevins
On Sep 22, 2008, at 5:33 AM, Marcin Kwapisz wrote: Hi, I would like to add an interceptor to my EJB but only in a test. I have separate ejb-jar.xml for tests and all my EJBs are annotated. We don't have any functionality for supplying an alternate ejb-jar.xml for testing purposes. It's

Re: JNDI lookup in Tomcat

2008-10-08 Thread David Blevins
On Oct 8, 2008, at 12:37 PM, Zog wrote: I installed the openejb.war in tomcat-6.0.18 and my ear as a collapsed ear. When I lookup objects in the JNDI tree, I realized that I can freely look up injected resources (I use the in ejb-jar.xml for ex for data sources), but non injected are fai

Re: weblogic support and

2008-10-08 Thread David Blevins
On Oct 8, 2008, at 6:37 AM, Zog wrote: Hi I'm porting MDBs developed for weblogic into OpenEJB. I have the following issue. I declared the queues I use in openejb.xml, like destination My_Real_Queue and my weblogic.xml descriptors contain MyMDB My_JNDI_Queue If I use just t

Re: Unknown error in Assembler for MessageDriven bean

2008-10-08 Thread David Blevins
On Oct 3, 2008, at 8:01 AM, Zog wrote: Hi Unfortunately I cant' post the code - but I solved the issue by just adding a javax.jms.MessageListener in ejb-jar.xml for all my MDBs. One thing to note though is that my MDBs do not directly imlpement this interface, they extend a class that doe

Re: OpenEJB with JUnit from NetBeans: NameNotFoundException

2008-10-08 Thread David Blevins
On Oct 8, 2008, at 3:26 AM, Bernhard Humm wrote: I am trying to use OpenEJB with JUnit from NetBeans IDE. This is what I have done: 1. Download openejb-3.0.zip and openejb-examples-3.0.zip from openejb.apache.org and unzip. 2. Open new NetBeans Java Project with Existing Sources (source and

Fwd: Application Period Opens for Travel Assistance to ApacheCon US 2008

2008-09-25 Thread David Blevins
Begin forwarded message: Resent-From: <[EMAIL PROTECTED]> From: "Gavin" <[EMAIL PROTECTED]> Date: September 25, 2008 8:36:44 AM CDT To: <[EMAIL PROTECTED]> Subject: Application Period Opens for Travel Assistance to ApacheCon US 2008 Reply-To: [EMAIL PROTECTED] Dear PMCs, Please could you

Re: Problem during deployment with ejb-jar.xml

2008-09-18 Thread David Blevins
On Sep 18, 2008, at 3:21 AM, Fred59 wrote: Hi all, I'm using OpenEJB 3.0. I try to override a persistence context defined in a session. Hereafter the ejb-jar.xml content http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLo

Re: Bind Datasource to specific jndi name

2008-09-16 Thread David Blevins
On Sep 16, 2008, at 3:42 AM, Andreas Karalus wrote: Hi David, thank you for your hint, I tried this, but still got exception: In the code for intialisation of openejb: initialContext.bind("java:operativDS", new javax.naming.LinkRef("java:openejb/Resource/operativDS")); In the test Code: //

<    3   4   5   6   7   8   9   10   11   >