Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need Help Deploying EJB as a Web-Service (Exam Objective 3)

 
Avinash Ga
Ranch Hand
Posts: 78
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

I am trying to learn to deploy the EJB as a Web-Service for covering Exam Objective 3 . Since i dont know EJB, i am struck at this objective from past 1 week . Particularly i dont know what to put inside sun-ejb-jar.xml . Can you please review my simple code and tell me what i am missing?

Following is the simple code.

EndPoint Interface :-



Implementation Bean:-




ejb -jar.xml:-



sun-ejb-jar.xml :-







Thanks in Advance.....
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Avinash,

why do you need ejb -jar.xml and sun-ejb-jar.xml file.

Since you have annotated all the details, this files are not required, I suppose.
 
Avinash Ga
Ranch Hand
Posts: 78
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Benneth,

I tried deploying without ejb-jar.xml and sun-ejb-jar.xml and it went through nicely. But i was looking into one of the exam objectives which states that Configure deployment descriptors (ejb-jar.xml, webservices.xml) for transactions, etc. and concerned about that. So do if i am using EJB 3 i can skip those external configurations. So can i expect web services using EJB 3.0 questions in exam? (FYI: Some times when i have an exam to take and only half prepared, i act weirdly {asking silly questions to myself and others} )

Thanks Again
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic