Bistro!
Alexis Moussine-Pouchkine's Weblog
public enum Topic { Java, GlassFish, Tools, Sun, InFrenchInZeText, SDPY }

20080325 mardi mars 25, 2008

SDPY - NetBeans on a diet

Three years ago, I wrote a couple of blog entries ([1], [2]) about the impact of removing features from NetBeans (which was only available as a single bundle at the time) to bring it closer to java editors in memory consumption.

Nowadays, NetBeans comes in a variety of bundles, including some very lightweight ones such at the 26MB Java bundle, the 22 Ruby bundle, or even the 14MB C/C++ bundle. With JavaScript coming in 6.1 we might see even more bundles (although a JavaScript-only bundle wouldn't make a much sense IMO).

( mars 25 2008, 02:29:00 PM CET ) Permalink Comments [3]

20080320 jeudi mars 20, 2008

Sun Net Talk européen sur GlassFish et NetBeans

Un chat est organisé ce mercredi 2 avril à 16h30 (heure de Paris) autour de NetBeans et GlassFish. Détails ici.
Ce sera une première en ce qui me concerne, avec en plus la plaisir de faire ça depuis l'étranger.

Avec la réunion MySQL à 18h00, votre fin journée du 2 avril est donc toute organisée!

( mars 20 2008, 06:08:00 AM CET ) Permalink

20080307 vendredi mars 07, 2008

NetBeans 6.1 beta : fast + openoffice plugin

NetBeans 6.1 beta was released and by playing around with the bits, the performance seems to have quite improved. What had me pretty happy also is the availability from the Update Center of the OpenOffice.org plugin which wasn't previously available to 6.0 developers -

( mars 07 2008, 11:56:36 PM CET ) Permalink

20080212 mardi février 12, 2008

JRuby on rails sur GlassFish - Ca vient!

En Décembre dernier, je présentais GlassFish, NetBeans et JRuby à la conférence Paris on Rails. A la question "Quelles sont les sociétés ayant déjà déployé du jRuby On Rails sur GlassFish?", clairement j'ai répondu qu'il était trop tôt (même si avec l'Open Source on ne connaît pas tous ses utilisateurs et qu'on n'est pas à l'abris de bonnes surprises).

Entre temps Sun, qui a à coeur de "voler sur ses propres avions" ou de "eat our own dog food", a migré son site mediacast.sun.com de gestion de fichiers multimédia qui héberge entre autre le podcast GlassFish vers jRuby on Rails. Bien entendu le tout est hébergé sur un GlassFish v2.

Igor Minar, l'architecte de l'application présente son expérience de projet de manière assez détaillée et surtout de manière honnête je pense. En résumé tout ne s'est pas fait sans mal et il reste des points d'ombre en particulier sur l'empreinte mémoire, mais la stabilité est au rendez-vous.

( févr. 12 2008, 04:01:00 PM CET ) Permalink Comments [2]

20080211 lundi février 11, 2008

Writing OOo extensions in NetBeans 6.0

I've previously blogged and presented about this feature and it stirred quite a bit of interest, so I'm happy to see this interim release for NetBeans 6.0. Juergen was nice enough to share a preview of this and I've had no trouble whatsoever. Try it out and provide feedback!

( févr. 11 2008, 05:39:29 PM CET ) Permalink

20080208 vendredi février 08, 2008

Présentations Solutions Linux - Securité Web Services

Les supports des présentations de Solution Linux 2008 commencent à poindre ici et là sur les sites et blogs. J'ai loupé celle de Sébastien Lévesque (Linagora) qui traite de "Utilisation de services web sécurisés en Java en environnement Open Source.". Il y est entre autre question de GlassFish v2 (Metro/JAX-WS/WSIT) qui est conforme au Basic Secure Profile (BSP) 1.0 et de son outillage NetBeans 6.0.

( févr. 08 2008, 06:01:00 AM CET ) Permalink

20080202 samedi février 02, 2008

Mon SolutionsLinux 2008

Certains ont trouvé Solutions Linux beaucoup plus vivant que l'année précédente, d'autres beaucoup moins. Pour ma part j'ai trouvé ca identique. Les mêmes stands, les mêmes personnes (certaines qu'on ne voit malheureusement qu'une fois par ans). L'année dernière ayant été assez intéressante, j'ai passé l'essentiel du salon dans les conférences (de niveaux très inégales). Quelques commentaires ci-dessous.

Voici mes trois présentations:
OpenESB: Libre, standard, outillé, documenté et supporté (rien que ça!)
SailFin, Serveur de communication Java (SIP pour GlassFish)
OpenOffice, Java et NetBeans (développement d'extensions OOo)

La session "SOA Open Source" était pour moi la plus intéressante et similaire à la session "Java EE Open Source" de l'an passé. Bien entendu c'était l'occasion de voir à quel point il était possible d'avoir une stratégie SOA basée sur du Libre, mais ce qui m'a le plus frappé, c'est que JBI fasse à ce point l'unanimité (même si pour JBoss ce n'est pas encore précisément dans la feuille de route). Quelle différence en 18 mois! J'ai encore le souvenir des discours passionnés voire assassins sur l'inutilité de cette spécification que SCA allait balayer en un rien de temps. Parfois, il faut savoir laisser passer l'orage. SCA est enfin entrée dans un processus de standardisation à l'OASIS, mais les travaux semblent avancer lentement.

Daniel Glazman, fidèle à son rôle d'acteur du W3C, a relégué de manière intéressante OpenOffice Impress au rang de logiciel inutile puisque l'on peut tout faire avec les standards du Web, oubliant au passage l'existence d'ODF. Ceci dit, un bon orateur qui connaît son sujet c'est toujours appréciable. Etonnamment, la présentation sur Enterprise 2.0 n'a pas mentionné Open Social, l'initiative de Google pour proposer une API standard pour les logiciels et sites "sociaux" ni sont implémentation open source chez Apache: Shinding. A ce sujet d'ailleurs, je pense qu'il y a des intersections non-vides avec un projet comme Sailfin dont la vocation est d'apporter SIP et la VoIP dans l'entreprise pour toutes sortes d'applications.

Etant relativement vierge de connaissances Telco, j'ai appris pas mal de choses dans la session du même nom. Un des enjeux semble être la convergence entre XMPP et SIP, le premier étant quand même souvent perçu comme n'ayant pas encore obtenu ses galons de technologie d'entreprise alors que SIP est partout et ne se limite pas à l'établissement de communications (présence, ...). La présentation OpenSER m'a permit de voir ce que Sailfin pouvait apporter dans l'intégration avec les applications back-office au delà du rôle de proxy.

La session développeur m'a permis de voir ce à quoi HTML risquait de ressembler et la relative avance d'un Safari en la matière (copier/coller par exemple). Le sujet de l'offline semble aussi important que polémique et Google pas forcément accueilli les bras ouverts avec sa solution Gears pourtant qualifiée de proposition de standard lors de son lancement. Coté support audio et vidéo, je ne vois malheureusement pas comment les brevets sur le différents codecs peuvent permettre l'utilisation massive de ses nouvelles fonctionnalités.

L'intervention de Philippe Prados était très intéressante à plusieurs titres. Tout d'abord Philippe est un très bon intervenant et son discours très clair. Sa présentation sur le besoin de séparer la logique métier de toute considération de configuration de ressources externes sentait clairement le vécu mais le vécu avec un type de serveur d'application donné (Tomcat/JBoss). Je pense d'une part que GlassFish est différent (outil, console, ...) et d'autre part que des solutions (des produits en réalité) de provisioning multi-niveaux (serveurs web, appserver, SGBD, etc...) existent déjà. Enfin, la solution qui consiste à utiliser JNDI pour centraliser la config d'un cluster c'est faire le boulot à la place sur serveur d'application. Là aussi, je vous renvoi vers GlassFish et son architecture d'administration centralisée. Ceci dit, il y a certainement des progrès à faire dans la spécification Java EE coté packaging. Java EE 6 en a prévu quelque uns.

RDV l'année prochaine avec, espérons le, les perceuses en moins et le café en plus.

( févr. 02 2008, 01:45:18 PM CET ) Permalink Comments [8]

20080128 lundi janvier 28, 2008

Solutions Linux - OpenESB, Sailfin, OpenOffice, GlassFish

Solutions Linux porte très mal son nom, mais c'est une bonne conférence. J'y interviens sur trois sujets cette année (ça m'apprendra à soumettre 5 papiers!):
- OpenESB: Libre, Standard, outillé et supporté.
- OpenOffice, Java et NetBeans
- SailFin: Serveur de communication Java.

Présentations en cours de finalisation.... et disponibles ici en fin de semaine pour ceux qui ne viennent pas à la conférence. Pour les autres, il devrait y avoir une démo pour chaque présentation.

( janv. 28 2008, 02:08:22 PM CET ) Permalink

20080121 lundi janvier 21, 2008

Grenoble Software Event Report

I'm back from our Grenoble Sun & Partner Software Event. The attendance was fairly high with 190 (initial goal was 100) from 20 European countries. Attendees seemed to enjoy the presentations, the interactions with the speakers and the overal networking (of course, having this event in the heart of the French Alps was enjoyed by many). Kudos to Dominique for driving the effort for the overall event!

A lot of people (mainly partners) realized how much progress GlassFish has made and how competitive it's become wrt commercial products (in addition to Open Source competitors). My presentation slides are available here.

During the GlassFish breakout session we had some interesting discussion about whether Tomcat was competition to GlassFish or not (I think it is). One partner even questioned the future of Tomcat given what he considers as its lack of corporate backing. Others had more advanced questions related to their use of GlassFish in production (connection pools' ability to cope with failing database, ability to update default web apps deployed at the root web context) as well as some naming suggestions ;)

Of course, we also discussed the BEA acquisition by Oracle as well as the MySQL announcement. The overall impression was that both were very good news for Sun. Weblogic is a great product but the acquisition has Gartner's Pezzini suggesting postponing investment in BEA (FR_fr) for the moment. MySQL is seen as an ideal complement to GlassFish although the price paid, and previous investments to PostgreSQL or JavaDB were expressed as concerns. Jonathan's latest "Vortex" and Josh Berkus' blogs explain how this is only a validation of the Open Source Database previous investments. I don't believe databases can be compared to application servers anyhow and mySQL/JavaDB/postgreSQL sounds like a perfect combinaison to cover the full spectrum. Finally, while I like the "Oracle is buying the past while Sun is investing in the future", that too is over simplified.

There was also GlassFish-related content from Roman, Jason, and others (identity).

Paul Sandoz being local he obviously presented on REST/JAX-RS/Jersey and looking at the surveys, he was *very* successful in getting interest from the majority of participants. His presentation was a nice combination of REST concepts, JAX-WS introduction and Jersey demos.

I had a very nice diner with Paul and Roman Strobl with local Fondue. Roman failed to join OpenDS's Ludovic Poitou and myself on the next day for skying but his fellow Czech citizen Kamil (a GlassFish and NetBeans happy camper) didn't. Best snow and weather in a long time!

Overal, a great experience for what really seemed to be a Sun & Friends Software User Group event.
(event photos courtesy of Ludo)

( janv. 21 2008, 11:44:21 AM CET ) Permalink

20071218 mardi décembre 18, 2007

Software in Grenoble in January


In now less than a month (January 15th-18th 2008), Sun is holding a Software Technical Event in its Grenoble Engineering Center.

Grenoble is in the Alps (Ski anyone?) and a 3-hour fast train ride away from Paris. This is a FREE event to get up to speed on many different software products and open source technologies from Sun.

Registration is happening now by sending a mail to gec-event@sun.com. You do not have to attend all 4 days. Days 1 & 2 are focused on Sun Secure Global Desktop, Sun Ray and Virtual Desktop Infrastructure, while days 3 & 4 are a bit broader in scope - OpenSolaris, Glassfish, NetBeans, OpenDS, OpenESB , xVM, OpenJDK, OpenDMK, Identity Management, Federation Management, Java CAPS ...

Everything else about the event:
http://fr.sun.com/sunnews/events/2007/nov/grenoble/index.jsp

( déc. 18 2007, 04:00:00 PM CET ) Permalink Comments [5]

20071203 lundi décembre 03, 2007

NetBeans 6.0 disponible

NetBeans 6.0 est disponible en version finale. Félicitations à l'équipe!

C'est véritablement une version très importante pour plusieurs raisons. L'intégration de fonctionnalités dans un seul produit sans recherche de la bonne combinaison de plugins était déjà un élément différentiant pour NetBeans. Désormais, puisque tous les outils de développement de Sun sont open source, inutile de scinder l'offre en produits différents. Avec NetBeans 6.0, il n'y a même plus de "packs". Tout est une question de plugins choisis à l'installation ou au travers de l'update center.

Ainsi l'installeur peut varier de 11Mo à 169Mo. Je prends habituellement le bundle de 21MB (Java SE) et je rajoute les fonctions qui m'intéressent (Java EE Web, GlassFish, JAX-WS, WSDL, ...). Pour ce qui est des fonctionnalités supplémentaires, avec une offre complètement Libre, on trouvera de quoi faire du développement Swing (Matisse, désormais avec le support des JSR 295 et 296 pour le binding le l'application framework), Java ME (CLDC et CDC), le profiler, UML 2.0, support C/C++, support PHP, SOA (éditeur BPEL, mappeur XSLT, applications composites, etc.

Pour autant, il y a aussi beaucoup de nouveautés. En particulier l'éditeur de code a été complètement réécrit pour permettre de meilleurs refactorings, le support de nombreux langages au delà de Java et une utilisation d'écriteurs imbriqués (JavaScript dans JSP, Java dans PHP, ...). Il y a aussi le support de nouveaux langages et en particulier pour Ruby et/ou JRuby on Rails. JavaScript, PHP, Groovy et d'autres ne sont pas loin derrière.

Pour autant il existe de nombreux plugins pour étendre les fonctionalités de NetBeans 6.0: GWT, Maven, DTrace, JavaFX, JAX-RS/Jersey, WebLogic, WebSphere, Mercurial, import projets Eclipse/JBuilder, JMeter, JasperReport, Scala, Echo2, Facelets, Tapestry, Grails, Wicket, OpenOffice, etc...

Quelques liens pour aller plus loin:
• http://www.netbeans.org/features/ide/index.html
• http://www.netbeans.org/features/ide/editor.html

• http://www.netbeans.org/features/web/java-ee.html
• http://www.netbeans.org/features/web/web-app.html
• http://www.netbeans.org/features/web/web-services.html
• http://www.netbeans.org/features/soa/wsdl-xml.html
• http://www.netbeans.org/features/soa/index.html

( déc. 03 2007, 10:13:59 PM CET ) Permalink

20071126 lundi novembre 26, 2007

NetBeans 6 fcs pretty soon now

I like having the community vote before shipping a major release. Sounds like NetBeans 6.0 Final is around the corner now... If anything, this one is a major release.

( nov. 26 2007, 05:31:55 PM CET ) Permalink Comments [3]

20071116 vendredi novembre 16, 2007

VisualVM - NetBeans Platform powered

It's been almost three years that I first mentioned the NetBeans platform. The technology has since grown to be a first-class citizen in the NetBeans and Java worlds (with tooling support and books). The main difference with Eclipse RCP remains - NetBeans Platform is 100% Java/Swing.

VisualVM is a recent (and early) development based on the NetBeans Platform. It strikes an interesting balance between monitoring (a la JConsole), profiling (a la NetBeans Profiler, including a heap walker), and troubleshooting (new in Java 6). The platform is worth about half the application size, startup time is less than 5 seconds, and the application has a very professional look. The update center inherited from the platform isn't functional just yet, but I can certainly see the value of this for future versions and plugins to extend the feature set.

If you're in a Java 6 world, everything is really easy except maybe for profiling server-side applications which requires a fairly long time for the dynamic instrumentation to happen. Just like for JDK tools, VisualVM can also work on a remote process or a core file. More on VisualVM here.

( nov. 16 2007, 10:34:54 AM CET ) Permalink Comments [2]

20071114 mercredi novembre 14, 2007

Paris on Rails

Si vous suivez un peu l'actualité à la fois de Sun et de Java vous devez savoir que l'heure est à l'ouverture en matière de langages au dessus de la JVM et que Ruby et Ruby On Rails (RoR) ayant le succès qu'on leur connait, jRuby et jRubyOnRails sont deux implémentations qui illustrent ce mouvement.

Sun Microsystems est sponsor de la seconde édition de Paris on Rails et j'y serais pour présenter jRuby, le support dans NetBeans et le déploiement de jRubyOnRails dans GlassFish (avec ou sans goldspike). Rendez-vous donc à la cité des sciences de la villette le 10 décembre 2007 à 15h30.

Qui sait, NetBeans 6.0 sera peut-être sorti d'ici là en version finale...

( nov. 14 2007, 10:19:00 PM CET ) Permalink Comments [1]

20070827 lundi août 27, 2007

Adapting JasperReports IBM sample application to Open Source NetBeans/GlassFish/JavaDB stack

I recently got a request from a user trying to run the code from this web developerWorks article on using JasperReports and Velocity with the IBM stack (RAD, WebSphere, DB2). So these are the short instructions on how to (slightly) adapt it to the Open Source NetBeans/GlassFish/JavaDB stack:


•  Create and populate the database

You can do this using the command-line using ij but NetBeans has a nice visual tool all we need.

- Make sure you have the Java DB Installation and Database Location set properly (Tools>JavaDB>Settings).

- Create a database called 'reportdb' with any user/password you'd like (just remember them...)

- Connect to the newly created database from the "Databases" node in the "Services" tab ("Runtime" in NetBeans 5.5.x)

- Create the tables and populate them by copy/pasting the SQL code from create-db.sql and simply removing the create and connect first two instructions as well as the closing disconnect instruction.


•  Create the DataSource

From the GlassFish admin console, navigate to Resources>JDBC>Connection Pools to create a new pool with the following attributes:
- JavaDB driver
- javax.sql.DataSource
- reportdb database name
- whatever the user/password you used to create the database.
- remove the SecurityMechanism attribute.

At this point you can ping the connection database to make sure all is ok. The JDBC Resource can then easily be created for this pool with the JNDI name "jdbc/reportDB" as specified in the article.

The alternate approach is to use the following commands:
asadmin create-jdbc-connection-pool and
asadmin create-jdbc-resource .


•  Deploy and run the application

Deploying the application can be done using the web admin tool, asadmin deploy, or simply by dropping the EAR archive file in the domains/domain1/autodeploy directory. No change is needed for this archive. All the IBM-specific content is safely ignored by GlassFish. Since there is no explicit context-path specified in the web.xml from the WAR file, the application is then available from http://localhost:8080/JReportsWEB/


Note that deploying an EAR archive containing a WAR file will not have it (the war file) appear under the Web Application section. This is by design (a feature, not a bug). You can see the war file as an EAR sub component in the admin UI and the content of its web.xml in the associated "descriptor" tab.

I'm not sure why the sample code from the article is packaged as an EAR file and not a simpler WAR archive. You can also manually extract the WAR file and deploy it. This developerWorks article isn't particularly new but it's interesting the see how easily this all works in a second-generation Java EE 5 application server with no modification.

You can go one step further with the NetBeans Jarvis module (discussed here). This article on JasperReports in NetBeans is probably also of interest.
JasperReports (now in version 2.0) and GlassFish stories are here and a book for "Java EE 5 Development using GlassFish Application Server" is also on its way.

( août 27 2007, 10:16:48 AM CEST ) Permalink


GlassFish Podcast
Get GlassFish V3
Support GlassFish Enterprise

Today's Page Hits: 581




bea conference glassfish ips java javaee javaee6 javafx javaone javazone jug mysql netbeans openesb openoffice opensource paris performance pkg podcast presentation sdpy spring sun swing techdays tips updatecenter v3 webservices
Links