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) 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 -->
<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:
Hi,
not sure what you meant without much details but first .jar should be
deployed in apps (depending on your <Deployments> in tomee.xml)
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/5/21 Fawzib Rojas <[email protected]>
I have a EJB In a jar that I used in Glassfish and I want to move to
Tomee. I drop the jar in the webapps directory and it get installed
correctly but I dont have access to any global resource. I know the
resources work because I also have a webapp configured and it works. I'm
sure I'm missing some configuration file somewhere and I have looked around
but found no info on EJB jars.