• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

newbie ejb question

Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

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.


What's wrong? Where are you going? Stop! Read this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic