Re: jaxb 2.0 vs jaxb 2.1

2009-08-06 Thread Andreas Karalus
Hi Louis, hi David, in our case both way should work (pom or javaee.jar without jaxb), since we rely on maven as build tool and we are using openejb just for unit tests. In other cases (e.g. ant build, or embedding openejb in tomcat) the javaee.jar alternative should be more suitable. I've

jaxb 2.0 vs jaxb 2.1

2009-07-31 Thread Andreas Karalus
problem was already posted, there is a problem with javaee-5.0.2 containing jaxb-api-2.0, if someone relies on jaxb-impl-2.1 you'll get linkage errors like this one Caused by: java.lang.LinkageError: JAXB 2.0 API jar is being loaded (from

Re: openejb shutdown with 3.1.1

2009-07-23 Thread Andreas Karalus
(); -David On Jul 22, 2009, at 8:52 AM, Andreas Karalus wrote: hello, does the shutdown code in openejb 3.1.1 have changed? in 3.0 works fine (we had 1000 tests up and running) Assembler assembler = SystemInstance.get().getComponent(Assembler.class

openejb tries to start org.apache.tools.ant.Main

2009-07-23 Thread Andreas Karalus
some strange behaviour while trying to switch to openejb 3.1.1 The Container tries to automatically load org.apache.tools.ant.Main which is not in classpath but is a transitive dependency in maven. This was not the case with openejb 3.0. org.apache.openejb.OpenEJBException: Unable to load

openejb shutdown with 3.1.1

2009-07-22 Thread Andreas Karalus
hello, does the shutdown code in openejb 3.1.1 have changed? in 3.0 works fine (we had 1000 tests up and running) Assembler assembler = SystemInstance.get().getComponent(Assembler.class); for (AppInfo appInfo : assembler.getDeployedApplications()) {

Re: Configure datasource to work with JBoss style lookups?

2008-10-02 Thread Andreas Karalus
I already had the same issue discussed here: http://www.nabble.com/Bind-Datasource-to-specific-jndi-name-td19391707.html I haven't found a really sexy solution at this time, my workarounds are using a ServiceLocator to do the lookups. I have to change all of my code, replacing

RE: Rollback transactions in unit testing

2008-09-30 Thread Andreas Karalus
Marcin, the strategy you suggest should also work and is especially good for prototyping or smaller projects. In our case where we have a huge application with (1.5 Mio LoC, 1000 EJBs, 100 database tables with complex relationships) we cannot drop (or empty) and create tables in junit tests.

Re: Rollback transactions in unit testing

2008-09-29 Thread Andreas Karalus
We are also using openejb for junit testing. In our tests we are using UserTransaction to control the test data. Maybe this approach might also work for you. Below is the basic code, the startup and shutdown of the container, as well as starting/stopping transaction could also be moved to a

Re: Configure datasource to work with JBoss style lookups?

2008-09-29 Thread Andreas Karalus
Hi, it looks like for me like you are having some jndi and classpath problems, take a look if you still have some jboss specific jndi.properties. java.naming.factory.url.pkgs org.jboss.naming:org.jnp.interfaces anyway I found a simple way to bind a datasource in jboss specific style(we are

Re: Bind Datasource to specific jndi name

2008-09-16 Thread Andreas Karalus
? Regards, Andreas David Blevins wrote: On Sep 9, 2008, at 5:53 AM, Andreas Karalus wrote: hello, i've configured a datasource like this Resource id=operativDS type=DataSource JdbcDriver oracle.jdbc.driver.OracleDriver JdbcUrl jdbc:oracle:thin:@localhost:1521:orcl

TransactionManager injection

2008-09-15 Thread Andreas Karalus
Hello, Our production Code injects the TransactionManager like this: @Resource(mappedName=java:/TransactionManager) TransactionManager txManager; This is the default binding in JBoss. Testing with openejb fails, below is the relevant stacktrace ... My question is now, if there is any

Re: Local server is not initialized

2008-09-10 Thread Andreas Karalus
david, thank you very much! I followed your hint and changed the jndi.properties for tests like you suggested and everything works fine. you are doing a great job here, thank you! andreas David Blevins wrote: On Sep 10, 2008, at 1:38 AM, Andreas Karalus wrote: I want to test code

Local server is not initialized

2008-09-09 Thread Andreas Karalus
first of all, I would like to thank all the people in forum for the quick responses. openejb looks like solid piece of software. however, i'm still running into problems while trying to migrate our jboss embedded tests to openejb. booting of openejb works fine, however, we have some places in

Re: @LocalBinding with openejb

2008-09-08 Thread Andreas Karalus
hello guys, thank you for you replies so far. what I exactly mean is following: In openejb, the default jndi binding pattern is done by setting the property openejb.jndiname.format. It is possible to override this for a specific ejb by the creating an openejb-jar.xml file like this openejb-jar

Re: @LocalBinding with openejb

2008-09-07 Thread Andreas Karalus
dain, thank you for your reply. The annotations are specific to jboss and provide the capability to override the default (local and/or remote) jndi binding behaviour (they are not mandatory). I created a feature request in jira. https://issues.apache.org/jira/browse/OPENEJB-908

@LocalBinding with openejb

2008-09-05 Thread Andreas Karalus
hello, is there any possibililty to get openejb jndi binding to evaluate the org.jboss.annotantions.ejb.LocalBinding annotations? thx in advice, andreas -- View this message in context: http://www.nabble.com/%40LocalBinding-with-openejb-tp19328370p19328370.html Sent from the OpenEJB User