1 Reply Latest reply on Mar 1, 2008 12:12 PM by Sara Rodríguez Dorrego

    JNDI problem

    Sara Rodríguez Dorrego Novice


      I would like to know how I could access from a ManagedBean to the remote interface of a Session Bean. The structure of my ear file is de folowing:

       - MANIFEST.MF
       - application.xml
       - jboss-app.xml

      In the class ManagedBean I would acces to the session bean GestorProyectosRemote but I don't know how. I try to import the package session.GestorProyectosRemote but this doesn't work.

      I'm using JBoss 4.2.2GA + EJB3.0. In the ejb-jar.xml file there aren't any definition of a bean.This is not necesary for EJB3 doesn't true? This is teh content of ejb-jar.xml

      <?xml version="1.0" encoding="utf-8"?>
      <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0"
       xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">

      How I can access to the Remote interface of my sessionBean (GestorProyectosRemote)?