Matt RaibleMatt Raible is a writer with a passion for software. Connect with him on LinkedIn.

The Angular Mini-Book The Angular Mini-Book is a guide to getting started with Angular. You'll learn how to develop a bare-bones application, test it, and deploy it. Then you'll move on to adding Bootstrap, Angular Material, continuous integration, and authentication.

Spring Boot is a popular framework for building REST APIs. You'll learn how to integrate Angular with Spring Boot and use security best practices like HTTPS and a content security policy.

For book updates, follow @angular_book on Twitter.

The JHipster Mini-Book The JHipster Mini-Book is a guide to getting started with hip technologies today: Angular, Bootstrap, and Spring Boot. All of these frameworks are wrapped up in an easy-to-use project called JHipster.

This book shows you how to build an app with JHipster, and guides you through the plethora of tools, techniques and options you can use. Furthermore, it explains the UI and API building blocks so you understand the underpinnings of your great application.

For book updates, follow @jhipster-book on Twitter.

10+ YEARS


Over 10 years ago, I wrote my first blog post. Since then, I've authored books, had kids, traveled the world, found Trish and blogged about it all.

Jetty and WebSphere suck, JRun and Tomcat rule the pack

I've been looking for an app server performance comparison for some time now. Maybe those folks that say Tomcat sucks and Jetty rules will change their tune. Via Lasse Koskela:

Web Performance Inc. has published a very interesting report, which included a couple of surprises. Jetty pretty much sucked, JRun was one of the top guns, and Tomcat wasn't too far behind JRun.

Anyone know of any similar (recent) comparisons?

Posted in Java at Jul 02 2004, 02:59:21 PM MDT 9 Comments

Pictures from the debauchery at JavaOne

Java, Booze and Porn - what more can you ask for? I met a whole lotta folks this week - and had an awesome time. I highly recommend the networking track at JavaOne.

[Monday · Tuesday · Wednesday]
JavaOne 2004

Posted in JavaOne at Jul 01 2004, 04:39:12 PM MDT 1 Comment

Escaping from the Chozgobbling Asshats

Bruce and I managed to ditch all the "chozgobbling asshats" in downtown San Fran at about 3:30 this morning. We packed and caught the hotel's limo to SFO - then proceeded to act drunk and stupid. So stupid in fact that we had to go through security twice. We arrived here at 4:15 and I finally got to my gate at 5:20. Too bad my flight doesn't leave until 8.

To all the asshats: are you man enough to do it again at OSCON?

It was a fun week gents - thanks for all the pics. ;-)

Posted in JavaOne at Jul 01 2004, 06:20:51 AM MDT 1 Comment

[JavaOne] Developing Eclipse Plugins

I briefly broke my mantra this afternoon and went to a session on Java Studio Creator. I lasted just past the agenda before I walked out. It looked to be a justification talk - telling us that Creator was made for corporate dummies that don't write code for a living. I skipped across the hall to a session on developing plugins for Eclipse. It was quite interesting and really made it look easy to develop plugins. I almost fell asleep quite a few times, but that's probably from the booze still peculating in my veins.

The best thing I got from the talk was tips and tricks for developing with Eclipse. I watched Eric Gamma do a lot of shortcuts to and quick fixes that I didn't know about. I probably won't remember them past today, but they were cool nevertheless. Now I'm off to the hotel to charge my camera and get ready to pull an all-nighter before our early-morning departure.

Posted in JavaOne at Jun 30 2004, 06:17:01 PM MDT Add a Comment

[JavaOne] What's new and cool in the J2ME Wireless ToolKit

I'm continuing my theme to only attend sessions I know little about. I'm sitting in a session on the J2ME Wireless ToolKit. So far it's fairly boring. This guy's been rambling on for a while about all the JSRs that the toolkit implements. Now he's doing a demo and using the Network Monitor to demonstrate looking at the HTTP requests when making soap calls.

This is only my 4th session of JavaOne, and I haven't been to any BOFs. I don't feel like I'm missing anything. Most of my time in Moscone is spent sitting in the main lobby, hacking away at my e-mail and talking with folks. I never imagined I'd meet so many people. It's pretty damn cool to meet all the bloggers.

The tools and demo that this guy is showing look like good monitoring and emulating tools. The WTK doesn't appear to have an IDE, just a way to run midlets and see the results. It doesn't appear to have an IDE. If I was to compare this to the web world, I'd say that the WTK is really just a web browser. Of course, it's much more than that since it can emulate HTTP requests, and well as bluetooth. From what I can tell, a midlet is really just a Java application that can run on a mobile device. After googling a bit, it looks like I was right. How easy is it to unit test midlets? Do you have to constantly use an emulator to test stuff? I'd like to write an AppFuse client for my phone, but I also want to use TDD to do it.

I missed the rest of the presentation b/c I got lost in reading blogs. Attending these sessions with an open laptop is not a good idea. I hope I can make one more session today - my goal was 5 for the week. As Dion said, this conference is all about networking.

Posted in JavaOne at Jun 30 2004, 03:57:53 PM MDT 2 Comments

Wednesday - the booze fest continues

Went to bed at 5, up at 9. I haven't had a hangover this week, and I'm still drunk from last night. As I'm sobering up at 1:00 in the afternoon, I feel my breakfast making an attempt to see the light of day. I have lots of photos (and video) from the evening's activities, but no cord to upload them onto my computer and the web. Will do so tomorrow. These Java guys can't dance for shit. I could use another Irish Car Bomb right now. 5 and 1/2 hours until the festivities begin again. Bruce and I have a 6 a.m. flight to Denver tomorrow - should be fun going to the airport. Maybe we should just check out of hotel today.

Posted in JavaOne at Jun 30 2004, 01:52:47 PM MDT Add a Comment

Rendezvous for Windows, can be called from Java

Rendezvous rocks on the Mac. Wouldn't it be nice if you could use it between platforms or even in your Java apps? You will be able to shortly...

Apple released a developer's preview of Rendezvous Networking for Windows 2000 & XP at wwdc 04. ... Also released was support for various POSIX platforms, including Linux, Solaris, and FreeBSD, as well as making it callable from Java. [MacRumors]

Posted in Java at Jun 30 2004, 01:06:59 PM MDT 1 Comment

JDNC: Simplifying Java Desktop Client Construction

Next session: Java Desktop Network Components. I'm trying to attend sessions that I don't know much about. J2EE ones are likely to bore me. I just noticed that Amy Fowler is one of the presenters - and I've heard she's hot - so I'm sitting up close (5th row).

JDNC is designed to provide shortcults for building common archetypal applications. Better clients with less effort. Less (maybe no) coding. Gentle learning curve and incremental development model. Assumes network or web data source. Geared towards Java application and XML developers. Sun is going to do a lot of work to get Tools vendors to include JDNC. It seems similar to AppFuse, but I'm guessing it's more of an API than a project template. Their goals seem to be the same - get something to show your manager in a matter of hours, not weeks.

Swing Extensions API: targeted for Swing developers, extended components with more features, networked data connectivity and data-binding. I wonder how JDNC compares to Spring's RCP project? Amy mentions JGoodies and how they'd like to include it as part of JDNC.

Feature Highlights:

JXTable: Asynchronous data loading. Sorting, filtering and highlighting.
JTreeTable: Hiearchical-columnar view (outline)
JForm: Data-binding and Validation (as you type). Sounds a lot like what Keith is working on for Spring.
Damn - missed one...

JDNC API: Very high-level components. Built on the foundations of SpringSwing/JFCX. Solution focused and conforms to the JavaBeans Architecture Spec - BeanInfos provided for tool friendliness. Encapsulates complex operations (threading, network connectivity, data modeling). Provides usability features.

Components: JNTable, JNTree, JNTreeTable, JNForm, JNEditor. These components wrap, rather than extend lower level component. Expose simpler API and provide more defaults (i.e. scrolling).

Now we're looking at the Bug Editor Demo (WebStart). The features they're showing are similar to what folks want in the display tag - sorting, filtering, column visibility. It's very cool to see that this is now a built-in feature of Swing. I wonder how hard it is to use JDNC and JGoodies in project? Is it just a matter of adding a couple of JARs to your classpath? It'd be cool to add J2ME and Swing clients to AppFuse. I think the hardest part would be emulating the current (container-managed) security model that exists in the webapp clients.

Sorry, zoned out on e-mail for a while there.

Amy is now showing code and how to create a form for the detail view. It's interesting that the data-binding, including exceptions, is similar to Spring.

JDNC Markup Language: Looks very cool. You can actually develop a Swing app with XML!

Important thing to remember: JDNC simplifies rich client development on all levels. Overall I think JDNC is a very cool open-source project - it's nice to see Sun trying to make developer's lives easier. For more information on developing Swing apps, checkout javadesktop.org.

Posted in JavaOne at Jun 29 2004, 04:09:19 PM MDT 14 Comments

Clustering: Tips and Techniques

I'm sitting in a session on clustering. I'm interested in this topic because I'm going to try and setup Tomcat clustering for Roller. Furthermore, I'm going to try and do it between my current ISP and Groove Systems. Rather than just hopping ISPs, I figured it would be easier to setup a highly available system. I was talking to Dave last night about setting up clustering on JRoller.com. The main problem there is handling file uploads. A lot of folks have uploaded files, and if you setup a cluster, you'll either have to do it on the same machine or mount the first machine's "resources" directory onto the second machine. Regardless, I doubt it would be that difficult.

A typical cluster architecture has a firewall, followed by load balancers that proxy to a webserver farm. Then there's another firewall that talks to J2EE app servers that talk to a highly available database.

Gotcha #1 Apps don't have to be cluster-aware do they?
In a perfect world, this can be true. Programming model issues: serializability and handling failures. HTTP Session and EJB Stateful Session bean state. Tip: Serialize only when needed. Here's a personal tip - add <distributable> to your web.xml file. In most cases, you're appserver will tell you when objects in the session are not serializable. It's a simple way to test if your application is ready for clustering.

Gotcha #2 Idempotence
I missed the definition but it seems to be the ability to do something again and again and get the same results. Here's the real definition of idempotent. Basically, can your application handling retrying something?

Gotcha #3 Using the session or SSB's state as a database
The session is designed to handle conversational state, not information that might need transactional attributes. Stuffing a large volume of data in the session is just a memory issue on a single server - but it becomes a performance issue in a cluster.

Gotcha #4 Upgrades/Patches without impacting availability
Tip: Rolling upgrades and Quiescence. What is quiescence? It's the ability to prevent new users from coming into your app while upgrading, while continuing to service existing users. Quiescence in clustering refers to the ability to bring down servers, upgrade them, and re-introduce them to the cluster.

This talked switched speakers about 10 minutes ago. The new guy is talking about how vendors might implement clustering solutions. In other words, it's boring and doesn't interest me. I care about what I need to do to deploy to clustered servers.

Now we have another speaker - to talk about performance. Performance is always addressed at the end isn't it? Even in the real world. It was funny talking to Dave last night about JRoller. He said that Matt and Rick setup Roller on a test box and hammered it while there were trying to figure out issues. The hit it more often then the production JRoller instance gets. Unfortunately, there were unable to reproduce any issues. The main things that Dave did to fix the latest release was to remove OSCache and to remove Roller's Query API. Now it uses Hibernate directly (I'm guessing that Castor is no longer a persistence option).

That's it - session is over. Now onto learn more about JNDC.

Posted in JavaOne at Jun 29 2004, 01:22:50 PM MDT 3 Comments

Creator - sucks on the Mac

Bill's got a screenshot of Java Studio Creator on the Mac. I've been playing around with it for the last 1/2 hour and it pretty much sucks on the Mac. It's very slow and seems jerky. Oh well, a lot of apps suck on the Mac. Damn slow-ass PowerBooks. wink

I got a simple list screen working that pulls data from a MySQL table. I thought the "Data Grid" component was supposed to include pagination and list functionality like the display tag. From what I can tell - it's not capable of this functionality. Maybe I'm missing something?

Posted in JavaOne at Jun 28 2004, 05:48:20 PM MDT 3 Comments