• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

i dont agree with tgis on Design patterns

 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the are questions from Whozlabs Design Patterns -

Which of the following can be contorlled centrally by MVC ?

A. database functionlaity
B. security
C. loggin
D. screen flow
E. accessing remote component

a model holds the businees logic and data base access thing. so MVC does waht is said in A, but it uses the model component to do so. So A is correct

E is incorrect because MVC is a presentaion layer pattern and has nothing to with remote access.

the POINT is option like SECURITY and LOGGING are 'NOT AT ALL RELATED TO DESIGN PATTERNS' and must never appear here. we use the J2EE features to imlement sevurity/logging, and design patterns are never related to these issues in any way. so as per me -
only A and D are correct. but whizlabs tells to select 3 options and they are B,D,C

Another question on similar lines -

Whic hare advantages of Front Controller ?

A. improves security mangeability
B. centralizes control
C. enables seperation between presentation and web tier services
D. reduces networking calls involved and thus increases performance
E. improves reusability

my answers wer - B,C,E
whizlabs says - B,A,E

My arguement against E - security management is not a design pattern issue
its rather a J2EE spec issue and design patterns have nothing to do with it
and as J2EE says- we never code security in the source files, rather we deslare it in web.xml

i agree that C is wrong as Front Controller is a presentaion tier pattern

i expect a healthy debate on this -

security management is not a design pattern issue
its rather a J2EE spec issue and design patterns have nothing to do with it
and as J2EE says- we never code security in the source files, rather we deslare it in web.xml


like SECURITY and LOGGING are 'NOT AT ALL RELATED TO DESIGN PATTERNS' and must never appear here. we use the J2EE features to imlement sevurity/logging, and design patterns are never related to these issues in any way

thanks in advance !
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I 100% agree with your answer...

security management is not a design pattern issue
its rather a J2EE spec issue and design patterns have nothing to do with it
and as J2EE says- we never code security in the source files, rather we deslare it in web.xml

like SECURITY and LOGGING are 'NOT AT ALL RELATED TO DESIGN PATTERNS' and must never appear here. we use the J2EE features to imlement sevurity/logging, and design patterns are never related to these issues in any way



Regards
Bala
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I mostly disagree.

Security can be done programmatically. Also, it's not necessarily meaning that a design pattern ever implements security or logging, but they may create a central processing that could make security and logging more maintainable.
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hope such stupid questions are not on the exam

but still these questions teach a lot

hoping to get more replies on it !
 
Boobalan Pillai
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

There is no design pattern for security,logging..but I hope we can achieve this with Filter chaining design pattern...
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A book on J2EE Security pattern:
Core J2EE Security pattern
- By Sun microsystems
 
Ashley Mittal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have a look
http://www.coresecuritypatterns.com/
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic