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
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
();
-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
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
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()) {
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
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.
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
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
?
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
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
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
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
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
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
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
16 matches
Mail list logo