• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB Newbie needs help  RSS feed

 
James White
Greenhorn
Posts: 23
Java Spring
  • 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
 
Roger Chung-Wee
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?
 
Prem Kumar
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!