Enterprise Beans Tutorial

Home| Forums | Join Google Group | Join Yahoo Group | Jobs
Get custom programming done at GetAFreelancer.com!
Earn Money
  Trading Forex Online
  Paramount Airways
  Free Data Recovery
 Cargo
 Job Portal
  HSBC Investment
 Management
 Cheap Web Hosting
  Make Trip
  Cheap Air Travel
 Leisure Hotel
  Free Air Travel
  Mutual Fund Informations
   Cheapest Cellular Plan
 Free Sexy Indians
  Call Center Software
  Hot Indian
Programming Help | Homework Help | Counseling
Astrology Advice | Tarot Advice | Parenting
Dating Advice | Love Advice | Divorce Advice
Legal Advice | Debt Advice | Career Advice

Enterprise Beans Tutorial


30 following example, the getUser method of an enterprise bean returns the name of the J2EE user that
invoked it:
public String getUser() { return sessioncontext.getCallerPrincipal ().getName(); } To determine the caller of a servlet, you invoke the getUserPrincipal method. Determining the Caller's Role You can determine whether an enterprise bean's caller belongs to a particular role by invoking the isCallerInRole method: boolean result = context.isCallerInRole("Customer"); To determine the caller's role for a servlet, you invoke the isUserInRole method. Security Policy Files · The J2EE server policy file is named server.policy. It resides in the $J2EE_HOME/lib/security
directory.
· The J2EE application client policy file, client.policy , resides in the same directory.


Earn Money
  Trading Forex Online
  Paramount Airways
  Free Data Recovery
 Cargo
 Job Portal
  HSBC Investment
 Management
 Cheap Web Hosting
  Make Trip
  Cheap Air Travel
 Leisure Hotel
  Free Air Travel
  Mutual Fund Informations
   Cheapest Cellular Plan
 Free Sexy Indians
  Call Center Software
  Hot Indian