Tagged: Java RSS

  • Jakub Pawlowicz 5:40 pm on June 22, 2007 Permalink | Reply
    Tags: , Java, ,   

    SpringOne – Day Three (aka The Last Day of Spring) 

    No Keynote

    The weather wasn’t as good as on the previous days – more windy and bit rainy. Maybe due to a fact, that was the first day of summer… ;-))) As there was no keynote, the sessions took 75 minutes instead of 60 to accommodate the time after taken keynote. Everything started in the morning with “OSGi, a New Foundation for Enterprise Apps” by Adrian Coyler and Costin Leau. And I must say it was really good. So good, that people were coming almost till the end and finally started sitting on the stairs to listen to Adrian and Costin introduction to this very interesting emerging technology (emerging in the server side Java as that’s de facto a standard for mobile and embedded Java application for almost ten years).
    Then at “Code Organization” by Juergen Hoeller (Spring Framework’s main architect) we saw why Spring is cool comparing to Hibernate (huh, guys from Hibernate and Spring doesn’t like each other since famous fight about Hibernate support in Spring). All points made by Juergen showed why Spring Framework is probably the best Open Source software on the market. No doubt.

    After a break I took two sessions which looked interesting but unfortunately were way too detailed for me: “Spring and Dynamic languages” by Rob Harrop and “Spring Batch – Enterprise Batch Processing” by Dave Syer, Scott Wintermute and Lucas Ward. Surprisingly, when the last session finished, we found that exhibition disappeared and Spring guys as well. There were no ending keynote, no “thank you”, just empty rooms in the conference center. You should learn from the QCon, guys!!!

    Summary

    Antwerp – 5 out of 5.
    SpringOne – 4/5
    Food – 4/5
    People – 5/5
    Fun – 5/5
    Wanna go next year – 4.5/5 (means – oh yes!)

    PS) Special greetings to Michael Hauser from Vienna, Austria, with whom I shared many interesting ideas and not only about IT.

     
  • Jakub Pawlowicz 5:42 pm on June 21, 2007 Permalink | Reply
    Tags: , Java, ,   

    SpringOne – Day Two 

    Keynote – once again

    The second day of SpringOne started with two keynote sessions – one by Adrien Coyler, CTO of Interface21, who was presenting the Spring Portfolio. He did it in a very funny way, showing a duck trying to do Spring WebServices Duck-Typing on a water-proof keyboard having a chicken as a telepathic assistant ;-))) That was really cool and everybody will remember this. Adrian also mentioned Spring IDE, setting up Spring development centers in Vancouver, Canada, somewhere in Florida, and Southampton, UK. The second part of the Keynote was presented by Eric Evans, who had a talk about Domain-Driven Design model. The presentation was mainly devoted to discuss the challenge of escaping from the legacy systems into more maintainable solutions. The presented solution suggests building an anti-corruption (proxy) layer on top of existing software and introducing every new changes/functionalities on such a base. That was very interesting session, as these are problems probably all of us encountered while working in the IT business. Looks like Eric has much experience in that field, so hopefully his talk would be published on parleys.com and be easily accessible by all of you.

    Sessions

    Next sessions I went to were two very interesting ones about Spring and concurrency: “Messaging and concurrency with Spring” by Juergen Hoeller (one of the Spring Framework co-founders) and “Concurrency and Spring” by Rob Harrop (he’s a cool guy – I really like his presentations). At the last one: “Architecture with Spring” by Eberhard Wolff, there was a discussion about Spring applications using object oriented style in case of domain objects – surprisingly it is true! Not a big deal for me, but for purists that’s a really big matter.

    Frites!

    And at the very end we get SpringOne’s special pomme frites. Very good ones – a must in Belgium :-))

     
  • Jakub Pawlowicz 5:49 pm on June 20, 2007 Permalink | Reply
    Tags: , Java, ,   

    SpringOne – Day One 

    Keynote

    The first day of SpringOne in the MetroPolis business/conference center in Antwerp started with the keynote. Looks like this is a rule, as every major conference have one at the very beginning. SpringOne wasn’t different, as Rod Johnson, the “father” of Spring, give a 2 hours presentation about Spring/Interface21 status. First of all, Interface21 (the company behind Spring) is moving to Silicon Valley, California. This is thus to a larger plan (see AmericanVentureMagazine for example) to make Interface21 a billion dollar company – one of the leaders of the market. Personally, I’m skeptical about this move as I prefer the way 37Signals do their business. Sticking with the private equity companies as dealing with shareholders (respecting their needs instead of your own) makes things harder. But if Interface21 wants to be a billion dollar company, then OK. If that $10M dollars would make Spring better, then I’m fine with that!

    OK. That’s all about business. Let’s move to the IT stuff :-))) So far nothing revolutionary was announced: Spring 2.1 with support for Java 6 is coming at the end of July, Spring 2.0 IDE plugin for Eclipse this month’s end. Spring Batch (co-developed with Accenture) was also mentioned as a part of the growing Spring Portfolio.

    Hands-on sessions

    From the first day sessions I concentrated on the “Hands-on” ones (I hate theoretical junk): “Spring AOP and JMX” by Ben Hale, “Monitoring your Spring Beans using JMX” by Rob Harrop, and “Best Practices using Spring Web Flow”. The ones about JMX were really great – some of the examples were really surprising as I had never supposed to use JMX in such a way (temporarily blocking the application flow). For sure there is a great power behind JMX and AOP, and all of this Spring makes a lot easier.
    Finally, I’m not yet very profficient with Spring Web Flow, but the new part of my project at Sabre (VacationStudio) is going to use SFW, so there will be a chance to become closer friends!

     
  • Jakub Pawlowicz 5:51 pm on June 19, 2007 Permalink | Reply
    Tags: , Java, ,   

    SpringOne: day 0 – welcome to Antwerp 

    I’m typing this post from the Holiday Inn Express hotel in Antwerp. We came here today at noon (flying from Krakow via Munich to Brussels and then by bus), so there have been plenty of time to see the city. So how is Antwerp? It is gorgeous! I feel its history when walking down the streets, looking at Rubens’ paintings in The Antwerp Cathedral, or looking at beautifully designed gothic facades, suddenly realizing that once upon a time it was the place where all trade routes have its beginning and end – Center of The World.
    If you haven’t been there yet, then you definitely should (and not only because of SpringOne)!

    Expect more SpringOne coverage soon!

     
  • Jakub Pawlowicz 5:53 pm on June 18, 2007 Permalink | Reply
    Tags: , Java, ,   

    SpringOne, here we come… 

    Tomorrow, we (Pawel Antoniewski from Sabre and me) are flying to Antwerp to attend SpringOne conference which starts this Wednesday! Expect more news as we get to place!

     
  • Jakub Pawlowicz 6:06 pm on April 6, 2007 Permalink | Reply
    Tags: ant, Java, JEE, jetty, Maven   

    Ant+Jetty plugin 

    It has been almost a month since my Jetty+Ant plugin saw the light of day (sorry for not blogging about it, but I have been awfully busy…). It was developed during my work at Sabre Holdings and released on March 8th as an open source project on codehaus.
    Jetty, for those not familiar with it, is a small, very efficient and embeddable web container. The idea of Jetty plugin for Ant originated from a killer combination of Jetty and Maven, which makes JEE applications development fast as never before (thanks to automatic configuration and application redeployment on-the-fly).
    So now Jetty is available to Ant users as well! Enjoy!

    More info:
    Jan Bartel’s original announcement

    Ant+Jetty plugin documentation on Codehaus Wiki

    Jetty WebServer home page

     
  • Jakub Pawlowicz 6:16 pm on January 21, 2007 Permalink | Reply
    Tags: , , Java   

    Why no Java on the iPhone? 

    The whole discussion (see “Java to the iPhone: Can you hear me now?” on O’Reilly Blog) is pretty interesting as the Java motto is “write once, run everywhere”. It’s true at least on every machine that have its own Java Virtual Machine. But looks like iPhone wouldn’t have its own JVM, so it won’t be possible to run Java applications on the iPhone at all.

    But the question is not why Java wouldn’t find a place to the iPhone, but why it should. The only reason to keep Java on the iPhone is to let it use Java applets on some websites. But how many websites uses Java applets: 1%? And how many of them have to be used by future iPhone owners? 2? 5? So for sure it’s not worth to support another environment.

    However, there are much more arguments against putting Java into the iPhone:

    • iPhone won’t allow 3rd party applications – no Java is needed
    • Java applications look ugly and are slightly slower than those build with native languages like Objective-C
    • there would be problems integrating Java apps with other, non-Java ones
    • Java doesn’t offer good interfaces for interacting with peripherals, such as USB, controllers, etc.
    • I’m almost sure Apple has more experienced Objective-C developers than Java ones
    • Apple wants to control iPhone in every aspect – needless to say games market is worth millions
    • There’s also no Java on the iPod – a coincidence?
    • (more still to come… ;-)))

    But don’t get me wrong – Java is not bad. No doubt it is one of the best languages for the server-side programming. If not the very best one…

     
  • Jakub Pawlowicz 5:22 pm on June 29, 2006 Permalink | Reply
    Tags: eclipse compiler, Java, tomcat 5.5   

    Fighting Tomcat 5.5.9 

    Recently, I’ve had some hard times when trying to deploy a site to Tomcat 5.5.9 container. I wasn’t aware that this version introduced JDK 5 as a default Java version and Eclipse JDT incremental compiler instead of the standard jspc. I was getting strange messages like: “Unable to compile class for JSP” or “javax/servlet/jsp/el/ExpressionEvaluator;) Wrong return type in function” when compiling JSPs. It was driving me mad, because I had to fix it ASAP.
    But after few hours of googling, I’ve found a …

    … solution

    And it is pretty simple. It goes as follows:
    1. Delete jasper-compiler-jdt.jar from ${CATALINA_HOME}/common/lib directory.
    2. Add ant.jat to ${CATALINA_HOME}/common/lib directory.
    3. Put this in your application’s web.xml:

         <servlet>
            <servlet-name>jsp</servlet-name>
            <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
            <init-param>
                <param-name>fork</param-name>
                <param-value>false</param-value>
            </init-param>
            <init-param>
                <param-name>xpoweredBy</param-name>
                <param-value>false</param-value>   
            </init-param>
            <init-param>
                 <param-name>compiler</param-name>
                 <param-value>javac1.5</param-value>
            </init-param>
            <init-param>
                 <param-name>compilerSourceVM</param-name>
                 <param-value>1.5</param-value>
            </init-param>
            <init-param>
                <param-name>compilerTargetVM</param-name>
                <param-value>1.5</param-value>   
            </init-param>
            <load-on-startup>3</load-on-startup>
        </servlet>
    

    And that’s it. Solutions are always obvious after you spend some time to find them…

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel