SlideShare una empresa de Scribd logo
1 de 54
Enterprise Java Beans(EJB) With EJBs, you can develop building blocks ‘ejb components ’ – that u and someone else can assemble and reassemble into different applications. For example , you might create a customer bean that represents a customer in database. You can use that Customer bean in an accouting program, an e-commerce shopping cart and a tech support application. One beauty of EJBs is that you take code reuse to a whole new level, instead of just code it reuses whole functionality and allows you modify that way bean behaves at runtime with touching its java code. 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Enterprise Java Beans: What really EJBs gives you ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
How does it all works? ,[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Type of Beans ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Session Bean can be stateless or stateful  ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
FIVE THING YOU DO TO BUILD A BEAN ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Write the Bean Class ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
AdviceGuy Bean ,[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
BEAN CLASS ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],You need this package These four methos are from SessionBean interface, so you have to put them here,for now worry about what these are for! You must have an ejbCreate() method. Its an ejb rule we’ll learn about later. But it doesn’t come from SessionBean interface. You must implemet one of three bean type interfaces: 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Write two interfaces for the Bean ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],It must extend either the EJBObject or EJBLocalObject. This is the actual business method. It MUST  correspond to a method in the bean class. 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Write two interfaces for the Bean ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],It must extend either the EJBObject or EJBLocalObject. This is the actual business method. It MUST  correspond to a method in the bean class. 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Home Interface ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],The create() method must return your component interface type!! The home must extend either the EJBHome interface or EJBLocalHome  06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Create an XML DD  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Specify home interface name Remote interface 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Put the Bean, the interface and the DD into ejb-jar file META-INF EJB-JAR.XML MYPACKAGE AdvcieBean.class AdviceHome.class Advice.class MYEJB.JAR ejb-jar.xml must be in a directory named META-INF 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Deploy the bean into the server,using the tools provided by the server vendor 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
How to call a bean from Client Side? ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
The Client Code(AdviceClient.java) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Finally we get to the actual business methods. Lookup the AdviseBean using the JNDI name we gave during deployment. Initialcontext is our entrypoint into JNDI directory 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
EJB ARCHITECTURE 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
EJB uses RMI 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
How EJB uses RMI 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
EJB uses RMI ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
*** ,[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
*** ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Tricky Questions  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
How EJB really Works? 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
How EJB really Works? 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
How EJB really Works? 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
The Bean Home ,[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Architectural Overview: Session Beans ,[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Architectural Overview: Entity Bean ,[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Architectural Overview: Session Beans ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Stateless session beans are more scalable ,[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Tricky Questions ,[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
JNDI ,[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Rules for the home interface ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
EJBHome interface ,[object Object],[object Object],[object Object],[object Object],[object Object],Get reflection like information about the bean. You can use to get more specific class information about the bean. 06/23/10 JavaTruths.com:A Portal for all java related stuff!!! Serialize the home so that you can get the home again later, without having to go through JNDI.
EJBHome interface ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!! When u are done with session bean,you can tell the home by calling remove() and passing the EJB object’s handle. Tell the home to remove an entity bean. You can’t call remove(Object primarykey) method on session bean it will throw RemoveException.
Rules for the component interface ,[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
EJBObject methods ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!! Get the primary key of an entity bean This doesn’t apply to session bean and throws RemoteException.
EJBObject methods ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!! Get the bean’s home object. Save a reference to the EJBObject so that you can get back to your original EJB object. Tell the bean you are done with it. Container removes the resources held by the session bean. Compare the EJB object references to see if they reference the same bean.
The Handle ,[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
isIdentical? ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Session Bean life cycle ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Container Callbacks ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
ejbCreate method? ,[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Container callbacks invocation 06/23/10 JavaTruths.com:A Portal for all java related stuff!!! Does not Exist Method ready Passivated setSessionContext() ejbCreate() ejbPassivate() ejbActivate() ejbRemove() or  timeout Bean throw system exception  timeout
Bean’s Context ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!! get EJBHome() getEJBLocalHome() getEJBObject() getEJBLocalObject() getCallerPrincipal() isCallerInRole(String s) setRollbackOnly(bollean b ) getRollbackOnly() getUserTransaction()
How to use setSessionContext(Sessioncontext sc) ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
How to use ejbCreate()? ,[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
Use sessioncontext for 06/23/10 JavaTruths.com:A Portal for all java related stuff!!! setSessionContext() ejbCreate() Within business method Use your SessionContext for: Get a reference to your home Get a reference to home Get a reference to home Get a reference to your EJB Object Get a reference to your EJB Object Get security info about the client Get security info about the client Get a transaction reference and call methods on it(BMT Beans) For a transaction to rollback(CMT beans) Find out if the transaction has already been set to rollback(CMT beans) Get a transaction reference and call methods on it (BMT beans) Access : Your special JNDI Environment Your special JNDI Env. Your special JNDI Env. Another beans methods Another beans methods A resource manager(like a DB) A resource manager(like a DB)
Removing a stateful bean ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],06/23/10 JavaTruths.com:A Portal for all java related stuff!!!

Más contenido relacionado

La actualidad más candente (19)

Jsp
JspJsp
Jsp
 
Seam Introduction
Seam IntroductionSeam Introduction
Seam Introduction
 
IOC + Javascript
IOC + JavascriptIOC + Javascript
IOC + Javascript
 
Javascript Best Practices
Javascript Best PracticesJavascript Best Practices
Javascript Best Practices
 
EJB .
EJB .EJB .
EJB .
 
Jsp
JspJsp
Jsp
 
Skillwise EJB3.0 training
Skillwise EJB3.0 trainingSkillwise EJB3.0 training
Skillwise EJB3.0 training
 
J2EE jsp_01
J2EE jsp_01J2EE jsp_01
J2EE jsp_01
 
Java j2ee interview_questions
Java j2ee interview_questionsJava j2ee interview_questions
Java j2ee interview_questions
 
Os Leonard
Os LeonardOs Leonard
Os Leonard
 
Spring talk111204
Spring talk111204Spring talk111204
Spring talk111204
 
Spring
SpringSpring
Spring
 
Java Beans
Java BeansJava Beans
Java Beans
 
Spring talk111204
Spring talk111204Spring talk111204
Spring talk111204
 
Enterprise JavaBeans(EJB)
Enterprise JavaBeans(EJB)Enterprise JavaBeans(EJB)
Enterprise JavaBeans(EJB)
 
WEB TECHNOLOGIES JSP
WEB TECHNOLOGIES  JSPWEB TECHNOLOGIES  JSP
WEB TECHNOLOGIES JSP
 
Enterprise Java Beans - EJB
Enterprise Java Beans - EJBEnterprise Java Beans - EJB
Enterprise Java Beans - EJB
 
Enterprise Java Beans 3 - Business Logic
Enterprise Java Beans 3 - Business LogicEnterprise Java Beans 3 - Business Logic
Enterprise Java Beans 3 - Business Logic
 
JSR 168 Portal - Overview
JSR 168 Portal - OverviewJSR 168 Portal - Overview
JSR 168 Portal - Overview
 

Destacado

Lecture 8 Enterprise Java Beans (EJB)
Lecture 8  Enterprise Java Beans (EJB)Lecture 8  Enterprise Java Beans (EJB)
Lecture 8 Enterprise Java Beans (EJB)Fahad Golra
 
Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)Stephen Gordon
 
Kvm virtualization platform
Kvm virtualization platformKvm virtualization platform
Kvm virtualization platformAhmad Hafeezi
 
Virtualization - Kernel Virtual Machine (KVM)
Virtualization - Kernel Virtual Machine (KVM)Virtualization - Kernel Virtual Machine (KVM)
Virtualization - Kernel Virtual Machine (KVM)Wan Leung Wong
 

Destacado (6)

Introduction to EJB
Introduction to EJBIntroduction to EJB
Introduction to EJB
 
Lecture 8 Enterprise Java Beans (EJB)
Lecture 8  Enterprise Java Beans (EJB)Lecture 8  Enterprise Java Beans (EJB)
Lecture 8 Enterprise Java Beans (EJB)
 
EJB3 Basics
EJB3 BasicsEJB3 Basics
EJB3 Basics
 
Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)Libvirt/KVM Driver Update (Kilo)
Libvirt/KVM Driver Update (Kilo)
 
Kvm virtualization platform
Kvm virtualization platformKvm virtualization platform
Kvm virtualization platform
 
Virtualization - Kernel Virtual Machine (KVM)
Virtualization - Kernel Virtual Machine (KVM)Virtualization - Kernel Virtual Machine (KVM)
Virtualization - Kernel Virtual Machine (KVM)
 

Similar a Enterprise java beans(ejb)

Enterprise java beans(ejb) Update 2
Enterprise java beans(ejb) Update 2Enterprise java beans(ejb) Update 2
Enterprise java beans(ejb) Update 2vikram singh
 
EJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLinkEJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLinkBill Lyons
 
ADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.pptADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.pptrani marri
 
Ejb - september 2006
Ejb  - september 2006Ejb  - september 2006
Ejb - september 2006achraf_ing
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applicationshchen1
 
Free EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggetsFree EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggetsVirtual Nuggets
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJBodedns
 
Spring training
Spring trainingSpring training
Spring trainingTechFerry
 
Real world java_ee_patterns
Real world java_ee_patternsReal world java_ee_patterns
Real world java_ee_patternsAlassane Diallo
 
Creating Custom Dojo Widgets Using WTP
Creating Custom Dojo Widgets Using WTPCreating Custom Dojo Widgets Using WTP
Creating Custom Dojo Widgets Using WTPnsandonato
 
Ruby on Rails survival guide of an aged Java developer
Ruby on Rails survival guide of an aged Java developerRuby on Rails survival guide of an aged Java developer
Ruby on Rails survival guide of an aged Java developergicappa
 
Session 3 Tp3
Session 3 Tp3Session 3 Tp3
Session 3 Tp3phanleson
 
Lec5 ecom fall16_modified7_november16
Lec5 ecom fall16_modified7_november16Lec5 ecom fall16_modified7_november16
Lec5 ecom fall16_modified7_november16Zainab Khallouf
 
EJB et WS (Montreal JUG - 12 mai 2011)
EJB et WS (Montreal JUG - 12 mai 2011)EJB et WS (Montreal JUG - 12 mai 2011)
EJB et WS (Montreal JUG - 12 mai 2011)Montreal JUG
 
Adding a modern twist to legacy web applications
Adding a modern twist to legacy web applicationsAdding a modern twist to legacy web applications
Adding a modern twist to legacy web applicationsJeff Durta
 

Similar a Enterprise java beans(ejb) (20)

Enterprise java beans(ejb) Update 2
Enterprise java beans(ejb) Update 2Enterprise java beans(ejb) Update 2
Enterprise java beans(ejb) Update 2
 
EJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLinkEJB 3.0 Java Persistence with Oracle TopLink
EJB 3.0 Java Persistence with Oracle TopLink
 
ADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.pptADVANCED JAVA MODULE I & II.ppt
ADVANCED JAVA MODULE I & II.ppt
 
Ejb - september 2006
Ejb  - september 2006Ejb  - september 2006
Ejb - september 2006
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
 
Free EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggetsFree EJB Tutorial | VirtualNuggets
Free EJB Tutorial | VirtualNuggets
 
JEE Course - EJB
JEE Course - EJBJEE Course - EJB
JEE Course - EJB
 
Spring training
Spring trainingSpring training
Spring training
 
Lezione 03 Introduzione a react
Lezione 03   Introduzione a reactLezione 03   Introduzione a react
Lezione 03 Introduzione a react
 
Jsf tutorial
Jsf tutorialJsf tutorial
Jsf tutorial
 
Real world java_ee_patterns
Real world java_ee_patternsReal world java_ee_patterns
Real world java_ee_patterns
 
Creating Custom Dojo Widgets Using WTP
Creating Custom Dojo Widgets Using WTPCreating Custom Dojo Widgets Using WTP
Creating Custom Dojo Widgets Using WTP
 
Ruby on Rails survival guide of an aged Java developer
Ruby on Rails survival guide of an aged Java developerRuby on Rails survival guide of an aged Java developer
Ruby on Rails survival guide of an aged Java developer
 
Session 3 Tp3
Session 3 Tp3Session 3 Tp3
Session 3 Tp3
 
Spring boot
Spring bootSpring boot
Spring boot
 
Lec5 ecom fall16_modified7_november16
Lec5 ecom fall16_modified7_november16Lec5 ecom fall16_modified7_november16
Lec5 ecom fall16_modified7_november16
 
Ejb intro
Ejb introEjb intro
Ejb intro
 
EJB et WS (Montreal JUG - 12 mai 2011)
EJB et WS (Montreal JUG - 12 mai 2011)EJB et WS (Montreal JUG - 12 mai 2011)
EJB et WS (Montreal JUG - 12 mai 2011)
 
Adding a modern twist to legacy web applications
Adding a modern twist to legacy web applicationsAdding a modern twist to legacy web applications
Adding a modern twist to legacy web applications
 
EJB 2
EJB 2EJB 2
EJB 2
 

Último

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 

Último (20)

CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 

Enterprise java beans(ejb)

  • 1. Enterprise Java Beans(EJB) With EJBs, you can develop building blocks ‘ejb components ’ – that u and someone else can assemble and reassemble into different applications. For example , you might create a customer bean that represents a customer in database. You can use that Customer bean in an accouting program, an e-commerce shopping cart and a tech support application. One beauty of EJBs is that you take code reuse to a whole new level, instead of just code it reuses whole functionality and allows you modify that way bean behaves at runtime with touching its java code. 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14. Put the Bean, the interface and the DD into ejb-jar file META-INF EJB-JAR.XML MYPACKAGE AdvcieBean.class AdviceHome.class Advice.class MYEJB.JAR ejb-jar.xml must be in a directory named META-INF 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 15. Deploy the bean into the server,using the tools provided by the server vendor 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 16.
  • 17.
  • 18. EJB ARCHITECTURE 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 19. EJB uses RMI 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 20. How EJB uses RMI 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 21.
  • 22.
  • 23.
  • 24.
  • 25. How EJB really Works? 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 26. How EJB really Works? 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 27. How EJB really Works? 06/23/10 JavaTruths.com:A Portal for all java related stuff!!!
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49. Container callbacks invocation 06/23/10 JavaTruths.com:A Portal for all java related stuff!!! Does not Exist Method ready Passivated setSessionContext() ejbCreate() ejbPassivate() ejbActivate() ejbRemove() or timeout Bean throw system exception timeout
  • 50.
  • 51.
  • 52.
  • 53. Use sessioncontext for 06/23/10 JavaTruths.com:A Portal for all java related stuff!!! setSessionContext() ejbCreate() Within business method Use your SessionContext for: Get a reference to your home Get a reference to home Get a reference to home Get a reference to your EJB Object Get a reference to your EJB Object Get security info about the client Get security info about the client Get a transaction reference and call methods on it(BMT Beans) For a transaction to rollback(CMT beans) Find out if the transaction has already been set to rollback(CMT beans) Get a transaction reference and call methods on it (BMT beans) Access : Your special JNDI Environment Your special JNDI Env. Your special JNDI Env. Another beans methods Another beans methods A resource manager(like a DB) A resource manager(like a DB)
  • 54.

Notas del editor

  1. 06/23/10
  2. 06/23/10