My application is packaged using an EAR (ysf.ear), with a JAR (ysf.jar) and a
WAR (ysf.war), and the JAR being deployed first.
The jmx-console doesn't show me the JNDI service, the only place where I found
references to my application is here:
jboss.j2ee
* ear=ysf.ear,jar=ysf.jar,name=Employee,service=EJB3
* module=ysf.jar,service=EJB3
* service=ClientDeployer
* service=EARDeployer
* service=EARDeployment,url='ysf.ear'
This is the log shown in the console window when the application is deployed:
08:55:07,441 INFO [EARDeployer] Init J2EE application:
file:/J:/jboss-4.0.3SP1/server/all/deploy/ysf.ear
08:55:07,882 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=Employee,
class=es.dbs.ysf.employee.EmployeeSessionBean, type=STATELESS
08:55:07,892 INFO [Ejb3Deployment] EJB3 deployment time took: 90
08:55:07,932 INFO [JmxKernelAbstraction] installing MBean:
jboss.j2ee:service=EJB3,ear=ysf.ear,jar=ysf.jar,name=Employee with dependencies:
08:55:08,533 INFO [EJB3Deployer] Deployed:
file:/J:/jboss-4.0.3SP1/server/all/tmp/deploy/tmp33605ysf.ear-contents/ysf.jar
08:55:08,543 INFO [TomcatDeployer] deploy, ctxPath=/ysf,
warUrl=.../tmp/deploy/tmp33605ysf.ear-contents/ysf-exp.war/
08:55:09,705 INFO [EARDeployer] Started J2EE application:
file:/J:/jboss-4.0.3SP1/server/all/deploy/ysf.ear
And this is part of my source code:
EmployeeSessionLocal.java
@Local
public interface EmployeeSessionLocal
{ ... }
EmployeeSessionBean.java
@Stateless(name="Employee")
public class EmployeeSessionBean implements EmployeeSessionLocal
{ ... }
Controller.java
public class Controller extends HttpServlet {
public void doGet( ... ) throws ServletException, IOException
{
InitialContext context = new InitialContext();
EmployeeSessionLocal session = (EmployeeSessionLocal)
context.lookup( "Employee" );
...
}
}
Any idea?
Thanks!!
José Luis.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3936791#3936791
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3936791
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user