Sunteți pe pagina 1din 1

GUEST EDITORIAL

WRITTEN BY VINCE BONFANTI The rational


alternative
J2EE Without EJBs?
id you use EJBs in your last J2EE project? programmers, developers, and engineers in form-

D Many Java programmers (and their man-


agers and CIOs) would consider this a
strange question. “How can it be a J2EE project if it
ing the equation that J2EE equals EJB. We (yes, I
put myself in this group) naturally want to work
with the latest, hottest, coolest, biggest, sexiest, Version 4.5
doesn’t include EJBs?” they might ask. The answer most important new technologies. We sometimes
is: Sun currently lists 11 J2EE component tech- overspecify and overdesign, and say things like,
Introductory Offer
nologies of which EJB is but one; of equal impor- “Sure, we don’t have a requirement for that now, $2995
tance are servlets, JavaServer Pages (JSP), and but….” And we always have an eye on what will for Teamwork Server
JDBC. In fact, a recently released research report look good on our résumés.
by Gartner, Inc., reveals that most Java projects do Why is this bad? Because it creates waste. In
not use EJBs, but rely exclusively on servlets/JSP. the same study mentioned above, Gartner esti-
(While not specifically mentioned in the Gartner mates that over $1 billion has been wasted since
report, I would guess that a high percentage of
those projects also use JDBC.)
1998 on purchases of EJB servers for projects in
which EJB was not used at all. Instead, those proj-
All 9 UML diagrams
Additional Features:
How is it that EJBs have become synonymous ects were based entirely on servlets/JSP. Gartner
• Performs Java, C++ or CORBA IDL
with J2EE in the minds of so many people? One projects that if this continues, another $2 billion
code round-trip engineering (code
answer is the natural tendency of software ven- will be wasted from 2001 through 2003. generation and reverse engineering);
dors to try to sell you the most expensive product. Interestingly, their numbers include only the cost recognizes JavaDoc comments. This
Is a commissioned salesperson going to sell you of the application server purchase; they don’t feature allows you to write code, reverse
an inexpensive servlet/JSP solution if he or she include the wasted engineering man-hours due to engineer, make changes to the model
can convince you to buy an “enterprise” applica- the added complexity of working with an “enter- and re-generate the code without losing
any implementation specific information.
tion server (with EJB!) for 10 times as much? The prise” application server, despite the fact that only
tendencies of human nature should make the limited use is made of the full functionality of • Supports UML 1.3 notation.
answer to that question fairly obvious. these servers. • Saves diagrams as bitmap PNG/JPG and
Sun has contributed to the perception that What does this mean to you and what should you scalable WMF/SVG/EPS/DXF formats.
J2EE requires EJBs through the J2EE licensing pro- do? Wasting $1 billion in the go-go dot-com and • Provides XML interoperability — native
gram and by not offering a separate certification high-flying stock market era may not have been such model files are stored in XMI format.
program for servlets/JSP. The only way for a ven- a terrible thing. But • Integrated with Forte for Java (FFJ) IDE
dor to achieve Sun certification for a servlet/JSP wasting another $2 versions 1.0 and 2.0.
implementation is by be- billion in the cur- Standard Edition: . . . . . . . . $249
coming a J2EE licensee. rent economic
Professional Edition: . . . . $499
The costs of becoming a climate is fool-
J2EE licensee are struc- ishness. Make
tured toward the “enter- sure you under- Visit us at Java One
prise” vendors and are stand your proj-
prohibitive for small- ect requirements.
er companies. Therefore, Yes, there are good Floating License . . $100 additional
you’ll find the role of J2EE and valid uses for EJBs, but Upgrade for a $69 annual fee!
licensees dominated by there are many more projects
EJB server vendors. Con- for which servlets/JSP (and
trast this with JDBC (a JDBC) are more than suffi-
J2EE technology), which cient. Make sure you have a
I C

has a separate certifica- simple, inexpensive, easy-to-


tion program with a much administer servlet/JSP appli-
G
more reasonable cost cation server in your technol- M ▲ ✦ ✦

structure and a higher par- ogy arsenal. And the next time
No Magic...
ticipation rate by smaller someone asks, “Is your project Just Technology That Works
vendors. based on J2EE?” smile as you
Finally, we must not reply, “Yes, but we’re not using Download fully functional demo at:
overlook the role of Java EJBs.” www.magicdraw.com
vince@newatlanta.com contact us at
AUTHOR BIO contacts@magicdraw.com
Vince Bonfanti is a cofounder and president of New Atlanta Communications. 100% Pure Java Application
He has been a member of the Servlet and JSP Expert Groups since 1997.
NOVEMBER 2001 7

S-ar putea să vă placă și