Jacek Laskowski wrote:
> On 7/18/06, David Blevins <[EMAIL PROTECTED]> wrote:
>> I have the start of support for the EJB3 ejb-jar.xml worked in using
>> JAXB.  It's working great and the itests run, the only trick is it
>> *only* supports ejb3 descriptors, i.e. you *must* have this at the
>> top of your ejb-jar.xml
>>
>> <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"; ...>
>>
>> Using the previous namespace or using no namespace at all no longer
>> works.  This might be easy to solve, but I'm quite a JAXB novice.
>>
>> The namespace info comes from an annotation in a package-info.java
>> class.  Don't know if there is some other way to specify it or
>> override the annotation.
> 
> Duh! I thought I found out a partial solution to the issue, which is
> exactly what you'd written in the last paragraph. It's my first time
> with JAXB and have been reading over the jaxb spec and java ee
> tutorial and came up to the package-info.java file, which you had
> already found out about. Funny, very funny! :)
> 
> Have you already sorted it out? We could generate jaxb-generated
> classes for the other spec dtds or xschemas and ...that's the other
> piece I couldn't figure out yet. Do you have any ideas as to how to
> work it out?

I have generated jaxb generated this in the persistence module of oejb3.
  It uses the jaxb2 maven plugin to generate an object graph for the
persistence.xsd. Take a look:

http://svn.openejb.codehaus.org/browse/openejb/trunk/openejb3/container/openejb-persistence

I should be able to help if you have any questions (since I wrote the
JAXB2 plugin).

Jeff

> 
> Jacek
> 

Reply via email to