Re: em.clear() in a non transactional context

2009-02-20 Thread David Blevins
On Feb 18, 2009, at 1:00 AM, Jean-Sébastien Scrève wrote: @PersistenceContext(unitName = MyUnit, type = PersistenceContextType.EXTENDED) private EntityManager em; Aha. I had assumed that we were talking about PersistenceContextType.TRANSACTION. Going to have to dig in

Re: Securing a webservice

2009-02-20 Thread Jean-Louis MONTEIRO
Jonathan, Here are some inputs. Jonathan Gallimore-2 wrote: Obviously I think it would be great if the standalone and embedded servers which use their own HTTP listener could accept credentials via basic authentication, meanwhile Tomcat could do the authentication for us based on

OpenEJB+Tomcat+Oracle+Toplink

2009-02-20 Thread petko
Hello , In my project i am using OpenEJB with Tomcat and Oracle 10g with Toplink as provider I have problems configuring the persistence units and/or datasources. I am not quite sure what the problem is. The structure of ejb jar folder is: -projectjar.jar --com --META-INF, where

Re: Securing a webservice

2009-02-20 Thread Jonathan Gallimore
Hi Jean-Louis, Many thanks for your detailed reply and the link to the article. I'll be having a good look at this over the weekend. I had initially thought just applying basic auth was all there was to it, which is probably a bit naive of me! I think it would be worthwhile working out whether

Re: OpenEJB API

2009-02-20 Thread Jonathan Gallimore
Looks like they aren't on the site (or I've missed them too, if they are). I'm not aware of any process to generate them for the website when committing a change. If you're happy to checkout the source, you can generate them on your own machine using Maven: mvn javadoc:javadoc They end up in

Re: OpenEJB API

2009-02-20 Thread Sean Hodges
Great stuff, thanks Jon. A bit of searching with Google turned up this: http://openejb.apache.org/apidocs/ - but I think that is based on a 3.1 snapshot, generating from Maven will be better. Sean 2009/2/20 Jonathan Gallimore jonathan.gallim...@gmail.com Looks like they aren't on the site (or

Re: OpenEJB+Tomcat+Oracle+Toplink

2009-02-20 Thread David Blevins
The datasource names in your persistence.xml (DBFirst, DBSec) do not match the names of the datasources you configured in your openejb.xml (DBM, DBL). I'm suspicious of this line in the persistence.xml: property name=Context.INITIAL_CONTEXT_FACTORY