Two Laptop Bag
The moose likes EJB and other Java EE Technologies and the fly likes newbie ejb question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "newbie ejb question" Watch "newbie ejb question" New topic

newbie ejb question

John Gregory
Ranch Hand

Joined: Oct 05, 2006
Posts: 118
I'm using the "Head First" book to learn ejb. In trying my first
ejb, I created my directory structure the way they have it on pg 56.
In my headfirst pkg, I have, and, just the way the book describes. I've
compiled them and wrote the ejb-jar.xml file.

Next, I deployed them to the server...I'm using jboss as my server.
According to the JBoss docs, all I need do is copy the jar file I
created with the aforementioned files into the ~server/deploy dir
and voila. In watching my window, I see it doing something, but
not sure if it worked correctly. That's not the part that confuses

Ok, next, I wrote my client program. Here's where some confusion
begins. In the book, they do this jndi look-up for an Advisor (pg 57). Looking back a few pages, this was a jndi property that was set with something called the "deploy tool". I understand the jndi part, just
not sure whether I need to manually create a file with
the key-value pair:

AdviceBean=Advisor?? Can somebody verify this?

Back to the book. On pg 56, they show this jar file "that the the
server gave us when we deployed". I believe I need this or SOME jar
file because when I coded my client code and attempt to compile, it
can't find any of the interface components (EJBHome or EJBObject).

Ok, I'm using Fedora as my os and just a regular text editor as an
ide... In short, can somebosy tell me what I need to do to get this
wired so I can run my client app? I'm doing EVERYTHING by hand -- I
don't mind the typing & I learn better this way.


I agree. Here's the link:
subject: newbie ejb question
jQuery in Action, 3rd edition