Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

security-role-ref Tag In MDB?

 
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am I right in saying security-role-ref tag can be there only for entity and session beans and NOT for MDB?

SInce it is used by bean provider to specify any roles that he might have used in context.isCallerInRole("XXX")
In place of XXX.
And MDBs can not call isCallerInRole.

Please confirm.

Thanks,
Gemini
 
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Having the tag for MDB doesn't make any sense. Some verifiers may complain. Some do not. Also, because the DTD is common for all the bean types, even XML parsers ignore them when specified for MDB. All we need to make sure is that there is no isCallerInRole("XYZ") call in our MDBs.
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it not the same with Uncheked element specified for MDB as well?

Or in this case verifier itself is going to cause a problem?

As I understand
Having </unchecked> for MDB
verifyer will cause a problem.

Having security-role-ref for MDB
does not make sence but verifier is not going to cause any problem.

Please correct me if I am wrong.
Gemini
 
Keerthi P
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

As I understand
Having </unchecked> for MDB
verifyer will cause a problem.



Can you please tell me why so?
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both should not because the DTD is common for all the bean types

But then I was just trying to understand why is that
the point of not having Unchecked element for MDB is specified in HFEJB where as
The point of not having security-role-ref for MDB is not specified anywhere.

So I thought one causes error at vaerifier level and other does not.

However if both dont, then my understanding is right.

Thanks!
[ March 22, 2005: Message edited by: Gemini Moses ]
 
Keerthi P
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Being too much watchful is dangerous as far as this exam is concerned because then you may get bogged down into unnecessary 'inferences' from simple questions. Just my $0.02
 
Gemini Moses
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your 2 cents are worh much more than that...

I will keep this in mind. I myself have already strated getting lost/ confused feeling. I hope I pass the exam.
 
Keerthi P
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just keep in mind that security-role-ref does not make any sense for MDB and you generally won't specify it. The exam will not test you with questions like 'What error occurs when security-role-ref is specified as XYZ for a MDB?' Most of the gray areas from the spec are carefully avoided/questioned in the exam. So don't worry.
 
Life just hasn't been the same since the volcano erupted and now the air is full of tiny ads.
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic