• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

EJB Newbie needs help

 
Greenhorn
Posts: 23
Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a simple EJB composed of an entity bean, Home and Remote interfaces. I am using ant (from O'Reilly's Enterprise JavaBeans (4th ed) book website) to create my builds, which compiles fine and builds a ejb-jar.xml and a j-boss.xml file (I am also using JBoss 4.0.2). It builds the .jar file (titan.jar) and deploys to the JBoss server automatically. At this point I thought I could write the client to access my bean. No way, everytime I try and import the home and remote interfaces, I get errors (I am using TextPad to write and compile my files) about how the PersonRemote & PersonHomeRemote classes are not recognizable (even though the .jar is deployed on JBoss). I also, notice that when I use the ant tool the name of the jar file is always titan, (is there a way to change that?). I apologize if my questions seem stupid, but I need some help here badly.

Thanks,

JW
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you placed the interfaces on the client's classpath?
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the issue with the classpath.set the classpath to the jar.
You can find the name in the build.xml and you can change it to another name.
 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic