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 Advice.java, AdviceHome.java and
AdviceBean.java...again, 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
me.
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 jndi.properties 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.
Thanks,
John