Head First EJB. Passing the Sun Certified Business Component Developer Exam
- Autorzy:
- Kathy Sierra, Bert Bates
- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 734
- Dostępne formaty:
-
ePubMobi
Opis ebooka: Head First EJB. Passing the Sun Certified Business Component Developer Exam
What do Ford Financial, IBM, and Victoria's Secret have in common? Enterprise JavaBeans (EJB). As the industry standard for platform-independent reusable business components, EJB has just become Sun Microsystem's latest developer certification. Whether you want to be certifiable or just want to learn the technology inside and out, Head First EJB will get you there in the least painful way. And with the greatest understanding.You'll learn not just what the technology is, but more importantly, why it is, and what it is and isn't good for. You'll learn tricks and tips for EJB development, along with tricks and tips for passing this latest, very challenging Sun Certified Business Component Developer (SCBCD) exam. You'll learn how to think like a server. You'll learn how to think like a bean. And because this is a Head First book, you'll learn how to think about thinking.Co-author Kathy Sierra was one of Sun's first employees to teach brave, early adopter customers how to use EJB. She has the scars. But besides dragging you deep into EJB technology, Kathy and Bert will see you through your certification exam, if you decide to go for it. And nobody knows the certification like they do - they're co-developers of Sun's actual exam!As the second book in the Head First series, Head First EJB follows up the number one best-selling Java book in the US, Head First Java. Find out why reviewers are calling it a revolution in learning tough technical topics, and why Sun Chairman and CEO Scott McNealy says, "Java technology is everywhere...if you develop software and haven't learned Java, it's definitely time to dive in "Head First."And with Head First book, you don't even have to feel guilty about having fun while you're learning; it's all part of the learning theory. If the latest research in cognitive science, education, and neurobiology suggested that boring, dry, and excruciatingly painful was the best way to learn, we'd have done it. Thankfully, it's been shown that your brain has a sense of style, a sense of humour, and a darn good sense of what it likes and dislikes.In Head First EJB, you'll learn all about:
- Component-based and role-based development
- The architecture of EJB, distributed programming with RMI
- Developing and Deploying an EJB application
- The Client View of a Session and Entity bean
- The Session Bean Lifecycle and Component Contract
- The Entity bean Lifecycle and Component Contract
- Container-managed Persistence (CMP)
- Container-managed Relationships (CMR)
- EJB-QL
- Transactions
- Security
- EJB Exceptions
- The Deployment Descriptor
- The Enterprise Bean Environment in JNDI
- Programming Restrictions and Portability
Wybrane bestsellery
-
To dziewiąte wydanie znakomitego podręcznika programowania dla początkujących, starannie zaktualizowane i uzupełnione o informacje dotyczące Java Platform, Standard Edition 17. Książka rozpoczyna się od solidnej dawki wiedzy o kompilacji i uruchamianiu programu w Javie, słowach kluczowych i istot...(77.40 zł najniższa cena z 30 dni)
83.85 zł
129.00 zł(-35%) -
Dzięki tej książce zrozumiesz bazowe koncepcje programowania funkcyjnego i przekonasz się, że możesz włączać je do kodu bez rezygnacji z paradygmatu obiektowego. Dowiesz się również, kiedy w swojej codziennej pracy używać takich opcji jak niemutowalność i funkcje czyste i dlaczego warto to robić....
Java. Podejście funkcyjne. Rozszerzanie obiektowego kodu Javy o zasady programowania funkcyjnego Java. Podejście funkcyjne. Rozszerzanie obiektowego kodu Javy o zasady programowania funkcyjnego
(52.20 zł najniższa cena z 30 dni)56.55 zł
87.00 zł(-35%) -
Java. Podręcznik na start to pozycja idealna dla każdego, kto chce podjąć takie kroki. W przystępny sposób zaznajamia nie tylko z językiem, ale też z podstawowymi koncepcjami stosowanymi podczas programowania - w obrazowy sposób przyrównuje je do sytuacji znanych spoza świata wirtualnego. Autor n...(41.40 zł najniższa cena z 30 dni)
44.85 zł
69.00 zł(-35%) -
Build Your Own Programming Language provides a hands-on approach to designing and implementing programming language features in a simple compiler and programming environment. This book will help you create new or domain-specific languages.
Build Your Own Programming Language. A developer's comprehensive guide to crafting, compiling, and implementing programming languages - Second Edition Build Your Own Programming Language. A developer's comprehensive guide to crafting, compiling, and implementing programming languages - Second Edition
-
Java należy do najpopularniejszych języków programowania na świecie. Używana przez miliony programistów, jest na tyle uniwersalna, że znajduje zastosowanie zarówno w aplikacjach desktopowych, mobilnych, jak i serwerowych, a także w zaawansowanych systemach zarządzania bazami danych. Z jej zalet k...
Java 21. Kurs video. Od "Hello World!" do programowania obiektowego Java 21. Kurs video. Od "Hello World!" do programowania obiektowego
(39.60 zł najniższa cena z 30 dni)54.45 zł
99.00 zł(-45%) -
Oto kolejne wydanie zwięzłego podręcznika dla programistów Javy, który ma ułatwić maksymalne wykorzystanie technologii tego języka w wersji 17. Treść została skrupulatnie przejrzana i uzupełniona o materiał dotyczący nowości w obiektowym modelu Javy. Pierwsza część książki obejmuje wprowadzenie d...(53.40 zł najniższa cena z 30 dni)
57.84 zł
89.00 zł(-35%) -
Kariera zawodowa programisty jest związana z nieustanną nauką i doskonaleniem zdobytych umiejętności. Jednym z podstawowych etapów rozwoju programisty Java jest zaznajomienie się z dobrymi praktykami programistycznymi, co obejmuje także wzorce projektowe – i to im właśnie poświęcony jest te...
Wzorce projektowe w Javie. Kurs video. Programowanie efektywnych rozwiązań Wzorce projektowe w Javie. Kurs video. Programowanie efektywnych rozwiązań
(39.90 zł najniższa cena z 30 dni)81.95 zł
149.00 zł(-45%) -
Oto zaktualizowane i uzupełnione wydanie zwięzłego wprowadzenia do Javy SE 17, przeznaczonego dla profesjonalnych programistów Javy. Przedstawiono w nim wszystkie istotne zagadnienia, łącznie z takimi koncepcjami jak wyrażenia lambda i strumienie, nowoczesnymi konstrukcjami, jak rekordy i klasy z...
Java. Przewodnik doświadczonego programisty. Wydanie III Java. Przewodnik doświadczonego programisty. Wydanie III
(53.40 zł najniższa cena z 30 dni)57.84 zł
89.00 zł(-35%) -
This practical guide teaches inexperienced Java programmers and web developers how to design, develop, test, and deploy highly scalable and maintainable APIs using REST, gRPC, GraphQL, and reactive programming paradigms with Java and Spring Boot. Complete with real-world examples, it will guide y...
Modern API Development with Spring 6 and Spring Boot 3. Design scalable, viable, and reactive APIs with REST, gRPC, and GraphQL using Java 17 and Spring Boot 3 - Second Edition Modern API Development with Spring 6 and Spring Boot 3. Design scalable, viable, and reactive APIs with REST, gRPC, and GraphQL using Java 17 and Spring Boot 3 - Second Edition
-
Ideal for working programmers new to Java, this best-selling book guides you through the language features and APIs of Java 21. Through fun, compelling, and realistic examples, authors Marc Loy, Patrick Niemeyer, and Dan Leuck introduce you to Java's fundamentals, including its class libraries, p...(245.65 zł najniższa cena z 30 dni)
254.15 zł
299.00 zł(-15%)
O autorach ebooka
Kathy Sierra od wielu lat zajmuje się teorią nauczania. Pracowała na Uniwersytecie Kalifornijskim i w Sun Microsystems. W 2015 roku otrzymała Pioneer Award — nagrodę przyznawaną przez Electronic Frontier Foundation.
Bert Bates był programistą systemów eksperckich i systemów operacyjnych czasu rzeczywistego. Od 2003 roku pisze książki, jest autorem licznych pozycji z serii Rusz głową!
Kathy Sierra, Bert Bates - pozostałe książki
-
Ta książka, podobnie jak inne pozycje z serii Rusz głową!, została przygotowana zgodnie z jedyną w swoim rodzaju metodyką nauczania, wykorzystującą zasady funkcjonowania ludzkiego mózgu. Dzięki zagadkom, tajemnicom do rozwiązania, zabawnym ćwiczeniom i przystępnie podanej wiedzy bez trudu przyswo...(89.40 zł najniższa cena z 30 dni)
96.85 zł
149.00 zł(-35%) -
What will you learn from this book?Head First Java is a complete learning experience in Java and object-oriented programming. With this book, you'll learn the Java language with a unique method that goes beyond how-to manuals and helps you become a great programmer. Through puzzles, mysteries, an...(211.65 zł najniższa cena z 30 dni)
220.15 zł
259.00 zł(-15%) -
Otwórz się na Javę i projektowanie obiektowe. Przystąp do nauki unikalną metodą, wykraczającą poza suche opisy składni oraz sposobów omijania codziennie spotykanych raf programistycznych. To doskonały podręcznik dla osób, które lubią uczyć się nowych języków programowania i nie mają wykształcenia...(29.90 zł najniższa cena z 30 dni)
48.50 zł
97.00 zł(-50%) -
Looking to study up for the new J2EE 1.5 Sun Certified Web Component Developer (SCWCD) exam? This book will get you way up to speed on the technology you'll know it so well, in fact, that you can pass the brand new J2EE 1.5 exam. If that's what you want to do, that is. Maybe you don't care about ...
Head First Servlets and JSP. Passing the Sun Certified Web Component Developer Exam. 2nd Edition Head First Servlets and JSP. Passing the Sun Certified Web Component Developer Exam. 2nd Edition
(143.65 zł najniższa cena z 30 dni)152.15 zł
179.00 zł(-15%) -
Statyczna strona internetowa dziś już nikogo nie zachwyca. Czas na zmianę! Pora sprawić, aby tworzone przez Ciebie aplikacje stały się wyjątkowo dynamiczne, elastyczne i interaktywne. Poznaj i wykorzystaj w tym celu nowoczesną technologię serwletów i stron JSP.
Head First Servlets & JSP. Edycja polska. Wydanie II (Rusz głową!) Head First Servlets & JSP. Edycja polska. Wydanie II (Rusz głową!)
(101.40 zł najniższa cena z 30 dni)109.85 zł
169.00 zł(-35%) -
Używamy rysunków, bo obraz wart jest 1024 słów. Stosujemy powtórzenia, by zakodować na stałe dane w Twojej chłonnej głowie. Oddziałujemy na emocje, jesteśmy nieprzewidywalni, zaskakujący i zabawni. Stawiamy przed Tobą wyzwania i zadajemy pytania, które angażują Cię w proces studiowania przedstawi...(24.90 zł najniższa cena z 30 dni)
44.50 zł
89.00 zł(-50%) -
Dzięki książce "Head First Servlets & JSP. Edycja polska" serwlety i technologia Java Server Pages przestaną być dla Ciebie wiedzą z pogranicza magii.
Head First Servlets & JSP. Edycja polska (Rusz głową!) Head First Servlets & JSP. Edycja polska (Rusz głową!)
(77.40 zł najniższa cena z 30 dni)83.85 zł
129.00 zł(-35%)
Ebooka "Head First EJB. Passing the Sun Certified Business Component Developer Exam" przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook, Onyx Boox i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka "Head First EJB. Passing the Sun Certified Business Component Developer Exam" posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolnych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video "Head First EJB. Passing the Sun Certified Business Component Developer Exam" zobaczysz:
-
w aplikacjach Ebookpoint i Videopoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych z dostępem do najnowszej wersji Twojej przeglądarki internetowej
Szczegóły ebooka
- ISBN Ebooka:
- 978-14-493-7008-4, 9781449370084
- Data wydania ebooka:
- 2003-10-28 Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@ebookpoint.pl.
- Język publikacji:
- angielski
- Rozmiar pliku ePub:
- 28.8MB
- Rozmiar pliku Mobi:
- 28.8MB
Spis treści ebooka
- Head First EJB
- Dedication
- A Note Regarding Supplemental Files
- Advance praise for Head First EJB
- Praise for the Head First approach and Head First Java
- Praise for the Head First approach
- Perpetrators of the Head First series (and this book)
- How to Use This Book: Intro
- Who is this book for?
- Who should probably back away from this book?
- Who is this book for?
- We know what youre thinking
- And we know what your brain is thinking
- Metacognition: thinking about thinking
- Heres what WE did
- Heres what YOU can do to bend your brain into submission
- What you need for this book
- Last-minute things you need to know
- About the SCBCD exam
- Technical Reviewers
- Other people to credit:
- 1. Intro to EJB: Welcome to EJB
- What is EJB all about?
- What does EJB really give me?
- No more vendor lock-in!
- How does it all work?
- Behind the scenes...
- Beans come in three flavors
- Session beans can be stateless or stateful
- Example: The Advice Guy bean
- Five things you do to build a bean:
- EJB Roles and Responsibilities
- Tutorial:
- Organize your project directory
- Organizing your terminal / command-line
- Compile the two interfaces and the bean class
- Start the server
- Youll see something like this
- Start deploytool
- youll see something like this
- Make a new Application
- Name and save the new application
- What youll see after you create and name the application
- Now lets make the new enterprise bean (the ejb-jar and the DD)
- Now were in the really cool New Enterprise Bean Wizard
- Create the new ejb-jar
- Add the three class files (including their package directory) to the JAR
- Confirm that you added ONLY the package directory and the class files
- Make it a Stateless Session bean
- Tell it which of the three class files in the JAR is the actual BEAN class
- Tell it which is the Home interface, and which is the Component interface
- Verify everything on this screen!
- Youre done, click Finish
- Meanwhile back on the main deploytool screen...
- Run your bean through the deploytool verifier
- Close your eyes and click OK
- Whew! No failed tests
- Time to Deploy
- Make it Return a Client Jar
- Give it a name, so clients can look it Up
- Watch the progress bars go up, then celebrate
- Now youll see the AdviceApp inside the server
- Now all we need is a client...
- Organizing your project directory for the client
- Run the client!
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 2. Architectural Overview: EJB Architecture
- You remember this picture...
- Making a remote method call
- Theres a helper on the server as well...
- What about arguments and return values?
- What really gets passed when you pass an object to a remote method?
- Passing a Remote object through a remote method call
- What must the Remote object and the stub have in common?
- The client calls business methods on the stub through the Remote business interface
- How EJB uses RMI
- The Remote object is not the bean, its the beans bodyguardthe EJBObject
- The Component interface
- Who writes the class that really DOES implement the component interface? In other words, who makes the EJBObject class?
- Who creates what?
- The bean Home
- Architectural overview: Session beans
- Architectural overview: Entity beans
- Architectural overview: Creating a Stateful Session bean
- Architectural overview: Creating a Stateless Session bean
- Who creates the stateless session bean, and when?
- Stateless session beans are more scalable
- Architectural overview: Message-driven beans
- 3. The Client View: Exposing Yourself
- What the client really wants
- It all starts with the home interface
- How a client uses a session bean: create, use, and remove
- But first, we have to get a home interface reference
- In other words, we have to get the stub to the home object... the thing we use to call create(), so that we can get what we really wantthe EJB object stub!
- Whats JNDI?
- Lets take another look at the complete client code
- Just when you thought a simple cast would be enough...
- But NO. You have to narrow the object as well!
- OK, Ill bite. Why cant you just do a plain old cast?
- PortableRemoteObject.narrow()
- Writing the Remote home interface for a session bean
- Remote home interface examples for session beans
- But enough about the home... lets talk about the EJB object. The component interface. The thing you REALLY want.
- Imagine what else you might want to do with your EJB object reference...
- Online shopping should not be rushed...
- Thankfully, weve got handles
- isIdentical?
- how to find out if two stubs refer to the same bean
- A beans client interfaces can be local
- Which methods make sense for the local client interfaces?
- Do we need handles with local interfaces?
- Do we need EJBMetaData with local interfaces?
- Do we need isIdentical() with local interfaces?
- Do we need primary key information with local interfaces?
- Do we need remove methods with local interfaces?
- When you think handle, think Remote
- Local clients dont need handles!
- Who needs EJBMetaData when youve got reflection?
- Local clients dont need EJBMetaData!
- Do you need isIdentical() when theres equals()?
- Local clients still need isIdentical()
- Why so many remove methods?
- For Remote clients, two in the home, plus one in the component interface
- How can you use a remove that takes a handle when you dont have a handle?
- Local clients dont have handles, so local homes dont have a remove() that takes a handle.
- Comparing Remote vs. Local interfaces
- Writing the local client interfaces
- You can have both a Remote and local client view for a bean, but you probably wont.
- Exceptions in client interfaces: what the client might get
- Local client code
- What has to change inside the bean class?
- Arguments to Remote vs. local methods
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 4. Session Bean Lifecycle: Being a Session Bean
- Exploring the session bean lifecycle
- You remember how it all works, right?
- Getting and using a stateful session bean
- Theres obviously more to the beans lifecycle than just creation and business methods...
- Container Callbacks, for the special moments in a beans life...
- Container Callbacks come from TWO places
- Implementing the container callbacks
- We have to look at the transitions
- Bean Creation: when an object becomes a bean
- Bean things you can do during creation
- Bean Use: what happens AFTER creation...
- Bean things you can do within business methods
- Passivation: a stateful beans chance at scalability...
- Your job for passivation: make your state passivatable!
- Bean things you can do in ejbActivate() and ejbPassivate()
- Bean Removal: when beans die
- Complaints about bean removal
- Bean things you can do in ejbRemove()
- Implementing the AdviceBean as a stateFUL bean
- Things you can add if the bean is stateFUL
- AdviceStatefulBean code
- AdviceStatefulBean CLIENT code
- Deploying a stateful bean
- Compared to stateful beans, stateless beans have a simple life
- Bean things you can do from stateless bean methods
- Writing a Session Bean: your job as Bean Provider
- SessionContext
- You need it more than it needs you
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 5. Entity Bean Intro: Entities are Persistent
- Whats an entity bean?
- Entities vs. Entity Beans
- Entity beans from the clients point of view
- A very simple Customer entity bean
- An entity beans client view
- Entity bean Remote component interface
- Entity bean Remote component interface
- Entity bean Remote home interface
- How its different from a session bean home interface:
- What does the client really want from an entity bean home?
- Entity bean Remote home interface
- When finders have a dark side...
- Home business methods to the rescue
- Session bean create() vs. entity bean create()
- Session bean remove() vs. entity bean remove()
- Entity/bean/instance death
- Entity bean client view
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 6. Bean/Entity Synchronization: Being an Entity Bean
- The real power of entity beans is synchronization
- The only question is WHO does the work when its time to synchronize
- Container-managed vs. bean-managed persistence
- A brief history on the evolution of CMP 2.0
- The EntityBean interface adds three new container callbacks (including two just for synchronization)
- Even the methods that are the same, dont behave the same
- But wait... theres more! Entity beans have new home container callbacks, too
- Writing a CMP entity bean: make it abstract
- You put three kinds of things in your bean class:
- PLUS... (ok, thats four things...)
- Virtual fields are NOT instance variables!
- Complete code for the CustomerBeanCMP class
- So how DID the client get a reference to the EJB object for #28?
- Bean things you can do during entity construction:
- Object identity: the primary key
- Bean things you can do during entity creation:
- Bean things you can do in home business methods
- Bean things you can do during activation and loading
- Bean things you can do during passivation and storing
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 7. Entity Relationships: When Beans Relate
- Beanifying your movie database
- But we dont want to think in TABLES We want to think in CLASSES
- We need relationships between the Movie bean and the Director bean
- Why should the Director be a bean? Why cant it just be data?
- Relationships and multiplicity
- Multiplicity in Bean Classes
- Multiplicity affects return type!
- Defining virtual fields for persistent data fields and relationship fields
- Defining your abstract persistence schema (virtual fields arent enough)
- The Container needs these TWO things to know you have a CMP field title
- Persistent CMP fields in the DD
- Using relationships in your code
- Defining relationships in your abstract persistence schema (in the DD)
- Relationship definition for the Director-to-Movie relationship
- Director-to-Movie relationship
- Relationships can be one-way (unidirectional)
- The dark side of a unidirectional (one-way) relationship
- Cascade delete can propagate
- Director-to-Movie relationship
- Movie-to-Trailer relationship
- The abstract schema is in the <entity> element and the <ejb-relation> is in the <relationships> element
- MovieBean code with a CMR field
- The MovieBeans home interface
- Mapping from abstract schema to a real database
- Writing your portable queries, for select and finder methods
- EJB-QL for the MovieBean
- Using an optional WHERE clause
- Navigating to another related bean
- Selecting a value rather than the whole bean
- EJB-QL SELECT
- EJB-QL SELECT when to use Object ( )
- What does it MEAN to return an abstract schema type?
- SELECT and FROM are mandatory!
- Identifiers
- The WHERE clause
- The WHERE clause
- The problem with using Collection types
- Collections dont bark()!
- The IN operator lets you say For an individual element IN the Collection...
- The BETWEEN expression
- The other IN
- The IS EMPTY comparison expression
- The IS NOT EMPTY comparison expression
- The LIKE expression
- The NOT LIKE expression
- Relationship assignments
- If the multiplicity of the relationship field is ONE, its a MOVE If the multiplicity is MANY, its a COPY
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 8. Message-Driven Beans: Getting the Message
- Imagine this scenario...
- Too bad these guys arent message-driven beans
- Dont they look a lot like stateless session beans?
- Message-driven bean class
- Writing a message-driven bean: your job as Bean Provider
- Notice something missing from the code?
- We never said what kind of messages were listening for, or where they might be coming from.
- Complete DD for a message-driven bean
- Topics and Queues
- Only ONE bean per pool gets a copy of a topic message
- With a queue, only one bean gets the message. Period.
- MessageDrivenContext
- MessageDrivenContext
- What if something goes wrong?
- Message acknowledgement
- Thats all well and good, but lets go back and see how our earlier scenario ended...
- Think about it.
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 9. EJB Transactions: The Atomic Age
- The ACID test
- Is your transaction safe?
- The ACID test
- Distributed transactions: two-phase commit
- How it works in EJB
- Transactions can propagate through method calls
- Some transactions dont propagate
- The callers transaction might be suspended
- How do I make (or get) a transaction?
- Two ways: code it or declare it
- Transaction-related methods are in two interfaces
- Making a BMT transaction
- Call stack of the checkOut() method
- Things you must NOT do with BMT
- What does it mean to suspend a transaction?
- The UserTransaction interface
- setRollbackOnly()
- The sound of a transactions death
- setRollbackOnly() lives in TWO interfaces
- getRollbackOnly()
- Because lifes too short for a bean to waste time
- BMT beans use getStatus() instead of getRollbackOnly()
- BMT can be a really BAD idea. BMT hurts bean reuse
- Container-managed transactions
- How attributes work
- Know your attributes
- Transaction attributes that require a transaction
- Transaction attributes that do not require a transaction
- These are the methods you MUST mark with an attribute (for a CMT bean)
- Unspecified Transaction Context
- Burn these in
- Marking transactions in the DD
- DD example for CMT
- More DD examples for CMT
- Summary of Bean-managed demarcation
- Entity beans have ejbLoad() to stay synchronized, even if the transaction rolls back.
- Session Synchronization
- because session beans dont have ejbLoad and ejbStore
- SessionSynchronization special moments
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 10. Exceptions in EJB: When beans go bad
- What can go wrong?
- Remember, Java exceptions can be checked or unchecked
- Its all about expectations...
- In EJB, exceptions come in two flavors: application and system
- With an Application Exception, the Container will...
- With a System Exception, the Container will...
- Warning! RemoteException is checked, but not expected!
- A Remote entity bean home interface declares application exceptions and one system exception (RemoteException)
- A local entity bean home interface declares only application exceptions
- RemoteException goes to remote clients EJBException goes to local clients
- Bean Providers responsibilities
- The Containers responsibilities
- The five standard EJB application exceptions
- The five standard application exceptions from the clients point of view
- Common system exceptions
- Common system exceptions
- Scenarios: what do you think happens?
- Scenario Summary
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 11. Security in EJB: Protect Your Secrets
- Imagine youre writing a payroll application...
- What can you do?
- How to do security in EJB
- The Application Assemblers job: access control
- Defining the roles
- The <security-role> element
- Defining the roles... a better way
- The <security-role> element with descriptions
- Defining the method permissions
- The <method-permission> element
- Defining the method permissions
- Three different ways to specify methods
- Method permissions interact with one another as a union!
- Watch out for <unchecked/>
- The Deployers job: mapping actual humans to abstract roles
- Principals and Roles, Users and Groups
- Class-level vs. instance-level security
- When declarative security is not enough, you might need programmatic security to restrict access to a specific instance of a bean.
- Using programmatic security to custom-tailor a method
- The problem with isCallerInRole()...
- the Bean Provider hard codes a role name, but how does he know what roles the App Assembler will use? And what if theres more than one Bean Provider?
- Map declarative security roles to the programmers hard-coded (fake) roles
- Use <run-as> security identity to pretend someone else is calling...
- Security context propagation with <run-as>
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- 12. A Beans Environment: The Joy of Deployment
- A beans special place- java:comp/env
- But its not per bean instance... Its per bean home
- Its simple... if the programmer puts a made-up JNDI name in code, he has to announce that to the deployer in the DD.
- Bean Provider and Application Assembler responsibility for the Deployment Descriptor
- Deployer responsibility for the Deployment Descriptor
- Remembering who does what
- Now lets look at the beans runtime environment
- Which APIs does EJB 2.0 guarantee?
- What MUST be in an ejb-jar?
- Structure of an ejb-jar
- Programming restrictions
- Coffee Cram: Mock Exam
- Coffee Cram: Mock Exam Answers
- A. Final Mock Exam
- Coffee Cram
- Coffee Cram: Master Mock Exam
- Coffee Cram: Master Mock Exam Answers
- This isnt goodbye
- Cover Rough Drafts for the series
- B. Interface summary
- Index
- About the Authors
- Copyright
O'Reilly Media - inne książki
-
JavaScript gives web developers great power to create rich interactive browser experiences, and much of that power is provided by the browser itself. Modern web APIs enable web-based applications to come to life like never before, supporting actions that once required browser plug-ins. Some are s...(186.15 zł najniższa cena z 30 dni)
186.15 zł
219.00 zł(-15%) -
How will software development and operations have to change to meet the sustainability and green needs of the planet? And what does that imply for development organizations? In this eye-opening book, sustainable software advocates Anne Currie, Sarah Hsu, and Sara Bergman provide a unique overview...(160.65 zł najniższa cena z 30 dni)
177.65 zł
209.00 zł(-15%) -
OpenTelemetry is a revolution in observability data. Instead of running multiple uncoordinated pipelines, OpenTelemetry provides users with a single integrated stream of data, providing multiple sources of high-quality telemetry data: tracing, metrics, logs, RUM, eBPF, and more. This practical gu...(143.65 zł najniższa cena z 30 dni)
152.15 zł
179.00 zł(-15%) -
What will you learn from this book?If you're a software developer looking for a quick on-ramp to software architecture, this handy guide is a great place to start. From the authors of Fundamentals of Software Architecture, Head First Software Architecture teaches you how to think architecturally ...(237.15 zł najniższa cena z 30 dni)
254.15 zł
299.00 zł(-15%) -
If you use Linux in your day-to-day work, then Linux Pocket Guide is the perfect on-the-job reference. This thoroughly updated 20th anniversary edition explains more than 200 Linux commands, including new commands for file handling, package management, version control, file format conversions, an...(92.65 zł najniższa cena z 30 dni)
101.15 zł
119.00 zł(-15%) -
Interested in developing embedded systems? Since they don't tolerate inefficiency, these systems require a disciplined approach to programming. This easy-to-read guide helps you cultivate good development practices based on classic software design patterns and new patterns unique to embedded prog...(152.15 zł najniższa cena z 30 dni)
160.65 zł
189.00 zł(-15%) -
Gain the valuable skills and techniques you need to accelerate the delivery of machine learning solutions. With this practical guide, data scientists, ML engineers, and their leaders will learn how to bridge the gap between data science and Lean product delivery in a practical and simple way. Dav...(245.65 zł najniższa cena z 30 dni)
254.15 zł
299.00 zł(-15%) -
This practical book provides a detailed explanation of the zero trust security model. Zero trust is a security paradigm shift that eliminates the concept of traditional perimeter-based security and requires you to "always assume breach" and "never trust but always verify." The updated edition off...(203.15 zł najniższa cena z 30 dni)
211.65 zł
249.00 zł(-15%) -
Decentralized finance (DeFi) is a rapidly growing field in fintech, having grown from $700 million to $100 billion over the past three years alone. But the lack of reliable information makes this area both risky and murky. In this practical book, experienced securities attorney Alexandra Damsker ...(203.15 zł najniższa cena z 30 dni)
211.65 zł
249.00 zł(-15%) -
Whether you're a startup founder trying to disrupt an industry or an entrepreneur trying to provoke change from within, your biggest challenge is creating a product people actually want. Lean Analytics steers you in the right direction.This book shows you how to validate your initial idea, find t...(126.65 zł najniższa cena z 30 dni)
126.65 zł
149.00 zł(-15%)
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka drukowana
Oceny i opinie klientów: Head First EJB. Passing the Sun Certified Business Component Developer Exam Kathy Sierra, Bert Bates (0) Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.