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

Frustrated with ejb-jar.xml

 
Karthik Jayaprakasham
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quite frustrated with the ejb-jar.xml...Coudn't sun follow a naming convention..
For ex..
<resource-ref>
<res-ref-name>something</res-ref-name>
<res-type>something</res-type>
<res-auth>Container<res-auth>
</resource-ref>
I thought res-ref-name is named that way instead of <resource-ref-name> because it was too long but hang on there's
<resource-env-ref>
<resource-env-ref-name>something</resource-env-ref-name>
<resource-env--type>something</resource-env--type>
</resource-env-ref>
In most places I try to remember the starting tag and just append name and type at the end, worked fine for env-entry, ejb-ref, ejb-local-ref. But suddenly they change it in resource-ref, security-role-ref etc..
It's irritating in so many other places (<prim-key-class> ..
I mean at the end of the day you are reading these things not just to pass an exam but also to be good and thorough EJB developer that you want as long as your are in the profession. What's the point having twists here and there (Yeah...don't tell me it's to improve your memory)
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karthik,
I also agree with you. SUN is known for its misleading naming conventions...

Right from Java Web Server to EJBs....it is all confusing...
For example:
ejbCreate() of an entity bean is not the same as ejbCreate() of an SLSB...
ejbPassivate() of a SFSB is not the same as entity bean...
The list goes on.....
<!ELEMENT cmr-field (description?, cmr-field-name, cmr-field-type?)>
<!ELEMENT cmp-field (description?, field-name)>
And the exam requires you to be perfect with the spelling!
My suggestion is to memorize the tags as hard as you can and after the exam, try to forget them as soon as possible!
 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the exam require you to memorize dd tags? If so, about how many questions? Is there particular tags that I should focus on?
Thanks
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keith,
I got around 3 questions on the DTD tags.
Recognizing the element is easy in the exam, but all the options shown appear very familiar at that moment. Unless you get the spelling right, you may not get the answer right...
I think getting those awful dtd tags into my head helped me...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic