» tagged pages
» logout

sorted by: recent | see : popular
Content Tagged with live + Jonas

How to validate an email adress


This code demonstrates how to use regular expression to valide an email address : http://www.devx.com/tips/Tip/28334?trk=DXRSS_JAVA

Stéphane TRAUMAT

JOnAS: JOnAS Live

JOnAS 4.4.2 and Hibernate 3.0.5 example


I worked on the Hibernate-JOnAS sample. It's now working with JOnAS 4.4.2 and Hibernate 3.0.5.
It's based on the hibernate documentation example (http://www.hibernate.org/hib_docs/v3/reference/en/html/)

All can be downloaded at http://www.scub.net/contributions/hibernate3-jonas.zip

Stéphane TRAUMAT

JOnAS: JOnAS Live

JOnAS 4.4.2 is the stable release


JOnAS 4.4.2 has been moved to the stable state ! This is the release to use !. Don't forget, if you are using Hibernate 3, to replace cglib by cglibnodep to avoid some. conflicts !

Stéphane TRAUMAT

JOnAS: JOnAS Live

Back from holidays :)


I'm back from holidays... I did not really travel but I took time to live which is already something great when you run a business. During those holidays, I gave a conference at the free software meeting http://2005.rencontresmondiales.org/sections/index_html/switchLanguage/en.It was nice, peoples are very open minded and very ineterested in anything there :) But i was still amaze to realise that, in the peoples attending my conference, only one out of fifty were using unit testing :(

Stéphane TRAUMAT

JOnAS: JOnAS Live

Interesting Ajax librairie


Seems Ajax is getting mandatory nowadays :) Lots of peoples (including clients) are starting to speak about it... So I deceided to start playing with it ! I found this library : http://script.aculo.us/ It's quite impressive and the source code is really clean.

Stéphane TRAUMAT

JOnAS: JOnAS Live

RTF to HTML


I'm developing a J2EE layer for a french ERP. The idea behind it is to use the ERP as the base to our developments. This way, we don't have to reinvent the wheel (management of clients, items, order, invoices...), we just develop what the client is missing. We found a prb yesterday (sunday yes!), the items decription are saved in RTF :(

This is the code we wrote to transform it into HTML:

public static String convertRtfToHtml(final String chaine) {
InputStream is = new java.io.ByteArrayInputStream(chaine.getBytes());
RTFEditorKit kit = new RTFEditorKit();
Document doc = kit.createDefaultDocument();
try {
kit.read(is, doc, 0);
return doc.getText(0, doc.getLength()).replaceAll("\n", "
");
} catch (Exception e) {
e.printStackTrace();
}
return "Non disponible/Not available";
}


Stéphane TRAUMAT

JOnAS: JOnAS Live

We can't reinvent the wheel anymore


When I started my business in software development, my "business model" was to create softwares from scratch for companies. In my candid mind, clients were supposed to come with a project, I was supposed to make an offer and I would then work during some months to do that job.

Five years later, I'm now sure I was completely wrong :) I realised three things:

- SMB can't afford to develop all from scratch. We work for 343? a day, there is always a minimum of 50 days to develop something important. It's far too expensive compared to what they can afford. Besides, some simple softwares found on internet cost 100 ?... they just don't understand the differences.

- Big companies can spend a lot to develop all but in that case, you have to be a specialist in some areas (That's why we became specialist in JOnAS). Companies knows calls us for this skill.

- Open Source is a great help. It lowers the price your clients have to pay. Besides, if you are participating to some projects, if you write articles, if you make some conferences, peoples will start to know you and you won't have to search clients anymore.

This is my point of view.

Stéphane TRAUMAT

JOnAS: JOnAS Live

Incredible LGPL uml software !


I spend days searching for a good free uml software to create a UML class diagram from my existing model objects... This is the best software I found: www.fujaba.de. It's not shining, but this works very well.. the Reverse Engineering and Design Pattern recognition is amazing... In few minutes, my model class diagram was generated in pdf!

Stéphane TRAUMAT

JOnAS: JOnAS Live

Small tutorial on JOnAS and Web Tools Platform


In my free time, I made this small documentation on how to setup JOnAS and Eclipse Web Tools Platform : http://scub.net/documentation/jonas_wtp/.
Web Tools Platform is really a great piece of software, I really advise you to give a try.

Stéphane TRAUMAT

JOnAS: JOnAS Live

A new blogger from Objectweb


A member of the JOnAS team started a blog : http://jonas-inside.blogspot.com/. Interesting !

Stéphane TRAUMAT

JOnAS: JOnAS Live

JOnAS team blog


Here is the jonas team blog : http://jroller.com/page/jonasteam. I think it's going to be a nice place to find informations about JOnAS

Stéphane TRAUMAT

JOnAS: JOnAS Live

A way to deal with Hibernate & SOA


In the architecture we choosed, Session Beans offers methods to the presentation layer. For example, in CustomerFacade, we have a method named getCustomer(String code) that returns the Customer. The problem is that a customer have orders and invoices. Sending all the data about the Customer to the presentation layer can be very expensive (for the bandwidth and the database server).

The best would be to let the presentation layer asks for what it wants, for example: orders and not invoices. so we added a new parameter to getCustomer(String code) to have something like getCustomer(String code, CustomerDataRequest dataRequest). The CustomerDataRequest object is a simple pojo with properties orders and invoices. If the property invoices is set to true, the bean layer will intialize the invoices collection.

With that method, every clients can choose the data he wants to retreive, and adding a new object collection to the customer object doesn't force to modify the already existing applications.

Stéphane TRAUMAT

JOnAS: JOnAS Live

GenIC at deployment time


Generation of EJB interpososition classes was realised, in JOnAS, via a tool named GenIC. since JOnAS 4.4, the GenIC invocation is realised at deployment time, so no need to bother about this anymore :)

Stéphane TRAUMAT

JOnAS: JOnAS Live

Transaction Timeout in JOnAS


When running long queries (taking more than one minute for the server to respond), JOnAS server usually return a Transaction Timeout error. The goal of this is to avoid the deadlock cases (infinite loop, server crash...). To change the timeout length parameter, edit $JONAS_BASE/conf/jonas.properties and change the jonas.service.jtm.timeout parameter.

Stéphane TRAUMAT

JOnAS: JOnAS Live

A new java database open sourced !


Xcalia annouced today that it has made it's database Jalisto? available as an Open Source Product. The project will be, like JOnAS, hosted at Objectweb consortium :) again a new wonderful project for the Objectweb consortium!

The press release is there: http://www.marketwire.com/mw/release_html_b1?release_id=94492

Anyone tried that product ?
Stéphane TRAUMAT

JOnAS: JOnAS Live

Oracle, Hibernate and maximum open cursors exeeded


Long time since I blogged ! I've been quite busy lately. I will start again but giving a simple tip I had to discover. I'm developing an hibernate application where I HAVE TO call some stored procedure. but, after a certain amount of calls, I end up having the database giving me "maximum open cursors exeeded" errors. In fact, when using a pool, the callable statements are cached, in many cases, the database maintain a cursor for each open statement (it seems the case even if I close them).

To solve the prb, I added in the hibernate configuration file:
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">1800</property>
<property name="hibernate.c3p0.max_statements">50</property>s

With that, the problem is gone!

Stéphane TRAUMAT

JOnAS: JOnAS Live

Optimization (my vision)


This week, some peoples went back again on the famous topic "Java is slow" (http://it.slashdot.org/article.pl?sid=05/10/09/1259246). I quite agree with one post saying :
The laws of optimization are:
1. Make it work.
2. Make it work well.
3. Make it work fast.

That's the way we work in my company, assure that it works, assure that it's tested and then, optimize it if needed. The only exception we have is for Hibernate: While developing, we always have the show_sql parameter set to true because we had some hard times optimizing Hibernate configuration when the application is big.

Stéphane TRAUMAT

JOnAS: JOnAS Live

A way to deal with Hibernate & SOA (2nd)


In a previous post, I was explaining our way to deal with Hibernate & SOA. Lou Sacco made an interesting comment on how to deal deal with it in a general way. Since this time, A friend of mine who is fond of Spring had the idea to add automatically this code after each method execution thx to AOP. The result is quite nice, you just have a parameter indicating what you want and the method takes care of it ! Thanks to both of them, we now have a simple and easy solution.

Stéphane TRAUMAT

JOnAS: JOnAS Live

JBoss & Objectweb collaboration (?)


I was pleased to read the following statements in this article :

As well as IBM, JBoss is also considering getting closer to the ObjectWeb Consortium, home to the rival JOnAS application server. "ObjectWeb has had JOnAS for a long time and it has been the focus to some degree," said Mr Fleury.

"There is no sense for us to support JOnAS but just like we participate in the Apache community, there is no problem with us bringing some professional open source to ObjectWeb. We haven't agreed anything with ObjectWeb yet, but we are looking forward to participating in many, many more communities."

This is a quite nice way to see things :) After all, Open Source is about collaboration so let's collaborate :)

Stéphane TRAUMAT

JOnAS: JOnAS Live

503 server busy


A solution to correct this "problem" under JOnAS is to edit JONAS_BASE/conf/server.xml and increase threads number. More informations at http://tomcat.apache.org/tomcat-5.5-doc/config/http.html.

Stéphane TRAUMAT

JOnAS: JOnAS Live

OutOfMemoryException with CMP beans


Peoples using CMP beans and having lots data often get OutOfMemory exception. By defaut, in JOnAS, the parameter max-cache-size is set to no-limit meaning that there is no limit of instances in memory.. so a good thing is to set it up to a value according youur memory and your number of records in the tables.

Stéphane TRAUMAT

JOnAS: JOnAS Live

JOnAS running on gcj ?


Some peoples in the jonas team are working on making JOnAS works with gcj (especially peoples from Redhat), Andrew Haley from RedHat posted some tests results at http://people.redhat.com/~aph/current-jonas-on-gcj-conformance-test-results.html. They're up to 94.39% !!! To be honest, I won't make JOnAS works with gcj in a production environment but I think initiatives like this one can help to give credibility to gjc.

Stéphane TRAUMAT

JOnAS: JOnAS Live

Tomcat log viewer


I'm searching for a software I haven't found :) I would like to be able to check the Tomcat log files via HTTP. The ideal software would be easy to install, a simple war to diposit and it would allow me to see all the tomcat log files with a simple web browser. Do i have to start a new open source project ? :)

Stéphane TRAUMAT

JOnAS: JOnAS Live

OBJECTWEBCON06 : Call for proposals !


ObjectWebCon06, the next ObjectWeb annual conference will take place in Paris, la Défense, France, from January 31st to February 2nd, 2006.

As an experienced professional of the domain, you are invited to submit proposals in one or more of the following sessions:
- Parallel sessions
- Best use case awards
- Podium talks

More information can be found on the web at http://ObjectWebCon06.objectweb.org/

Stéphane TRAUMAT

JOnAS: JOnAS Live

EJB3 Container in JOnAS


Here is some informations about the work on jonas ejb3 container :
# Alpha version planned for JOnAS 4.7
# Demo by Florent: very good progress ! Transparent Remote aspects (proxy mechanism), Interceptors mechanisms OK, callback listeners mechanisms OK, automatic detection of jars changes and container regeneration, demo of debugging unless the ASM generated code, exploded jar development mode ...
# Used tools: ASM Eclipse plugin, Jade to decompile generated code, ...
# Next steps:
* Meeting next Monday with FT for Persistency Layer Integration
* Resource Injection
* Code of JOnAS interceptors (Transaction, Security, ...), pool mgt for EJB invocations

Florent really works great ! I wish i could employ him ;)
Stéphane TRAUMAT

JOnAS: JOnAS Live

Accessing file system in EJB


J2EE specs forbids EJB to access the file system but it's sometimes necessary. To do so, you can use a fileRA, a project created by two JOnAS contributors. It's an easy and J2EE compliant way to work with the file system. Visit the projet at http://sourceforge.net/projects/filera.

Stéphane TRAUMAT

JOnAS: JOnAS Live

JOnAS Plug-in for NetBeans


A nice guy started a JOnAS Plug-in for NetBeans (http://blogs.sun.com/roller/page/geertjan?entry=jonas_plug_in_for_netbeans). That's a good news, I wish I could have time to help him :(.

Stéphane TRAUMAT

JOnAS: JOnAS Live

JOnAS Day


If you are in France the 5th of January, I recommand you to assists the JOnAS day in Grenoble. This event, organised by Bull is a small seminary on JOnAS with some excellent speakers. For more informations, contact Pierre.Champavere@bull.net.

Stéphane TRAUMAT

JOnAS: JOnAS Live

Developing J2EE applications without Spring? Why?


It took me 6 months to accept the idea of using Spring and give it a try. But now, after 4 months of development with Spring, I can only agree that Spring is great and should be used for any enterprise java development. The use of Spring and Hibernate really eased our work. But still, we deploy our applications in JOnAS to take advantage of J2EE.

Stéphane TRAUMAT

JOnAS: JOnAS Live

JOnAS EJB3 container prototype !


It's christmas :) François EXERTIER announced today that an early protoype of the JOnAS EJB3 container is now available at http://forge.objectweb.org/project/download.php?group_id=5&file_id=5166. You can try the EJB3 container very easily right now on JOnAS 4.6 as soon as you are using a jdk 5, by deploying it as a RAR module. It includes a getting started guide, the RAR and the examples. More details in the GettingStarted.html.

Stéphane TRAUMAT

JOnAS: JOnAS Live

I will speak at ObjectwebCon06


Happy new year to all :) Peace on earth !
I will give a conference at Objectwebcon06 : http://objectwebcon06.objectweb.org/xwiki/bin/Main/DetailedSession#traumat. I hope I will meet peoples there :)

Stéphane TRAUMAT

JOnAS: JOnAS Live

Our Book is available on paper :)


Great news for us ! Our book is now available http://www.lulu.com/content/208730. Thanks to all those peoples who helped us to make it happend !

Stéphane TRAUMAT

JOnAS: JOnAS Live

Back to life :)


I'm back :) It's been a while since I blog but we are quite busy since some weeks... My business is working well and we employed a new guy ! He manages quite well even if it's hard to learn at the same time Ant, Hibernate, Spring, JSF, XDoclet, PostgreSQL :)
Last week was ObjectwebCon06.. It was so nice ! great presentations about EJB3, ESB, XForms... I think everyone was feeling that Objectweb is now a big player with some extraordinary products.

My presentation was fine too... you can download it at : http://www.scub.net/contributions/OWCON06-traumat.pdf. I exported the notes !

Stéphane TRAUMAT

JOnAS: JOnAS Live

Time to say bye to Windows


After several years of Linux evaluation, I found last week a Linux distribution that made me say "Ok, we can now use Linux for my business". And the winner is Ubuntu. In fact, I tested Fedora and Ubuntu with VMWare and I was just amazed of the Ubuntu tools and easiness ! I really wish everyone thinking that Linux is not ready for desktop (Like me one week ago) would try Ubuntu.
In less than one month, all our computers will run Linux. Only one Windows will be left running on a vmware server.
Installing this distribution makes me want to start a company to help peoples run Linux on the desktop :)

Stéphane TRAUMAT

JOnAS: JOnAS Live

Regex to retrive an email address from a mail


This was my problem : retrieve mails from a pop account and save them in a database. But I realised the From field could contain lors of things besides of the email adress ! This is the code I used to only retrieve the email adress :
Pattern pattern = Pattern.compile("[A-Za-z0-9](([_\\.\\-]?[a-zA-Z0-9]+)*)@([A-Za-z0-9]+)(([\\.\\-]?[a-zA-Z0-9]+)*)\\.([A-Za-z]{2,})");
Matcher matcher = pattern.matcher(email);
matcher.find();
email = email.substring(matcher.start(), matcher.end());

Stéphane TRAUMAT

JOnAS: JOnAS Live

Ant tasks to start/stop/deploy... JOnAS


You will find in the JOnAS directory a build.xml file with lots of very usefull tasks like the one to start/stop JOnAS

Stéphane TRAUMAT

JOnAS: JOnAS Live

Page 1 | Next >>