BEA WebLogic Server Bible 132
BEA Weblogic Server Bible | |
author | Joe Zuffoletto et al |
pages | 1000 |
publisher | Hungry Minds |
rating | 5 stars |
reviewer | Rick Hightower |
ISBN | 0764548549 |
summary | The WebLogic Bible reference to have on hand. |
There are plenty of examples of setting up your WebLogic configuration, with explanations of what the different parameters are and when to use them for Servlets, JSP, EJB, JMS, and more; just what you need when you are having those configuration problems and a great reference to have around when you get stuck. If you like going from concept to implementation, then this is the book for you.
Unlike some other WebLogic centric books, the Bible's coverage of EJB CMP/CMR was good. Also, the coverage of performance monitoring was really well done. And, the ideas for optimization and the thought process behind it was also really well done. These are just a few examples of a really well written technical manual--the missing WebLogic Manual.
A couple areas of concern (some just nits):
1) A few times the examples were WebLogic centric when they could have been written them in a cross platform manner (wrt J2EE ). (Note: A prerequisite of this book is a working knowledge of J2EE.)
2) The EJB examples hard coded the JNDI parameters instead of using the jndi.properties file in the classpath, which is the preferred approach for cross platform J2EE development.
Granted, at times you have to write things WebLogic centric to utilize WebLogic-specific extensions to J2EE, but the book also did this at times when it was not really necessary to do so. A J2EE veteran will catch the difference, and a J2EE novice will not. Bottom line: you should have a working knowledge of J2EE before reading this book and there will not be any problem.
Another problem with the book is that it covers WebLogic 6.1, while WebLogic 7.0 is already out. However, the material is still applicable to WebLogic 7.0. The book was released this year as was WebLogic 7.0. This in an unavoidable problem with books focused on such a target market. By the time they update the 1000-page book to WebLogic 7.0, WebLogic 8.0 will probably be out.
Also, in the next edition they should cover the Weblogic specific Ant tags in addition to the console and other means of deploying applications. Ant is the de facto method for building, deploying and testing J2EE applications, and a book like this should reflect this reality.
If you are new to WebLogic, I suggest that you get this book. If you have been working with WebLogic since before the EJB .8 spec., I suggest that you get this book. This book is not a J2EE tutorial, but it covers the basics and focuses on WebLogic specific areas of concern.
Consider this book recommended.
Links of note:
- WebLogic Bible website
- Books on WebLogic
- EJB 2.0 Tutorial that deploys examples to WebLogic
- Book on building, deploying and testing J2EE components.
You can purchase WebLogic Bible from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Does it cover known "features"? (Score:3, Informative)
Like if you have a large enterprise application running (which is typical if you are running WebLogic), that hotdeploying more than twice tends to cause trouble.
And that its a wise idea to delete the temp directories between restarts, because weblogic likes to keep stuff in memory, regardless if the files/apps still exist?
Stuff like that cause many newbie Weblogic developers hours of confusion. I'd like so see it documented in some weblogic texts.
Re:Does it cover known "features"? (Score:1)
Vendor lock-in (Score:5, Insightful)
There is a plethora of Open Source tools out there now that help you avoid vendor lock-in by providing a common interface to vendor specific settings (XDoclet) or actually give you a full fledged app server to begin with (JBoss). A book covering those tools would have a much more lasting value. Not to mention a book on good enterprise application design...
Re:Vendor lock-in (Score:2)
The thing is though even with the wide array of things covered by the J2EE standard, there are so many vendor-specific tools and vendor-specific deployment descriptors and so on and so forth - there's always a lot to learn and minor changes (a few lines of code and several XML configuration files here and there) to get things up and running on a new vendor's J2EE app server.
My personal favorite is the way EVERY goddamned J2EE app server has a slightly different understanding of JNDI naming conventions: is it java:comp/env or just
Re:Vendor lock-in (Score:3, Insightful)
Re:Vendor lock-in (Score:4, Informative)
You can find JBoss related documentation here [jboss.org], both for free and for pay docs.
Re:Vendor lock-in (Score:4, Interesting)
Don't make me laugh, my lips are chapped.
But seriously, yes that is the point. But each vendor has it's own little deployment nits. In my own experience, an app will cross deploy between BEA and JBoss with little/no effort. But cross deploying between BEA and iPlanet or WebSphere is a totally different (and far more frustrating) story.
or actually give you a full fledged app server to begin with (JBoss)
This is true, but BEA is the largest player in the app server market and many large organizations that currently are betting big on J2EE have a hard time basing their business on free software. You need someone on the hook when things go wrong. You need guarantees.
Re:Vendor lock-in (Score:4, Interesting)
Have you ever called BEA weblogic support? You practically have to tell them how to solve the problem. I have never really had anything successfully resolved without coming up with the solution myself. Not to mention they make you buy a support contract for every purchase of Weblogic. That means if you have a 4 CPU machine, you need to buy 4 1 year contracts of support that run concurrently. How crazy is that? They are a required purchase, there's no getting out of it.
One of the many reasons we dropped them like a bad habit.
Re:Vendor lock-in (Score:2)
I agree with you, but Management(r)(tm) eats this stuff up with a spoon as "cost of doing business."
Either way it doesn't matter to me, I just want a fast java app server that always works and doesn't provide any surprises. If JBoss suits your needs, use it and keep your money in your pocket. If the suits want name brand parts, show them the price tag and hold out your hand.
Or better yet, show them the two price tags (BEA vs. JBoss) and ask them to pick one.
Re:Vendor lock-in (Score:1, Informative)
Re:Vendor lock-in (Score:2)
No, eDocs [bea.com] has answered all my questions. :-)
I wish more companies would take the cost of putting all their docs online, like BEA and Oracle do...
Re:Vendor lock-in (Score:1)
Re:Vendor lock-in (Score:2)
My initial point was that we need books that educate people on how they can avoid vendor lock-in so their apps deploy with minimal effort. There is a lot of (mainly Open Source) tools out there that help you get there but there isn't a hell of a lot in terms of a guide of how to pull it all together but I think with stuff like XDoclet and Ant most pieces of the puzzle are already on the table. Now there must be more effort to educate companies and their development teams that they can write J2EE apps that are vendor independent.
Re:Vendor lock-in (Score:2)
Re:Vendor lock-in (Score:2)
Now that's shelling out the big bucks. I don't know many orgs that could afford lic's for 2 different app servers, no matter how many of each there are deployed.
Either that or they're downloading the demo versions and reinstalling each month. =^)
Re:Vendor lock-in (Score:2)
BEA's weblogic comes with a plethora of tools that few other app-servers do. You won't need a book on how to use it, but maybe how to get the most out of it, since it costs 1000's of $/CPU.
Then there is websphere. It's a documentation magnet. If you looked in a bookstore, you'ld think they were #1, but few new people are going there. I haven't met a person that said setting up web-sphere for their project was any less than a weekend project.
I would love a GOOD book on J2EE design. I'm not much of a subscriber to patterns. (They all seem to be obvious solutions for a given problem. Why not refer to them the old way, by the problem they solve.) I've read a few books, but they read like instruction manuals, cook books, and how-to's. Most of the chapters are titled "Setting up ____", "___ and J2EE", or "How to ____ with J2EE". I'm looking more for a point by point coverage with example code of what each class/interface/file in J2EE does (a technical manual) with best use cases that aren't obvious (session facade, etc.).
Re:Vendor lock-in (Score:1)
http://beust.com/cedric/ejbgen
Re:Vendor lock-in (Score:2)
Re:Vendor lock-in (Score:1)
Java Tools for Extreme Programming [rickhightower.com] (Covers Ant, JUnit, J2EE development issues AND was number one under Software Development on Amazon for three months this year).
and
Java Development with Ant [amazon.com] (Cover XDoclet)
come to mind....
If your interested in XDoclet (as you stated) check out this FREE multipart tutorial series that covers XDoclet, Ant doing EJB Development. EJB with XDoclet Step by Step [eblox.com] based on earlier tutorial that has WebLogic and JBoss examples with XDoclet http://www.rickhightower.com/ejbcmpcmrtut.html. Also, I wrote two chapters in the upcoming book that covers Struts, XDoclet and Ant on Tomcat
Mastering Tomcat Development from Wiley [amazon.com]. I wrote the chapter on Struts and the chapter on Ant/XDoclet for the Tomcat book. The Struts chapter rewrites a model 1 JSP based application to be a model 2 based Struts application (it uses XDoclet). The Ant/XDoclet Chapter has examples of using XDoclet for Custom Tags, Struts, Servlets, EJBs and more.
The books you are asking for already exist.... These are but a few examples. I don't think having books on these topics excludes having a book on weblogic. The world is big enough for both.
Re:Vendor lock-in (Score:1)
Case in point: I developed some code that was originally deployed in Tomcat. When I moved the code to BEA, it failed to run (or even compile). It turns out that I used a data type (String[], an array of strings) in a JavaServer page that was not one of the data types that JSP containers are required to support. But, the spec doesn't say that you must reject any other data types -- so Tomcat is perfectly right in allowing this construct, and BEA is perfectly right in rejecting it. So there is a grey area that programmers must be aware of if they want to maximize portability.
Sun has created an Application Verification Kit (AVK) that should help identify these types of issues -- think of it as lint for J2EE objects.
Also, if you're looking for a book covering developing for J2EE using open source tools (Ant, Tomcat, Struts, etc.), I highly recommend J2EE and JAX: Developing Web Applications and Web Services [amazon.com]. It is, without qualification, the best book I've ever written on this subject :-). More info is also available at http://www.theYawns.com
Re:Vendor lock-in (Score:1)
Online tutorials and such? (Score:1)
This is a karma whore/troll (Score:1, Insightful)
PHP and MySQL has nothing to do with Java. Using open source buzzwords to get karma
I know JBuilder comes with weblogic (or was it another EJB-compatible server?),
Comes with Borlands home-built app server.
anyways, configuring tomcat and all that still makes the platform a little hard for starters like me.
Tomcat isn't a full-fledged J2EE server (tomcat only handles servlets and jsps. NOT EJBs).
I miss compiled html files format help guides
Most app servers (Weblogic included) comes with these.
Ummm FYI, tim (Score:1, Informative)
It should be noted that WebLogic is a J2EE app server, so if you are hosting Java/J2EE applications, you should read on.
Small niche ? (Score:4, Insightful)
$819.8m revenue in a year is not "niche" in my book. Slashdot editors yet again demonstrate their inability to understand that the corporate enterprise market is a billion dollar industry which contains lots of professionals for whom "cool scripts" "Perl" "PHP" and "MySQL" exist only to cause issues.
The Application Server market is over 2 billion dollars a year.
Niche my arse
Re:Small niche ? (Score:2)
Well, I guess your arse may be a niche
Re:Small niche ? (Score:1)
Re:Small niche ? (Score:1, Offtopic)
Well i certainly do hope your arse is a 'small Niche'.
Re:Small niche ? (Score:2, Interesting)
-s
Re:Small niche ? (Score:1)
what gives? (Score:1, Funny)
The name of the book is BEA WebLogic Server Bible, and the reviewer is complaining that it's too specific to BEA? Eh?
Re:what gives? (Score:1)
The point is that code examples should employ best practices so that people who are learning new technolgies learn to use the correctly from the outset.
Re:what gives? (Score:1)
Re:what gives? (Score:1)
weblogic... so much potential (Score:2, Insightful)
If they have made their system like that, then I would be happy to use it in the future (instead of custom coding under a tight schedule)
Re:weblogic... so much potential (Score:1)
Re:weblogic... so much potential (Score:1)
I read your post, and I laughed so hard my eyes teared.
People have opinions whether there informed or not. Thank you... you made my day.
I love Java... (Score:5, Informative)
Frankly, with JBoss 3.0 out, if you do need EJB support in an application, that's a great place to start - 3.0 supports clustering using the excellent JavaGroups system, and this was the MAJOR weakness of 2.x vs. Weblogic.
And as somebody with more J2EE experience than I would care to admin, you might really want to think about whether spraying EJBs all over an application is the best architectural solution for the problem at hand. Not every "enterprise class web application" needs EJBs. Can you and will you use CMP? If so, then it's worth it, but REALLY make sure CMP will work for your app (by the way, strong CMP capabilities are one area where Weblogic may still shine more strongly than JBoss). Do you need and will you use declarative transactional boundaries? These can certainly come in handy, though you can take advantage of them with session beans, no need to use bulky entity beans if you don't need them.
By the way - one important thing I should mention - as of 6.1 JBoss was still 2-3x faster than Weblogic 6.1 for all of our applications at my company. YMMV though, depending on the nature of what you are doing, and these weren't formal benchmarks. 7.0 may have finally solved their performance issues - I don't know though, and with my past BEA experiences, I don't think I ever want to know.
So you think WebLogic's bad, huh? (Score:5, Insightful)
WebSphere 5 shipped? (Score:2)
Does IBM not plan to support CMP 2.0 in WebSphere 5?
Re:WebSphere 5 shipped? (Score:2)
Re:WebLogic and WebSphere? OAS! (Score:1)
Bad compliance both to CORBA and to EJB. Slow. Buggy. Expensive. Bad support.
Re:I love Java... (Score:5, Informative)
And you comments on EJB are pefect. Our project invested heavily into Entity Beans and we paid a nasty price. We ended up having to rewrite large sections to do their own database work ( under the transaction of a Session Bean ) instead of using Entity beans. They are DAMN slow. And by looking at the Entity design, it seems to be built in to be DAMN slow. We have pretty much gone with just Session beans to do transactions for us and do everything with the database ourselves. That way tou can do a million inserts or updates in a second or 2 instead of hours using techniques not available with Entity Beans.
Re:I love Java... (Score:2)
Can you provide proof of this? Or is this conjecture?
Re:I love Java... (Score:1)
Re:I love Java... (Score:2)
Between the startup times and the constant CR patches it's madness. I will say that it's nice to be able to call and talk to a person instead of just email support, though. I pity the fools on Metalink.
Re:I love Java... (Score:1, Redundant)
a-fucking-men!
Weblogic 6.1 better than iPlanet at least... (Score:2)
Weblogic is WAY easier to use than iPlanet, and also a lot more stable...
That said, we have had some Weblogic issues. I'm trying to convince the company to think about running JBoss in some areas, but so far they are very reluctant to move away from Weblogic. TCO, stability, ease of use, all arguments fall on deaf ears who are fearful of using an "open source" solution.
The really funny thing is they bring up again and again - "If it has a problem who will fix it?", when we've had one ongoing crashing problem (where the VM coredumps) with Weblogic that's lasted weeks!! Good thing we have an app server with a dedicated team of people to "fix" things. (Never mind that JBoss also has such a team, only a more responsive one!! Or that I could fix something myself if I have the source!!!).
dedicated team of people (Score:2)
Re:dedicated team of people (Score:2)
If I ever get my own company off the ground, I know which solution I'm sticking with...
---> Kendall
Re:I love Java... but not EJB's (Score:1)
The number one rule was, if something doesn't work, re-start weblogic. It become our biggest in-joke. You have no idea how many times somebody goes "there's a problem with.." and someone shouted back "./stopWebLogic.sh;
$1000 a day (Score:2)
I hate Java (Score:1)
I hate to get tough-coupled "spagetti" application from other developers and apply GoF patterns hoping it help and understanding it doesn't. By the way, using GoF from the beginnig doesn't help either - the language is neither lazy evaluated, nor dynamically typed. It's even not enough strong typed.
I hate to know that "Any sufficiently complicated C or Fortran program contains an ad-hoc, informally-specified bug-ridden slow implementation of half of Common Lisp." (Greenspun's Tenth Rule of Programming) and that it's perfectly applied to Java.
I hate to feel myself like a sheep blindy following Sun Microsystems.
And I hate the job market stupidly demanding mostly only Java programmers.
I probably came too early and I should wait another 10 years when the computer market will recognize that GOTO was only a part of the problem. ANY distructive coding is not a programming.
Re:Can someone please explain... (Score:2)
The parts that I think are useful of J2EE:
I can't think of much else off the top of my head, and if none of this sounds useful to you, then you've probably never worked in the awful realm of enterprise software development, and you probably have no need for an application server.
Should be a good read. (Score:2)
We inherited the platform from another development team that was married to MS, and hence put WebLogic on all Win2k servers. On this platform, I've found WebLogic to be stable--but quirky. Getting things tweaked to your liking can be a little strenuous.
We're toying with the Linux version of Weblogic, the biggest plus being that it forces our developers to write code that drops to log files (right now they insist on using Weblogic running in DOS boxes interactively on the desktop(!!!) so they can monitor it realtime).
Early testing is going well, hopefully having a book like this will make the transition a bit easier. I like BEA for supporting the Linux platform, though their support for problems is a little touch 'n go.
Re:Should be a good read. (Score:2)
I call the DOS boxes.
Fine, fine, "Command Prompt" Windows. Same diff.
Re:Should be a good read. (Score:2)
Re:Should be a good read. (Score:1)
I'd recommend going to Log4J for all of your output. Makes it quite easy to dump everything to a nice log file, zip it each night and take it off the production server. If the only reason you're moving to linux is so you can use better logging capabilities, it sounds like you're wasting your time. Having said that, I used linux (and hpux) and weblogic, and ended up starting/stopping it from the command line. Very useful for examining startup/shutdown error messages real-time.
Thoughts on Weblogic (Score:2, Insightful)
Pbur
Niche? (Score:2)
No. But you will find books on servlets, EJBs, JNDI, JCA, JDBC etc., all of which are of use in app servers. App servers (rightly or wrongly) are the big thing in large enterprises right now, and by no means are they any sort of niche.
Borders plug?! (Score:1)
Re:Borders plug?! (Score:1)
Weblogic & JBoss (Score:5, Interesting)
I'm actually in the middle of load/performance testing WebLogic and JBoss right now, and I'm suddenly realizing how pointless this is.
Say our server hardware costs $6k. To use that box with WebLogic, it costs $40k total (hardware + 2 licenses because it's dual-CPU). To use that box with JBoss, it costs $6k (just hardware).
It doesn't matter what the performance is. JBoss would have to perform incredibly poorly for it to be worth using WebLogic instead, because I can deploy 6 JBoss servers plus load balancing hardware for the cost of a single WebLogic server. So where WebLogic does 400 ops/sec for a particular load configuration, JBoss would have to do about 65 ops/sec to "break even". As it is, JBoss does about 300 ops/sec for the same load config.
Now if I can just convince the developers that no, they do not *have* to have WebLogic...
-Todd
Re:Weblogic & JBoss (Score:3, Interesting)
Re:Weblogic & JBoss (Score:2)
Weblogic is a great App server, but the costs are ridiculous. Oracle is a great database, but ditto on the price.
PostgresQL or MySQL, and Resin hopefully in 2 years.
Re:Weblogic & JBoss (Score:1)
You are likely correct about JBoss being a much cheaper solution, just make sure you factor in all the costs.
Re:Weblogic & JBoss (Score:1)
Re:Weblogic & JBoss (Score:2)
Cause you don't want to piss off the vendor of the pricey product. If you piss them off by publicizing how much a free version does, you'll not get the same level of support/helpfulness from them. They'll do the bare minimum to keep you, as opposed to going the extra mile to help out when you need it.
Re:Weblogic & JBoss (Score:2)
The main thing you have to deal with in going from WebLogic to JBoss is that WL supports a number of intermediate and non-strict versions of EJB, and JBoss is a pretty strict implementation of the final versions. Also, there are a number of mistakes that JBoss doesn't give useful errors about, which makes switching annoying.
The issue is not hardware or software costs (Score:2)
If you are working for free and have the time to look into the JBoss code, it might be ok. But for everyone who loves great documentation and standards compliance, there is no need to look back from WebLogic. I need SOAP access to my system, and there is no documentation whatsoever from JBOss. Guess if there is an entire book devoted to this in WebLogic?
When JBoss gets proper documentation, I'll be the first one to make the switch.
Re:The issue is not hardware or software costs (Score:1)
I am curious myself because I am considering using JBoss.
Re:The issue is not hardware or software costs (Score:1)
I've had to rely heavily on trial-and-error and the forums to get everything working.
Re:The issue is not hardware or software costs (Score:2)
Is this the documentation that you say, sucks?
http://www.jboss.org/docs/
I found it far better than what we got with Weblogic!
Re:The issue is not hardware or software costs (Score:1)
zope (Score:1)
JBoss others have mentioned is available if you are really stuck on Java language.
Re:zope (Score:2)
Reviewer is a Python Fan.... Re:zope (Score:1)
My Java Python Book [amazon.com]
Why app servers are such a pain (Score:4, Interesting)
First, how are you supposed to do development in an environment where it takes almost a minute to restart the application and find out if your latest change is working properly? That type of coding harks back to the dark ages of coding when you had to wait minutes before the compile and run was finished. There are kludges for creating "simulated" app server environments that give you faster development times, but that can only take you so far.
Secondly, it is practically impossible to create a distributable self-installing application that installs with no fuss into an app server environment. I am amazed that people are willing to put up with the configuration headaches for delivering app server solutions that they would never accept for their desktop applications.
Thirdly, there is a constant confusion surrounding issues like "session" and "non-session" beans, maintaining "transaction compliance", and whole hosts of finagle issues. Many of these issues have a drastic impact on performance depending on your choice, and usually the choices that give sufficient flexibility and acceptable performance are only available with completely proprietary vendor specific solutions.
As far as I can tell, the original vision of having easily developed, easily deployable, and high performing server-side application solutions has been lost and has been replaced by an environment in which it is difficult to create code, painful to deploy solutions, and a real headache to tune for speed.
This is such an unfortunate fate for EJBs. In the original vision, EJBs were to be the server side equivalent of Microsoft's ActiveX controls for the desktop. There are still some good ideas buried in the EJB specs, but the heavy weight app servers have buried these little nuggets inside massive overachieving bloat ware.
Re:Why app servers are such a pain (Score:1)
You switch to JBoss, that's how :)
(yes I noticed you said it's not an option for you, and you have my sympathies)
You switch to JBoss (Score:2)
It's really a rather good way to go. Jboss for development will keep your cycle fast and keep your code very close to the specs (as it should be); then if you want to deploy to something else, it will be relatively painless.
Re:Why app servers are such a pain (Score:1)
Compare it to 5 seconds for Apache/CGI, 10 seconds for Zope, and 45 seconds for stand-alone Tomcat :)
So, the general rule for Java development (and EJB especially) - don't do mistakes if you don't have time to debug :))
Re:Why app servers are such a pain (Score:1)
Sorry, I didn't want to get into a j2ee vs
Weblogic centric--Really? (Score:1)
No kidding. I mean this is a book on Weblogic after all.
Re:Weblogic centric--Really? (Score:1)
Re:Weblogic centric--Really? (Score:1)
I have it.
My point is, you said two different things. First impression is where you didn't like the face they use WLS features, see the above. The second was that you did like the WLS specific features.
There a a few very good J2EE books. As far as I know this is the only good WLS specific book.
Re:Weblogic centric--Really? (Score:1)
I consider this a nit and not a major flaw. Since they are mostly compliant with all of their examples.
Nice wording there (Score:2)
Oh yes, I remember those golden days of yore when EJB actually existed. Those were the days, eh?
Re:Nice wording there (Score:1)
Re:Nice wording there (Score:2)
Re:Nice wording there (Score:1)
I forgive your mockery. But you misunderstand. Application servers existed before EJB. WebLogic server existed before EJB. The original before I edited to make it suitable for SlashDot (which can still be found on Amazon) reads: If you are new to WebLogic, I suggest that you get this book. If you have been working with WebLogic since before the EJB
Weblogic and other application servers predate EJB. Back when EJB came out, NetDynamnics was THE Application server before it got bought by Sun and merged with Netscape then became IPlanet and then Sun ONE.
Therefore, as loopy as it is, I stand by the technical merit of my first statement.
Even today WebLogic is much more than just an EJB server, and the book covers much more than EJB.
Re:Nice wording there (Score:2)
I'm down with a fever and had nothing better to do than deconstruct your sentence, sorry. Wish somebody had modded me up as funny, though. ;)
Re:Get some PRIORITIES! (Score:1, Insightful)
Re:WebLogic re-evaluated (Score:2)
5. Stability
Instant Application Resin EE (Score:1)
Re:unnecessary (Score:1)