Java Reference
In-Depth Information
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="ejb3.*, javax.naming.*" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body><% InitialContext context = new InitialContext();
CatalogTestBeanRemote beanRemote = (CatalogTestBeanRemote)
context.lookup("EJB3-SessionEJB#ejb3.
CatalogTestBeanRemote");
String catalog=beanRemote.test(); %><%=catalog %>
</body>
</html>
Deploying the entity in WebLogic Server
We have created all the classes and configuration files we need to create an EJB 3.0
entity bean. Next, we shall compile the classes to create a EJB JAR file. We shall
create a WAR file from the EJB 3.0 client JSP and package the WAR file with the JAR
file into an EAR file. We shall use a build.xml script to compile the EJB classes,
create an EAR file, and deploy the EAR file to WebLogic Server. Create a build.
xml script in the JPA project with File | New | Other and XML | XML in the New
window. The build.xml script is shown next:
 
Search WWH ::




Custom Search