Re: @ApplicationException(rollback=true) ignored from external API

2008-06-25 Thread David Blevins
On Jun 25, 2008, at 9:38 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I run a test which provokes an application exception. The exception is defined in the same module and annotated with @ApplicationException(rollback=true). The Exception is rolled back. Fine. Another test checks also an

Re: EJBContext cannot be injected in 3.1-SNAPSHOT

2008-06-27 Thread David Blevins
On Jun 27, 2008, at 7:24 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I can inject the session context successfully with: @Resource private SessionContext ctx; But when I only what to have the EJBContext @Resource private EJBContext ctx; it cannot be injected. Is

Re: AW: @ApplicationException(rollback=true) ignored from external API

2008-06-27 Thread David Blevins
, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: No, does not work. See the attached sample project. In the API is the annotated ServiceAddressException class. But the unit tests fails. Regards, Karsten -Ursprüngliche Nachricht- Von: David Blevins [mailto:[EMAIL PROTECTED] Gesendet

Re: Timestamp ignored

2008-06-30 Thread David Blevins
Hi Julia, OpenEJB is an EJB implementation itself, like JBoss. If you're willing to give OpenEJB a try we can definitely see if we can help you get your code running. -David On Jun 30, 2008, at 3:06 PM, Julia O wrote: Hi, I am using jboss 4.2.0 GA and MySQL 5.0. And cannot get a

Re: ClassCastException on JNDI lookup

2008-07-09 Thread David Blevins
On Jul 8, 2008, at 8:47 AM, chawax wrote: And two interfaces, generated everytime too : - @javax.ejb.Local interface EmployeeServiceLocal extends EmployeeService - interface EmployeeService [...] I also have a ejb-jar.xml file with EJB defined as following : session

Re: EJBContext cannot be injected in 3.1-SNAPSHOT

2008-07-10 Thread David Blevins
On Jul 5, 2008, at 2:06 PM, Jacek Laskowski wrote: On Fri, Jun 27, 2008 at 10:33 PM, David Blevins [EMAIL PROTECTED] wrote: In general, we don't check isAssignable on injection types, primarily cause it gets very hairy around business interfaces. But we could probably support

Re: PersistenceContext and Hibernate session

2008-07-11 Thread David Blevins
Hi Olivier, This document may help you understand how things work from a high level. http://cwiki.apache.org/OPENEJBx30/jpa-concepts.html The section of bullet points for With persistence-unit transaction- type=TRANSACTION has a good description of what's going on. When reading it, in

Re: Problem with HelloWorld

2008-07-15 Thread David Blevins
On Jul 15, 2008, at 10:35 AM, Andrej Trifkovic wrote: Hi, I have a problem with OpenEJB. I try to run HelloWorld example in Eclipse with standalone OpenEJB and I get message like this : /HelloBeanRemote does not exist in the system. Check that the app was successfully deployed. In

Re: PersistenceContext and Hibernate session

2008-07-15 Thread David Blevins
On Jul 15, 2008, at 6:11 AM, chawax wrote: I finally could make it work with JBoss AS ... but it doesn't work the same as Open EJB ! On JBoss AS the getDelegate method returns Hibernate session, while it returns Hibernate entity manager on Open EJB. Congrats, glad you got it to work in

Re: ClassCastException on JNDI lookup

2008-07-16 Thread David Blevins
, remote, local-home, local, business- local and business-remote elements. That should be enough :) -David David Blevins wrote: The issue is local must refer to interfaces that extend javax.ejb.EJBLocalObject, i.e. the old style EJB 2.x interfaces. You just need to update your descriptor

Re: Problem with openjpa enhancer - using runtime enhancement

2008-07-17 Thread David Blevins
I wonder if this is simply an issue that the Entity classes are loaded *before* OpenEJB starts and is able to hand the persistence.xml data to OpenJPA. If there are imports for the Entities in the TestCase then this is likely what's happening. You might try moving the test code around a

Re: Stateless Pool and Stateful Pool Timeouts

2008-07-17 Thread David Blevins
On Jul 17, 2008, at 5:29 AM, the666pack wrote: Hello, i have a question regarding timeout values in openejb as the documentation is somewhat sparse: the timeout for the stateless pool is defined as: Specifies the time to wait between invocations. This value is measured in milliseconds.

Re: need help getting quartz-ra.rar file to deploy

2008-07-18 Thread David Blevins
/openejb-standalone/3.1-SNAPSHOT/openejb-standalone-3.1-20080719.020443-5.zip -David David Blevins wrote: On Jul 18, 2008, at 7:50 AM, endium wrote: I am using JBoss' Quartz integration on one of my projects: http://wiki.jboss.org/wiki/QuartzSchedulerIntegration This works fine in a JBoss

Re: need help getting quartz-ra.rar file to deploy

2008-07-20 Thread David Blevins
David Blevins wrote: On Jul 18, 2008, at 5:09 PM, endium wrote: Thanks for your response. Right now I am using openejb embedded for unit testing. Is there a way to configure the inbound resource adapter without deploying an ear? In that case, give our latest snapshots a try. We added support

Re: need help getting quartz-ra.rar file to deploy

2008-07-20 Thread David Blevins
at org .apache .activemq .ra .ActiveMQResourceAdapter .endpointActivation(ActiveMQResourceAdapter.java:217) at org.apache.openejb.core.mdb.MdbContainer.deploy(MdbContainer.java:139) ... 34 more David Blevins wrote: On Jul 20, 2008, at 10:05 AM, endium wrote: I'm using maven

Re: need help getting quartz-ra.rar file to deploy

2008-07-20 Thread David Blevins
container only supports interface javax.jms.MessageListener at org.apache.openejb.core.mdb.MdbContainer.deploy(MdbContainer.java:119) at org .apache .openejb.assembler.classic.EjbJarBuilder.deploy(EjbJarBuilder.java:73) ... 33 more David Blevins wrote: Ok. On second thought, try

Re: Web Service WSDL Location

2008-07-25 Thread David Blevins
On Jul 24, 2008, at 3:12 PM, endium wrote: I am doing some unit testing using web services. I tried following the example web service project as a guide. I am getting: Caused by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing

Re: embeding OpenEJB into WAR

2008-07-29 Thread David Blevins
On Jul 28, 2008, at 7:59 AM, Petr Pudlák wrote: Hi, I was searching through OpenEJB documentation, but I wasn't able to find an answer to my question: Is it possible to embed OpenEJB into a pure servlet application (so that I get EJBs, persistence, etc.) without installing OpenEJB in

Re: need help getting quartz-ra.rar file to deploy

2008-08-01 Thread David Blevins
Ok. Finally got something working here. New zip available at http// issues.apache.org/jira/secure/attachment/12387373/quartz-app.zip Inside you'll see: . ./pom.xml ./quartz-beans ./quartz-beans/pom.xml ./quartz-beans/src ./quartz-beans/src/main ./quartz-beans/src/main/java

Re: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread David Blevins
On Aug 4, 2008, at 2:49 AM, Marcin Kwapisz wrote: Hi, Configuration: OpenEJB 3.0, ToplinkEssentials 2.1, Maven2, JUnit 4, Derby 10.2.2 I have modified that example - http://openejb.apache.org/3.0/testing-transactions-example.html to use Toplink as persistence provider. The problem is,

Re: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread David Blevins
On Aug 4, 2008, at 5:45 AM, Marcin Kwapisz wrote: It may be that TopLink doesn't know how to find our TransactionManager. OpenJPA finds it automatically by calling org.apache.openejb.OpenEJB.getTransactionManager(). For Hibernate, there's the TransactionManagerLookup which can be configured.

Re: Shutdown an embedded instance of OpenEJB programatically

2008-08-04 Thread David Blevins
On Aug 4, 2008, at 5:41 AM, Martin Vysny wrote: On Sat, 2008-08-02 at 15:23 -0700, David Blevins wrote: On Jul 30, 2008, at 12:34 AM, Martin Vysny wrote: Hello, currently we are starting OpenEJB as an embedded service (by performing a lookup

Re: Propblem with OpenEJB + Toplink unit tests

2008-08-04 Thread David Blevins
Marcin, Do you happen to know what the TopLink property is for automatically creating all the required tables? In OpenJPA it's: property name=openjpa.jdbc.SynchronizeMappings value=buildSchema(ForeignKeys=true)/ In Hibernate it's: property name=hibernate.hbm2ddl.auto

Re: Shutdown an embedded instance of OpenEJB programatically

2008-08-05 Thread David Blevins
On Aug 5, 2008, at 12:36 AM, Martin Vysny wrote: On Mon, 2008-08-04 at 15:44 -0700, David Blevins wrote: Thanks, Martin! I'll definitely get that issue cleaned up. David, I must thank you, for your quick answers and solutions! It's really a pleasure to work with OpenEJB being backed

Re: Lazy fields issue with Hibernate/OpenEJB

2008-08-06 Thread David Blevins
On Aug 6, 2008, at 10:28 AM, Dain Sundstrom wrote: I believe this this the JIRA for the issue: https://jira.jboss.org/jira/browse/EJBTHREE-440 It appears that Hibernate requires a custom ObjectInputStream to work properly. They claim the root cause is this VM bug:

Re: Configure OpenEJB Container to use external activemq.xml file

2008-08-07 Thread David Blevins
things work and gives a better error message when they can't. -David David Blevins wrote: On Aug 6, 2008, at 12:47 PM, rde8026 wrote: I've been trying to get the openEJB container to allow me to use an external activemq.xml file for a while now and have been unsuccessful. Below is my

Re: Problem between OpenEJB embedded threading model and Swing Threading model

2008-08-07 Thread David Blevins
We can certainly hack up something in this regard. Quick question, what kind of security tracking would be good for you? I.e. are we talking concurrent users or one user at a time? We've got some code in the openejb-client package that's pretty useful for switching to different modes of

OT: Facebook group if you're interested

2008-08-07 Thread David Blevins
Totally off-topic and non-critical, but there's a facebook group if you'd like to join up: http://www.new.facebook.com/group.php?gid=2658865898 -David

Re: Custom Resource Factory

2008-08-11 Thread David Blevins
On Aug 8, 2008, at 11:11 AM, lupu.slobodu wrote: Here it is what I've been trying: 1)Resource Factory configuration in tomcat context.xml Resource name=bean/ParamsFactory auth=Container type=sample.jndi.ResourceBean factory=sample.jndi.GenericObjectFactory

Re: OpenEJB 3.0.1 release date

2008-08-11 Thread David Blevins
I really really hope we can get something released in the next 2-3 weeks. -David On Aug 11, 2008, at 6:41 AM, Martin Vysny wrote: Hi guys, can you please tell me when the 3.0.1 is planned to be released? (preferable with fixed bug: https://issues.apache.org/jira/browse/OPENEJB-806 :-)

Re: MDB

2008-08-12 Thread David Blevins
On Aug 11, 2008, at 10:29 AM, lupu.slobodu wrote: Trying to run the MDB sample form http://svn.apache.org/viewvc/openejb/trunk/openejb3/examples/simple-mdb-with-descriptor/?pathrev=678070 It looks up the ConnectionFactory but it crashes when calling connectionFactory.createConnection();

Re: need help getting quartz-ra.rar file to deploy

2008-08-12 Thread David Blevins
On Aug 12, 2008, at 9:28 AM, endium wrote: Thanks for this David! For some reason, I didn't get an email notifying me of your reply. I am trying to implement this right now. Was the maven configuration for openejb changed at all? This may be an unrelated problem, but since today it

Re: Custom Resource Factory

2008-08-12 Thread David Blevins
) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) David Blevins wrote: On Aug 8, 2008, at 11:11 AM, lupu.slobodu wrote: Here it is what I've been trying: 1)Resource Factory configuration in tomcat context.xml

Re: Externalize db access data for junit-testing

2008-08-12 Thread David Blevins
Hi Per, On Aug 12, 2008, at 2:38 AM, Newgro wrote: first thanks to the openejb team for this great product. It helps alot for ejb3. Wiki pages and forum support are great. Thanks! A very large percent of the docs come straight from the list, so a big thanks to all the people with

Re: Quality Improvement [Virus checked]

2008-08-12 Thread David Blevins
Moved this to the dev list. On Aug 12, 2008, at 2:08 AM, [EMAIL PROTECTED] wrote: Hi List, I am not sure, the following will concern all of you. On the other hand, I expect some of the developers listening here. Also this may be a known issue. The problem is when running a test using

Re: MDB

2008-08-13 Thread David Blevins
classloader and look for issues like this. Not sure we can get it in for the next release, but I bet that might be a useful timesaver. -David David Blevins wrote: On Aug 11, 2008, at 10:29 AM, lupu.slobodu wrote: Trying to run the MDB sample form http://svn.apache.org/viewvc/openejb

User Blog: Toplink as your OpenEJB Persistence Provider

2008-08-15 Thread David Blevins
Quintin Beukes wrote up a great blog entry on setting up Toplink as the persistence provider for OpenEJB 3.0. http://qbeukes.blogspot.com/2008/08/toplink-as-your-openejb-persistence.html -David

Re: Shutdown an embedded instance of OpenEJB programatically

2008-08-15 Thread David Blevins
On Aug 2, 2008, at 3:23 PM, David Blevins wrote: We could probably wrap this up into a better package and allow it to be called from the initialContext.close() method so you don't have to have any OpenEJB code in your test case. Ok. I implemented the initialContext.close() logic

Re: Problem between OpenEJB embedded threading model and Swing Threading model

2008-08-20 Thread David Blevins
On Aug 7, 2008, at 5:42 PM, David Blevins wrote: We can certainly hack up something in this regard. Quick question, what kind of security tracking would be good for you? I.e. are we talking concurrent users or one user at a time? We've got some code in the openejb-client package that's

Re: Web Admin for OpenEJB3

2008-08-20 Thread David Blevins
On Aug 18, 2008, at 2:39 AM, Nithiraj wrote: I'm a new user to OpenEJB3. Can some one here please let me know where I can get the webadmin module for OpenEjb3? I'm not sure what state it's in for the standalone server. However there's nearly an identical copy of it in the Tomcat

Docs: EJB 3.1 Singleton documentation

2008-08-23 Thread David Blevins
All, We've implemented the new EJB 3.1 javax.ejb.Singleton bean type. Singletons are a new type of Session bean being added to the EJB 3.1 specification. They provide some much needed functionality to the world of EJB and will be part of the coming OpenEJB 3.1 release.

Re: Docs: EJB 3.1 Singleton documentation

2008-08-25 Thread David Blevins
Hi Martin, On Aug 25, 2008, at 4:33 AM, Martin Vysny wrote: Hi David, impressive work indeed, thank you very much! I am especially grateful for the Singleton and Startup functionality which I missed. Thanks! It's definitely great to have a standard way to do this in the EJB world. I

User Blog: Rapid EJB Development with Unit Tests

2008-08-25 Thread David Blevins
Quintin Beukes has written an inspiring blog post about his experience discovering the world of embedded EJB unit testing using OpenEJB and the time it has saved him. He also goes into detail on how to setup OpenEJB in Netbeans starting from downloading OpenEJB to navigating the Netbeans

Re: Docs: EJB 3.1 Singleton documentation

2008-08-26 Thread David Blevins
On Aug 26, 2008, at 5:23 AM, Martin Vysny wrote: Many thanks for clarifying on how the locks works! One more question, just to be 100% sure :) . Recently I studied the java memory model a bit (there is beautiful FAQ located at [1]) and I'd like to ask: Let's assume that the execution

Re: Unit-Testing with JMS using embedded openjpa

2008-08-27 Thread David Blevins
Hi Josef, Swear I sent this yesterday, but here it is :) On Aug 26, 2008, at 7:01 AM, [EMAIL PROTECTED] wrote: testing my first JMS-experiences in Geronimo 2.1.1, I thought why not test it with the openjpa embedded container. We have a lot of stateless session beans which work wonderful in

Re: Custom JAAS LoginModule: Principal with empty name provided

2008-09-04 Thread David Blevins
That's pretty much right. The exact code looks like this: try { // Perform a login attempt (which should fail) // simply to excercise the initialize code of any // LoginModules that are configured. // They should have a chance to perform

Re: Unit Tests hangs on getting connection

2008-09-08 Thread David Blevins
On Sep 5, 2008, at 7:47 AM, Newgro wrote: Hi again, i solved it myself. I created multiple tables on @BeforeClass. But i didn't closed the connection after table create statement was executed. It seems that i've got 10 pooled connections and then the manager was waiting for next free

Re: Unit tests for concurrent transactions

2008-09-08 Thread David Blevins
On Sep 8, 2008, at 4:25 AM, Marcin Kwapisz wrote: I would like to make unit tests for concurrent transactions, for example to check optimistic locking. Is it possible to perform such tests with embedded OpenEJB? If the answer is: yes, how can I control the order of operations in two

Re: Local server is not initialized

2008-09-10 Thread David Blevins
On Sep 10, 2008, at 1:38 AM, Andreas Karalus wrote: I want to test code that performs itself a InitialContext ctx = new InitialContext(). This works well with jboss.embedded, but fails with openejb. For jboss.embedded we use a jndi.properties as configuration. so if the file is present in

Re: Bind Datasource to specific jndi name

2008-09-15 Thread David Blevins
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 UserNamescott Passwordtiger /Resource

Re: Active MQ 5.1 support

2008-09-15 Thread David Blevins
On Sep 9, 2008, at 1:25 PM, rde8026 wrote: Is it possible to use active mq 5.1 with the openejb container rather than 4.1? It should be possible, though I'm not sure if anyone has tried. If so what does it take to make this change. Are you in maven or are you using the lib directory

Re: Active MQ 5.1 support

2008-09-15 Thread David Blevins
On Sep 15, 2008, at 3:45 PM, rde8026 wrote: I'm using the standard lib form a zip file... Ok. In terms of general library upgrading, we generate two files (dependencies.xml and dependencies.txt) that we put inside of every openejb-*.jar that says what dependencies the jar has. The

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

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 ?xml version=1.0 encoding=UTF-8? ejb-jar xmlns=http://java.sun.com/xml/ns/javaee;

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 forward

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

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 messaging-typejavax.jms.MessageListener/messaging-type in ejb-jar.xml for all my MDBs. One thing to note though is that my MDBs do not directly imlpement this

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 resource-ref in ejb-jar.xml for ex for data sources), but non

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: 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 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: 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 David Blevins
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: Guillaume is the one who's done

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 openejb

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`.

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

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 jar- file element in the unit declaration that points to the C:/tomcat6/

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: 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 method with @Remove

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

[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

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

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: 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 sometimes didn't

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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. properties property name=openjpa.jdbc.SynchronizeMappings

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

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

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 is

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

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

<    1   2   3   4   5   6   7   8   >