• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

why not a FQ classname in method-param

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On page 579 of Head First EJB it says:

To distinguish overloaded methods in the DD (Security in EJB) you can use the method-param tag, but to my surprise the value of "String" is used; I would expect "java.lang.String". Why don't you have to use the fully qualified classname here? What if I have my own class as paramter, e.q. com.whatever.MyClass, what do I put in the method-param tag now?

Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
testMethod(char c int a,com.whatever.MyClass mc)

specified as:

<method-param> com.whatever.MyClass </method-param>

for string part it should be fully qualified java type
I am a man of mystery. Mostly because of this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic