It can’t rain forever…

July 31, 2006

Struggling with Struts

Filed under: Java — bbossola @ 9:21 pm

Today I was looking at session size of one webapp: it was increasing while using application functions…. 50k, 60k, 70k, 80k… wtf? I know programmers were warned about inserting data into the session, cleaning the stuff after using it, so what? Well, the reason is that if you don’t decide else Struts 1 will put all your forms inside your session! I couldn’t believe it!

Let’s go reading the official documentation… Struts guys gently suggest: “…as a general rule, allocating scarce resources and keeping them across requests from the same user (in the user’s session) can cause scalability problems…”
Well, good rule of thumb! We do know about this!

But, some paragraph after, the deadly note: “…an ActionForm represents an HTML form that the user interacts… ActionForms can be stored in either the session (default) or request scope…”

WHAT? You guys really said that forms are stored in the session by default???

I don’t know what to say… sadly in the next days a development group will be analyzing one by one our 640 usecases and 1465 form, just to ensure that moving them to request scope (oh, yeah, you also have to modify line by line your xml config) will keep the field clear.

I know, ignorance is not an excuse, but now I understand why struts 1.x is over, and why struts 2.x ISA webwork :-)

P.S.
Domenico, a friend of mine and expert programmer, pointed me out this bad trick… thanks! I’ll use it as last resource.

July 27, 2006

Javapolis, at last!

Filed under: Java, Life — bbossola @ 1:55 pm

Few days ago I was noticed from Javapolis team that my speech was selected and included for the next edition, in December 2006. What a great news! I’m really excited about that… it’ll be my first experience as speaker in a foreign country; the speech will be held in english, of course, so I hope I’ll be able to be as brilliant as usual.

See you there, foks! Don’t miss that conference, it’s the best here in Europe.

July 24, 2006

Occitania

Filed under: Life — bbossola @ 2:37 pm

Yesterday I went to an occitan fest in France and my friends started dancing (it’s the tipical way to enjoy such events). Everyone seemed to feel happy and joyful when dancing! Why wasn’t I able to do the same? I mean, I feel the rythm, I’ve energy, I know I can do it. So what?

I guess it’s because there’s so less joy inside me. If you don’t feel joy, you can’t dance. But, yes, we know, it can’t rain forever…

July 19, 2006

JavaDay in Turin, done!

Filed under: Java, Life — bbossola @ 10:37 am

Few days ago in Turin we (JugTorino) organized the first stop of the Italian JavaDay. It was such an hard work, but we get a success! It was amazing to see all those people attending our conference…. great!

You can read a report (italian / english) and you can also take a look at slides and photos.

July 17, 2006

Hello world!

Filed under: Life — bbossola @ 12:26 pm

This is my first post to this blog. I don’t know exactly what I’m supposed to write here… maybe it’s just a place to exercise my poor English, so I think that sometimes I’ll write also in Italian.

I live in Turin, Italy, I was born in 1969, and I’ve been working with PC’s since… maybe 1980, using a CBM Vic20 (16k ram!).

Actually I’m driving a well known Java User Group and I play bassguitar in a very less known rock band, Arpabirmana

Blog at WordPress.com.