<%@ page import="ejbdemo.*" %>
<%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ojsp/ejbtaglib.tld" prefix="ejb" %>
<html> 
<head> <title>Use EJB from JSP</title> </head>
<body>

<ejb:useHome id="home" type="ejbdemo.DemoSessionLocalHome" location="java:comp/env/ejb/DemoSessionLocal" local="true" />

<%-- note: session scope is not currently supported in a distributable application --%>
<ejb:useBean id="demoLocal" type="ejbdemo.DemoSessionLocal" local="true" scope="page" >
	<ejb:createBean instance="<%=home.create()%>" />
</ejb:useBean>

<heading2>      Enterprise Java Bean, Local Interface:  </heading2>  
	<p><b> My name is "<%=demoLocal.getName()%>". </b></p>
</body> </html>
