openejb-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicola Dellisanti <nicola.dellisa...@gmail.com>
Subject tomcat integration
Date Tue, 08 Feb 2011 14:53:13 GMT
Hi,

when I can view my deployed ejb in "ejb viewer" openejb's page (
http://localhost:8080/openejb/viewejb.jsp)?

I make a folder testejb under webapps folder under tomcat.
Under my folder testejb I put META-INF/ejb-jar.xml, and my .class ejb files:

- it\het\richtest\ejb\RichTestEJB.class and
- it\het\richtest\ejb\RichTestEJBBean.class.

RichTestEJB is a local inteface.
RichTestEJBBean is the implementation.

Here is my ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar version="3.0" 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">
   <enterprise-beans>
      <!-- A minimal session EJB deployment -->
      <session>
   <display-name>RichTestEJBBean</display-name>
         <ejb-name>RichTestEJBBean</ejb-name>
         <home>it.het.richtest.ejb.RichTestEJB</home>
         <ejb-class>it.het.richtest.ejb.RichTestEJBBean</ejb-class>
         <!-- or Stateful -->
         <session-type>Stateless</session-type>
         <transaction-type>Container</transaction-type>
      </session>

 </enterprise-beans>

</ejb-jar>

in the openejb.xml (under tomcat's conf folder) I put the line:
<Deployments dir="richtest/" />

it is correct?

thanks,
Nicola

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message