tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Re: Problem during deployment with ejb-jar.xml
Date Thu, 18 Sep 2008 17:41:27 GMT
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"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>          http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
> 	version="3.0">
> <enterprise-beans>
>    <session>
> 	<ejb-name>MySessionImpl</ejb-name>
>            <persistence-context-ref>
>
> <persistence-context-ref-name>core.impl.MySessionImpl/em</ 
> persistence-context-ref-name>
>                <persistence-unit-name>myDomainExt</persistence-unit- 
> name>
>            </persistence-context-ref>
>    </session>
> </enterprise-beans>
> </ejb-jar>
>

It's fine to leave the <ejb-class> tag off as the annotated bean with  
the same name can fill in that data, but in this case it looks like  
there is no bean with the ejb-name MySessionImpl and therefore it  
isn't overriding anything.

-David


Mime
View raw message