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.

Posted

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 :)

Posted

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

Posted

Somewhere earlier on this blog I said there is fine php framework called cakephp. I tried it and what convinced me to use it was the main motto of it. IT’S PIECE OF CAKE! And that was so true. I got even eclipse for PHP and started experimenting with it… Although there was something against php in my head. Exactly the opinion of my college from work (java developer). He said: ‘Dude what’s wrong with you? are you using php?’ I asked my self, shit what’s wrong with php and started to seek over the web for term ‘java vs php’ and red the first one which wasn’t against any, and was looking hopefully on php in future. So yes I am going to stay being java developer and improving myself in this world but still I will be cakephp and symphony fan! Which programming languages are fastest?

Posted