esuslogo
 [To advertise Java(tm) Events here, contact joris@esus.com!]
banner

Java™
by example!






New @ Esus.com


  gb  In-house search engine for better results!

  gb  Get updates with the esus.com
newsletter!









  Home 
 Browse Categories 
 Ask a Java Question 
 Help 
  For Java Tips & Tricks, subscribe to the esus.com newsletter!
Search Java Q&A, Links, API's:   adv 

How do I call an EJB from a JSP?



<%@ page language="java" %>

<%@ page import="javax.ejb.*,javax.naming.*,java.rmi.*,java.util.*" %>
<%

try {
InitialContext ic = new InitialContext();
HelloHome h=ic.lookup("HelloHome");
Hello r = h.create();
out.println(r.hello());
}
catch(Exception e) {
out.println("error at client");
}

%>




Further Information
Author of answer:

Comments
Comments to this answer are only viewable by members. Login or become a member!





Terms of Service | Privacy Policy | Contact

Copyright © 2000-2003 Esus.com - All Rights Reserved 
Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. Esus.com is independent of Sun Microsystems, Inc. All other trademarks are the sole property of their respective owners.