| Blogging Roller |
| Put this feed on your website |
| Description: |
Dave Johnson on software development, Java, and the Roller Weblogger project. |
| Format: |
RSS 2.0 |
| Url: |
http://www.rollerweblogger.org/rss/roller?catname=Java |
| |
| Latest headlines |
Blogging Roller
|
Tim Bray on HttpURLConnection
Mon, 23 Jan 2012 08:26:37 -0500
Good information on a bad API. The comments are good too:
HttpURLConnection's Dark Secrets: If you’re programming in the Java language and want to talk to a Web server, there are several libraries you can choose from. HttpURLConnection is one popular choice, and for Android programming, the engineering team has now officially suggested that you use it where possible.
|
Looks like I'll be waiting for Netbeans 7.1.1
Tue, 10 Jan 2012 07:20:58 -0500
jVi Home Page:
NetBeans 7.1 Bug 205835 can lose edits; a variety of jVi commands run into this. jVi-1.4.5 disables itself if it detects module versions with the bug, AFAICT. The bug is scheduled to be fixed in NB-7.1.1; sometime around January/February.
Seriously, how can you ship without vi?
|
Maven 3.0: 50% to 400% speed improvement?
Wed, 26 May 2010 08:25:10 -0400
A drop-in replacement with 50% to 400% speed improvement? That sounds too good to be true.
Matt Raible: The main improvement in Maven 3 is speed. It's been performance tuned to be 50% to 400% faster. Benchmarks (guaranteed by integration tests) include better: Disk I/O, Network I/O, CPU and Memory. Another new feature is extensibility so Maven is a better library rather than just a command-line tool. Now there's a library and APIs that you can use to do the things that Maven does. Plexus has been replaced with Guice and it's now much easier to embed Maven (Polyglot Maven and Maven Shell are examples of this).
Apparently it is not entirely true, at least not yet (Maven 3.0 is still in beta). I tried switching to Maven 3 for the Roller 5 build and hit several build errors related to class-loading and JPA byte-code enhancement.
|
Maven support in IDEs
Tue, 23 Mar 2010 10:11:14 -0400
I've been switching around between the Eclipse, Netbeans and IntelliJ IDEs at home and at work. I've found that fiddling around with multiple IDE specific project configurations and launchers and class-paths is no fun at all. That's one of the reasons I got interested in Maven. Yes, Maven is a build-system but it's also a sort of IDE portability solution. Maven projects can be loaded right into all the major Java IDEs as you can see in the screenshots below. IDEs can find your sources, resources, dependencies and via the Maven Jetty plugin even run your Java webapps from the IDE -- things that are not possible if you're using a custom Ant build-script as we were doing before with Roller.
Here some screenshots that show the various Maven IDE plugins and their dependency graph feature.
Roller / Maven Eclipse 3.5 / M2Eclipse
Here's Roller loaded into Eclipse via the Maven M2 Eclipse plugin.
By the way, if you want detailed instructions for getting Roller 5 up and running in Eclipse with the Eclipse Web tooling, check-out Harald Wellman's helpful blog on the topic: Setting up Eclipse for Roller.
Roller / Maven in Netbeans 6.8
Here's Roller loaded into Netbeans as a Maven project.
Roller / Maven in IDEA IntelliJ 9.0
And here's Roller loaded into IDEA IntelliJ as a Maven project.
I'm not sure which I prefer yet.
|
Atom news: Apache Abdera graduates
Fri, 21 Nov 2008 15:54:48 -0500
Congratulations to the Apache Abdera team, who've just graduated to full Apache top level project status. The don't have the new site at abdera.apache.org up yet and they're still not quite at 1.0 yet, but this is a major milestone. They've got the best Atom format and protocol toolkit around, in my opinion.
via Garett and James.
|
RESTful JSF in the works?
Fri, 8 Aug 2008 15:52:58 -0400
JSF spec lead Ed Burns just pointed out that some of my Sun-internal comments about JSF have made it outside the firewall and into an issue on the JSF specification project:
On Wed, 19 Mar 2008, David M Johnson said:
I think the goal should be to make JSF applications RESTful by
default, with proper use of GET and POST, i.e. only use POST when
application data is changing, not for component state. Another goal
should be clean, book-markable URLs that only carry path-info and
parameters needed by the application logic.
That's easy and the default situation with Rails, Grails, Struts, etc.
How hard would it be to redesign JSF along those lines? Would it
require EJB2 -> EJB3 level changes to JSF?
I suspect work on JSF 2.0 is too far along for this kind of change now, but it's nice to hear that the idea of a truly RESTful JSF is at least under consideration.
|
Struts 2 in Action
Wed, 7 May 2008 12:19:49 -0400
Struts 2 is my favorite Java web framework these days; it's REST-friendly, simple, easy to use, very flexible and the only thing it has with its creaky old Struts 1.x parent is the fact that it's an action framework rather than a component framework like JSF. As most of my readers probably already know, Struts 2 is based on WebWork/XWork the framework that powers JIRA and Confluence, two of the coolest Java webapps around.
Apparently, I'm not alone in this thinking -- I keep on running into folks at JavaOne who feel the same way. But unfortunately, Struts 2 docs are lacking, so I was very happy to see two new books on Struts 2 at the JavaOne bookstore. There's Struts 2 in Action, a rewrite of the classic Manning book, and Practical Apache Struts 2 Web 2.0 Projects from Apress.
I picked up a copy of Struts 2 in Action on Monday and it looks great so far, but I've only skimmed it. I'll let you know what I think once I dig-in on the flight home.
If you're at JavaOne, check out TS-5739 - Hands-on Struts2 by Ian Roughley (author of the Apress book) today at 10:50 AM in Esplanade 307/310.
|
Social Software at JavaOne 2008
Tue, 29 Apr 2008 15:00:08 -0400
There are quite a number of Social Software related talks coming up at JavaOne and CommunityOne this year. You can learn about everything from building Social Networks with the Liferay portal and federated relationships with OpenSSO to creating 3D virtual works and implementing OpenSocial with Java. And, I'll finally be able to talk about what I've been working on for the past couple of months -- more about that later.
Here are the 11 Social Software related talks that I've found so far at both JavaOne and CommunityOne. Did I leave any out?
CommunityOne - Monday
S297141 - Building a Social Network with Liferay Portal
Brian Chan, Liferay, Inc.
Monday May 05 12:25 - 13:20 / Moscone North - Hall E 135
S295742 - Turn Your Web Site into an OpenSocial Container
Dave Johnson and Vijay Ramachandran, Sun Microsystems, Inc.
Monday May 05 14:35 - 15:30 / Moscone North - Hall E 135
S297300 - OpenSSO: Federated Relationships with Social Networking and Web 2.0
Pat Patterson, Daniel Raskin and Nick Wooler, Sun Microsystems, Inc.
Monday May 05 16:00 - 16:55 - Moscone North - Hall E 135
JavaOne - Tuesday
TS-6125 - Project Wonderland: A Toolkit for Building 3-D Virtual Worlds
Paul Byrne and Jonathan Kaplan, Sun Microsystems, Inc.
Tuesday 05/06/2008 3:20 PM -4:20 PM / North Mtg-121/122/124/125
JavaOne - Wednesday
TS-6574 - How to Implement Your Own OpenSocial Container with Java
Chris Schalk, Google
Wednesday 05/07/2008 1:30 PM -2:30 PM
JavaOne - Thursday
BOF-6362 - LinkedIn: Prof. Social Network Built with Java and Agile Practices
Nick Dellamaggiore and Eishay Smith, LinkedIn
Thursday 05/08/2008 6:30 PM -7:20 PM / Esplanade 301
BOF-5857 - Turn Your Web Site into an OpenSocial Container
Dave Johnson and Jamey Wood, Sun Microsystems, Inc.
Thursday 05/08/2008 6:30 PM
BOF-6575 - Building OpenSocial JavaServer Faces Components
Ed Burns, Sun Microsystems, Inc.; Chris Schalk, Google
Thursday 05/08/2008 7:30 PM -8:20 PM
BOF-5911 - Beatnik: Building an Open Social Network Browser
Tim Boudreau and Henry Story, Sun Microsystems, Inc.
Thursday 05/08/2008 7:30 PM -8:20 PM
BOF-6435 - Creating Facebook and OpenSocial Widgets with Java
Florent Gerbod and Kevin Leong, Mo'Blast Inc.
Thursday 05/08/2008 8:30 PM -9:20 PM
JavaOne - Friday
TS-6537 - Applications for the Masses by the Masses
Girish Balachandran and Todd Fast, Sun Microsystems, Inc.
Friday 05/09/2008 10:50 AM -11:50 AM
|
Social Software for Glassfish screencast
Thu, 21 Feb 2008 16:13:44 -0500
I mentioned the Social Software for Glassfish (SSG) EA2 release before the winter break, but I never got around to posting any details.
Since then
some documentation has appeared,
Manveen Kaur blogged it,
The Aquarium too
and now screen-cast master
Arun Gupta has created an excellent
Social Software for Glassfish screencast
that walks you through the features in this very early access release. Now I don't have to say nearly as much.
|
Abdera AtomPub server refactoring
Mon, 28 Jan 2008 09:05:45 -0500
I've got to carve out some time ASAP to take a close look at this.
The code is in Abdera SVN and there's
20-minute implementation guide (PDF) too:
James Snell: Dan Diephouse and I have been spending the last week refactoring the Abdera server framework with the goal of making is less complicated, easier, and generally better.
|
|