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

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

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

2008-10-09 Thread Marcin Kwapisz
Hi, We don't have any functionality for supplying an alternate ejb-jar.xml for testing purposes. It's not a bad idea and is something we might be able to add after we get the 3.1 release out the door. [Marcin Kwapisz] My Maven2 profile is as follows. resource directs to folder

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

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: 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 =

Re: JNDI lookup in Tomcat

2008-10-09 Thread Zog
In a servlet listener for my webapp, I'm using this: public void contextInitialized(ServletContextEvent aArg0) { System.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.apache.openejb.client.LocalInitialContextFactory); System.err.println( FULL JNDI TREE

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/

Re: OpenEJB in an OSGi container

2008-10-09 Thread Guillaume Nodet
It's been a long time since I work on that and I still have not found the time to continue this integration work. Anyway, the code I used is available at: http://svn.apache.org/repos/asf/servicemix/smx4/features/branches/ejb3 It uses a spring-powered bundle to set up OpenEJB:

Re: OpenEJB in an OSGi container

2008-10-09 Thread David Blevins
Thanks, Guillaume. That gives me a pretty good idea on what the pieces are. Zog, let me know what OSGi kernel and version you're using and I'll see if I can't whip up some boot code for you. If you've got any starter code you can share, feel free to zip it up and attach it do a JIRA

Re: OpenEJB in an OSGi container

2008-10-09 Thread Zog
I'm using apache Felix 1.2.1 with OSGi 1.4. I've no code to share yet - I started on this just recently and am still in information gathering mode :) but for sure I'll share this once I get it to work. Thanks a lot for the help /Zog David Blevins wrote: Thanks, Guillaume. That

Re: OpenEJB with JUnit from NetBeans: NameNotFoundException

2008-10-09 Thread franz see
Good day, I am getting the same problem. And my system is able to find the META-INF/ejb-jar.xml as seen in the last part of the surefire reports ( not unless that's the wrong ejb-jar.xml that I'm supposed to look for ). I downloaded openejb-examples-3.0 ( [1] ), extracted the archive, and run