Wrox Home  
Search P2P Archive for: Go

  Return to Index  

j2ee thread: problem with a very simple jsp+ejb file


Message #1 by jaghk@2... on Tue, 26 Nov 2002 04:07:41
The solution in EJB11 ?

-----Original Message-----
From: jaghk@2... [mailto:jaghk@2...]
Sent: 28 November 2002 08:23
To: Java 2 Enterprise Edition
Subject: [j2ee] Re: problem with a very simple jsp+ejb file


the solution in the "design pattern"??


> Mastering EJB 11 is a good beginning.  When you have the basic knowledge
start reading the design patterns

Danie

-----Original Message-----
From: jaghk@2... [mailto:jaghk@2...]
Sent: 27 November 2002 03:27
To: Java 2 Enterprise Edition
Subject: [j2ee] Re: problem with a very simple jsp+ejb file


do you mean the books are "Mastering EJB II " and "EJB Design Patterns" on 
the serverside??



> I think you should get some reading material - Go to theServerside.com -
There is a book you can downloawd on J2EE.  Go to sun and look at the
petstore example

WARs are only for your JSP and Servlet pages and are handled by the servlet
engine - Tomcat
JARs are for the EJB and are handled by Jboss - see jboss site for example
of how to create this.

Because we have an integrated inviorment (JBOSS and TOMCAT together) we 
need
and EAR.  The ear contain the JAR and WAR

-----Original Message-----
From: jaghk@2... [mailto:jaghk@2...]
Sent: 26 November 2002 09:26
To: Java 2 Enterprise Edition
Subject: [j2ee] Re: problem with a very simple jsp+ejb file


I have created ejb-jar.xml
but I don't know what can I do in jboss.xml,can you tell me?
and the next,you say I should have a deployment only contains servlet and 
JSP files only.Can you tell me the reason?and what is the function of the 
servlet???

I am really thank for you


> First of all - I do not see your been in the JNDI tree.  Did you create 
an
ejb-jar.xml and jboss.xml file and secondly a war deployment only contains
servlet and JSP files - no ejbs.  You need to create an ear file - The ear
file contain the war (servlets and JSPs) and jar (EJBs ) files

  Return to Index