I'm sure you're trying to help, but that tells me nothing. :(
Are you saying I should put "comp/env/<name>" in the id so the EJB can
see them?
Are you saying I'm looking in the wrong place?
I've tried ctx.lookup() for
"jdbc/MSIM","java:/comp/env/jdbc/MSIM","java:global/jdbc/MSIM",
"java:app/jdbc/MSIM","java:module/jdbc/MSIM".
If not, what do I have to do to make the EJB see the resources?
On 5/21/2013 4:41 PM, Romain Manni-Bucau wrote:
These resources are not in comp/env.
Le 21 mai 2013 21:17, "Fawzib Rojas" <[email protected]> a écrit :
I downloaded the tomee-plus-1.52, installed in Windows, configured a
datasource/realm (both in conf/server.xml), configured a resource link in
conf/context.xml, dropped a war in webapps. It is working.
I haven't touched tomee.xml (is empty). Looking in the site mentioned
inside the tomee.xml file (http://tomee.apache.org/**
containers-and-resources.html<http://tomee.apache.org/containers-and-resources.html>)
it just mentions all the possible container types and resources, but not
what they mean or how (or for what) they are used. After googling for a
while found a sample for the Resources.
I moved my resources from server.xml (GlobalNamingResources) to tomee.xml,
and the webapp still works but the EJB I deployed in apps still cant find
the JNDI datasource.
This is my new tomee.xml:
<?xml version="1.0" encoding="UTF-8"?>
<tomee>
<!-- see
http://tomee.apache.org/**containers-and-resources.html<http://tomee.apache.org/containers-and-resources.html>-->
<Resource id="jdbc/MSIM" type="javax.sql.DataSource">
.....
</Resource>
<Resource id="javamail/MSIM" type="javax.mail.Session">
.......
</Resource>
<Deployments dir="apps/" />
</tomee>
On 5/21/2013 11:01 AM, Romain Manni-Bucau wrote: