Hi all,
I've been trying to implement a resource reference in a session bean
deployment descriptor,
but I can't get Orion (0.0.1l) to accept it.
After adding the resource-ref (see below) to my bean, I tried to re-deploy.
At this point Orion added <resource-ref-mapping name="MyDatasource" /> to
it's orion-ejb-jar.xml
And showed this error:
Error initializing home of type Itinerary in package E:\WA\Java: No location
specified for resource-ref MyDatasource
That's to be expected, but when I edited the <resource-ref-mapping> to:
<resource-ref-mapping name="MyDatasource" location="jdbc/DefaultPooledDS" />
Orion reported the same error and removed the location attribute.  I've
tried different ways, but just can't get it to work.  Any help would be
greatly appreciated.

Thanks,
Andre Vanha


Relevant section of my ejb-jar.xml:
<session>
        Normal EJB deployment definition....
        <resource-ref>
                <description>My Datasource</description>
                <res-ref-name>MyDatasource</res-ref-name>
                <res-type>javax.sql.ConnectionPoolDataSource</res-type>
                <res-auth>Container</res-auth>
        </resource-ref>
</session>

Relevant section of my orion-ejb-jar.xml:
<session-deployment name="Itinerary" location="Itinerary"
wrapper="SessionHomeWrapper17" timeout="1200"
persistence-filename="Itinerary">
        <resource-ref-mapping name="MyDatasource" location="jdbc/DefaultPooledDS"
/>
</session-deployment>



Reply via email to