Welcome!

Machine Learning Authors: Elizabeth White, Jnan Dash, William Schmarzo, Pat Romanski, Liz McMillan

Related Topics: Java IoT

Java IoT: Article

An Introduction to EJBs With Lots of Code

An Introduction to EJBs With Lots of Code

This was actually the first book on Enterprise JavaBeans that came into the market. Enterprise JavaBeans was released in June and made its debut at JavaOne this year. This is a pretty good book for developers who like to see a lot of code. The examples in the book are used to develop a fairly complex application and the code isn't meant for novices. Tom Valesky presents many examples. I like the fact that the book takes an example and builds its complexity in successive chapters. There's good coverage of distributed architectures and transactions. The author has also dedicated a chapter to provide some excellent guidelines for building distributed systems. For readers just starting out in distributed applications, the author provides the appropriate background. This book isn't for everyone, though. Readers already familiar with distributed systems and transactions may not want to go through the tutorial style followed in the book and may find the detailed code discussions irritating.

The book is written in an easy, informal, tutorial style. It's well organized and easy to follow. In some places the discussion becomes pretty terse, so you may want to take a few breaks when reading. My suggestion to readers who go out and purchase this book: get the software for running the code, install it and then read the book. Test out the examples and read the book in sequence.

Chapters 1 and 2 focus on introducing the reader to the concepts that form the basis of this book. The first chapter provides an excellent discussion on the evolution of computer architectures from the single-tier mainframe model to the n-tier distributed architecture. In this discussion the author also covers the basics of distributed transaction processing. The chapter ends by showing how Enterprise JavaBeans fit into the big picture. A brief introduction to the EJB spec is provided. Chapter 2 discusses the Enterprise JavaBeans architecture.

The concepts are explained well, with the right level of detail. It makes a good stand-alone chapter for reading without requiring the reader to read the rest of the book. The author introduces the appropriate number of class methods to give an overview without confusing the reader. The code is developed using WebLogic and EJBHome software packages.

Chapters 3-6 focus on the various types of EJB development. These chapters follow a pattern: an introduction to the concept, followed by design choice for the example, then a detailed discussion of the example as it is built in parts. It concludes with an analysis of what goes on behind the scenes. As mentioned earlier, a tutorial style is followed, with Chapter 3 focusing primarily on creating a simple client for a "hello, world" example. The design, implementation and deployment of software are explained in detailed, concise steps. The last section of this chapter summarizes what really went on behind the scenes as the reader developed this example. This is again typical of the author's tutorial style. Chapter 4 provides a good overview of session beans. The example in this chapter successfully brings out the main features and functionality offered by session beans. It also discusses transactions vis-ˆ-vis EJBs. An online shopping example is developed using stateful session beans, followed by an example using stateless session beans. The next chapter (Chapter 5) discusses entity beans and persistence management in EJBs. The examples offered in this chapter reuse code from the previous chapter to illustrate design with container-managed persistence as well as bean-managed persistence.

Chapter 6 deals with the topic of developing EJB clients. The author purposely deferred discussions on writing the client till this chapter. Instead of implementing a complicated client, he gives examples of "small" single-purpose clients that bring out different points he's trying to make.

This makes the code and the discussion very easy to follow. The example gets a little long, but is appropriate at this stage. Chapter 7 goes into some depth about a few necessary but pretty boring parts of the EJB spec: deployment. The author does a good job of providing the requisite information for the reader to get a handle on this topic. The chapter ends with a discussion on deployment issues that developers may face such as caching and persistence. The author also provides a set of guidelines for developers to follow when dealing with EJB containers.

Chapter 8 is a unique chapter that shows the author's grasp of distributed systems. It encapsulates a lot of hard-won technical experience, which is useful to the developer of distributed systems. This is a rare and valuable commodity. Guidelines on transaction design, business logic design, databases, testing and application design are provided in concise discussions.

Chapter 9 sums up all the concepts in the book by walking the reader through a complex example. The "time tracker" example is well picked. It uses the major features from the EJB spec in a real-world system. It demonstrates the use of both session and entity beans. There is also a session bean (TimeTrackerBean) that in turn uses an entity bean (EmployeeBean). The design is well explained. This chapter is useful since it's hard to find an example that illustrates the different aspects of EJBs. Most tutorial classes fail to provide such examples. This chapter alone makes the book worth buying. Chapter 10 briefly talks about existing EJB vendors and future directions for EJB. Of course, you can compare the predictions with what has really happened since the book is a few months old. An Appendix carries complete code listings. These are also available in the accompanying CD.

In conclusion, this is a good book for programmers and developers who are trying to get an introduction to EJBs and like playing around with plenty of code. Enterprise JavaBeans: Developing Component-Based Distributed Applications by Thomas C. Valesky 352 pages, Addison Wesley.

More Stories By Ajit Sagar

Ajit Sagar is Associate VP, Digital Transformation Practice at Infosys Limited. A seasoned IT executive with 20+ years experience across various facts of the industry including consulting, business development, architecture and design he is architecture consulting and delivery lead for Infosys's Digital Transformation practice. He was also the Founding Editor of XML Journal and Chief Editor of Java Developer's Journal.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


@CloudExpo Stories
"MobiDev is a software development company and we do complex, custom software development for everybody from entrepreneurs to large enterprises," explained Alan Winters, U.S. Head of Business Development at MobiDev, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Large industrial manufacturing organizations are adopting the agile principles of cloud software companies. The industrial manufacturing development process has not scaled over time. Now that design CAD teams are geographically distributed, centralizing their work is key. With large multi-gigabyte projects, outdated tools have stifled industrial team agility, time-to-market milestones, and impacted P&L stakeholders.
"ZeroStack is a startup in Silicon Valley. We're solving a very interesting problem around bringing public cloud convenience with private cloud control for enterprises and mid-size companies," explained Kamesh Pemmaraju, VP of Product Management at ZeroStack, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Enterprises are adopting Kubernetes to accelerate the development and the delivery of cloud-native applications. However, sharing a Kubernetes cluster between members of the same team can be challenging. And, sharing clusters across multiple teams is even harder. Kubernetes offers several constructs to help implement segmentation and isolation. However, these primitives can be complex to understand and apply. As a result, it’s becoming common for enterprises to end up with several clusters. Thi...
"Space Monkey by Vivent Smart Home is a product that is a distributed cloud-based edge storage network. Vivent Smart Home, our parent company, is a smart home provider that places a lot of hard drives across homes in North America," explained JT Olds, Director of Engineering, and Brandon Crowfeather, Product Manager, at Vivint Smart Home, in this SYS-CON.tv interview at @ThingsExpo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
In his session at 21st Cloud Expo, Carl J. Levine, Senior Technical Evangelist for NS1, will objectively discuss how DNS is used to solve Digital Transformation challenges in large SaaS applications, CDNs, AdTech platforms, and other demanding use cases. Carl J. Levine is the Senior Technical Evangelist for NS1. A veteran of the Internet Infrastructure space, he has over a decade of experience with startups, networking protocols and Internet infrastructure, combined with the unique ability to it...
"Infoblox does DNS, DHCP and IP address management for not only enterprise networks but cloud networks as well. Customers are looking for a single platform that can extend not only in their private enterprise environment but private cloud, public cloud, tracking all the IP space and everything that is going on in that environment," explained Steve Salo, Principal Systems Engineer at Infoblox, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventio...
"Codigm is based on the cloud and we are here to explore marketing opportunities in America. Our mission is to make an ecosystem of the SW environment that anyone can understand, learn, teach, and develop the SW on the cloud," explained Sung Tae Ryu, CEO of Codigm, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Gemini is Yahoo’s native and search advertising platform. To ensure the quality of a complex distributed system that spans multiple products and components and across various desktop websites and mobile app and web experiences – both Yahoo owned and operated and third-party syndication (supply), with complex interaction with more than a billion users and numerous advertisers globally (demand) – it becomes imperative to automate a set of end-to-end tests 24x7 to detect bugs and regression. In th...
The question before companies today is not whether to become intelligent, it’s a question of how and how fast. The key is to adopt and deploy an intelligent application strategy while simultaneously preparing to scale that intelligence. In her session at 21st Cloud Expo, Sangeeta Chakraborty, Chief Customer Officer at Ayasdi, provided a tactical framework to become a truly intelligent enterprise, including how to identify the right applications for AI, how to build a Center of Excellence to oper...
"IBM is really all in on blockchain. We take a look at sort of the history of blockchain ledger technologies. It started out with bitcoin, Ethereum, and IBM evaluated these particular blockchain technologies and found they were anonymous and permissionless and that many companies were looking for permissioned blockchain," stated René Bostic, Technical VP of the IBM Cloud Unit in North America, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Conventi...
High-velocity engineering teams are applying not only continuous delivery processes, but also lessons in experimentation from established leaders like Amazon, Netflix, and Facebook. These companies have made experimentation a foundation for their release processes, allowing them to try out major feature releases and redesigns within smaller groups before making them broadly available. In his session at 21st Cloud Expo, Brian Lucas, Senior Staff Engineer at Optimizely, discussed how by using ne...
"Cloud Academy is an enterprise training platform for the cloud, specifically public clouds. We offer guided learning experiences on AWS, Azure, Google Cloud and all the surrounding methodologies and technologies that you need to know and your teams need to know in order to leverage the full benefits of the cloud," explained Alex Brower, VP of Marketing at Cloud Academy, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clar...
In his session at 21st Cloud Expo, James Henry, Co-CEO/CTO of Calgary Scientific Inc., introduced you to the challenges, solutions and benefits of training AI systems to solve visual problems with an emphasis on improving AIs with continuous training in the field. He explored applications in several industries and discussed technologies that allow the deployment of advanced visualization solutions to the cloud.
Agile has finally jumped the technology shark, expanding outside the software world. Enterprises are now increasingly adopting Agile practices across their organizations in order to successfully navigate the disruptive waters that threaten to drown them. In our quest for establishing change as a core competency in our organizations, this business-centric notion of Agile is an essential component of Agile Digital Transformation. In the years since the publication of the Agile Manifesto, the conn...
Vulnerability management is vital for large companies that need to secure containers across thousands of hosts, but many struggle to understand how exposed they are when they discover a new high security vulnerability. In his session at 21st Cloud Expo, John Morello, CTO of Twistlock, addressed this pressing concern by introducing the concept of the “Vulnerability Risk Tree API,” which brings all the data together in a simple REST endpoint, allowing companies to easily grasp the severity of the ...
While some developers care passionately about how data centers and clouds are architected, for most, it is only the end result that matters. To the majority of companies, technology exists to solve a business problem, and only delivers value when it is solving that problem. 2017 brings the mainstream adoption of containers for production workloads. In his session at 21st Cloud Expo, Ben McCormack, VP of Operations at Evernote, discussed how data centers of the future will be managed, how the p...
"NetApp is known as a data management leader but we do a lot more than just data management on-prem with the data centers of our customers. We're also big in the hybrid cloud," explained Wes Talbert, Principal Architect at NetApp, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.
Coca-Cola’s Google powered digital signage system lays the groundwork for a more valuable connection between Coke and its customers. Digital signs pair software with high-resolution displays so that a message can be changed instantly based on what the operator wants to communicate or sell. In their Day 3 Keynote at 21st Cloud Expo, Greg Chambers, Global Group Director, Digital Innovation, Coca-Cola, and Vidya Nagarajan, a Senior Product Manager at Google, discussed how from store operations and ...
"We're focused on how to get some of the attributes that you would expect from an Amazon, Azure, Google, and doing that on-prem. We believe today that you can actually get those types of things done with certain architectures available in the market today," explained Steve Conner, VP of Sales at Cloudistics, in this SYS-CON.tv interview at 21st Cloud Expo, held Oct 31 – Nov 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA.