Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews Best Management Interviews:Account ManagerAccounts ManagerAdmin PeoplesoftAdministrative AssistantAdministrative OfficerArea ManagerAssistant ManagerAssistant Manager TaxAsst. Operations ManagerBanquet ManagerBrand ManagementBusiness ManagementCash ManagementCity ManagerClub ManagerCost ManagementCustomer Relationship Manager(CRM)Deputy General Manager(DGM)Deputy Manager SecurityEffective Leadership SkillsEmployee Reference CheckERP OperationsExecutive AssistantFactory ManagerFailure PreventionFinancial ManagementGeneral Manager (GM)GM ProcessingGood Effective ManagementGood Team LeaderGoods Dispatch ExectiveHospital ManagerHotel ManagementHuman Resource (HR)Industrial ManagementInformation Technology ManagementInfrastructure ManagementInternal Audit and Cost ManagerLeadership SkillsLeading TeamLogistic CoordinatorManagementManagement ConsultingManagement ExecutiveManagement SkillsManagement StyleManager BakeryManager Call CenterManager ConstructionManager ContractsManager Garments DepartmentManager ImportsManager ProcurementManager SkillsManager StoresManager SustainabilityMBANon TechnicalNurse ManagerOffice ManagerOffice Support AssistantOperation ManagerOperations CoordinatorOperations ManagementOperations strategyPeoplesoftPersonnel ManagementProduct ManagerProduct Packing ManagerProduction ManagerProject CoordinatorProject ManagementProject Management Professional (PMP)Project ManagerRecord ManagerResearch Media ManagerRetail ManagementRetail ManagerSalary ExpectationsSenior Project OfficerSix SigmaStore KeeperStore SupervisorSupervisorSupply Chain OfficerTeam LeadTechnical ManagerTechnical Project ManagerTest ManagerTime ManagementTraining ManagerUnit Manager
Copyright © 2018. All Rights Reserved
Human Resource (HR) Interview Question:
How does EJB support polymorphism?
Submitted by: AdministratorPosted in EJB Interview Questions, HR Interview Questions
Because an EJB consists of multiple “parts”, inheritance is achievable in a rather limited fashion (see FAQ answer on inheritance here). There have been noteworthy suggestions on using multiple inheritance of the remote interface to achieve polymorphism, but the problem of how to share method signatures across whole EJBs remains to be addressed. The following is one solution to achieving polymorphism with Session Beans. It has been tried and tested on Web Logic Apps Server 4.50 with no problems so far.
We will use an example to show how it's done. Say, there are 2 session beans, Tiger and Lion that share some method signatures but provide different implementations of the methods.
• Animal Home and Animal are the home and remote interfaces. The signatures of the polymorphic methods are in Animal.
• Animal Bean is the base implementation bean.
• Tiger Bean and Lion Bean extend from Animal Bean. They may override the methods of Animal Bean, implementing different behaviors.
Submitted by: Administrator
Because an EJB consists of multiple “parts”, inheritance is achievable in a rather limited fashion (see FAQ answer on inheritance here). There have been noteworthy suggestions on using multiple inheritance of the remote interface to achieve polymorphism, but the problem of how to share method signatures across whole EJBs remains to be addressed. The following is one solution to achieving polymorphism with Session Beans. It has been tried and tested on Web Logic Apps Server 4.50 with no problems so far.
We will use an example to show how it's done. Say, there are 2 session beans, Tiger and Lion that share some method signatures but provide different implementations of the methods.
• Animal Home and Animal are the home and remote interfaces. The signatures of the polymorphic methods are in Animal.
• Animal Bean is the base implementation bean.
• Tiger Bean and Lion Bean extend from Animal Bean. They may override the methods of Animal Bean, implementing different behaviors.
Submitted by: Administrator
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.

https://InterviewQuestionsAnswers.ORG.
