Month: November 2010

  • openESB ETL plugin remarks

    ETL plugin for openESB for small data migration project is awesome. I don’t know how would it work for small data warehouse issue where you get 4 gb of data daily. Maybe fine. But for other small migration project it does the job just fine and first of all it’s amazingly easy to setup. I think that blind dog of one friend of mine could make a project with this tool. There is just one mistake in the last GlassfishESB version 2.2. This plugin forget to set two variables. You must put them by hand in:
    files/nbproject/project.properties (add at the end, mine two entries with path would look like)

    o.n.soa.libs.wsdl4j.dir=C:/GlassFishESBv22/netbeans/soa2
    xml.validation.dir=C:/GlassFishESBv22/netbeans/xml2

    After that the project is ready to be build and generates wsdl file required for another operations: like including in business process or putting just inside composite application.

  • WarsawJUG: Clojure, REPL, Eclipse CCW, Eclipse Mylyn

    Two days ago I was participating a WarsawJUG meeting. Jacek Laskowski was speaking about clojure and some other amazing technologies he has learned while dealing with clojure and eclipse. (finally there was a guy that uses netbeans and claims that it worth something, most of the auditorium is eclipse, idea, spring coders – I predict from their’s reaction on: how faster and better is something being done in eclipse/spring whatever…). What really was interesting is clojure itself. I don’t really understand this fashion of clojure, scala – I have to read more about these trends. I’ve been once on meeting with Luc Duponcheel who was convincing ppl to scala and it’s lift framework. He believes it has great future towards, he believes also there will jvm remain after whole java and jee world. I will give these languages some more time, and go around for a while.

  • Business Component Development with EJB Technology

    I’ve found in our office material from SUN course called The Business Component Development with EJB Technology, Java EE 5 (SL-351-EE5). After quick preview I know there is auction application implemented as a tutorial and there is whole business use cases description and UML: domain objects, persistence diagrams and implementation model. I am familiar with this world. I’ve seen much of this on SL-310-EE6, I’ve also have been on course for enterprise application architects but still I might discover something new in this materials :)

  • Log4j stopped logging on Glassfish

    I use log4j library for confirmation what is being send to db server by my EJB code. Everything was working fine till one day. It simply stopped logging. (it turned out that I’ve used somehow newer version of log4j in my project, I’ve changed pointer in Libraries in Netbeans).

    • I’ve created a new domain on my local server and deployed there my EJB webservice and log4j was logging fine:
      DEBUG java.sql.Connection - ooo Connection Opened
      DEBUG java.sql.PreparedStatement - ==>  Executing: select count(*) from network_elements
      DEBUG java.sql.PreparedStatement - ==> Parameters:
      DEBUG java.sql.ResultSet - <==    Columns: 1
      DEBUG java.sql.ResultSet - <==        Row: 0
      DEBUG java.sql.Connection - xxx Connection Closed
    • I’ve noticed it should be a domain/server problem and started googling for this issue and found a solution:
    • Log4j
    • Glassfish v3 and later + log4j seem to have some sort of classloader problem: log4j library is loaded by different classloaders and this causes some kind of conflict if you deploy log4j with your application. The only solution I could find was to copy log4j-1.2.16.jar to <glassfish-installation>/glassfish/domains/domain1/lib. So please do this before proceding.
    • it comes from Hibernate JPA 2.0 on glassfish v3 with Netbeans IDE setup tutorial another amazing blog :)

    My Log4j knowledge is very basic, I just use a given example of configuration: sort1.properties from examples directory from log4j librabry:

    log4j.rootLogger=DEBUG, stdout
    
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    
    log4j.appender.stdout.layout.ConversionPattern=%5p %c - %m%n