The Source for Java Technology Collaboration
User: Password:



Ludovic Champenois's Blog

Community: NetBeans Archives


PHP talk at a Java conference?

Posted by ludo on June 20, 2008 at 08:58 AM | Permalink | Comments (2)

Bonjour,

Next week, I'll be in Zurich for the Jazoon conference with the GlassFish crew. This is a Java conference, and I'll be talking about....PHP and OpenSolaris and the OpenSolaris WebStack (Apache, MySQL, PHP,...). What!!! PHP at a Java conference? Am I crazy?

I hope not. OpenSolaris 2008.05 is not your father's Solaris. It is something I can use and it comes with a modern AMP stack. So what is the relationship with Java then? Well, since I am a GlassFish developer (and NetBeans developer, and Eclipse developer), I'll be talking about the possible integrations of the AMP stack and GlassFish:
  • Configuring the OpenSolaris Apache and GlassFish with mod_jk to have parts of your Apache web site served with GlassFish
  • Configuring the PHP-Java Bridge on OpenSolaris to extend your PHP applications with 'legacy calls' to Java processing performed under GlassFish
  • Using daily builds of NetBeans 6.5 that have killer support for:
    • Editing and debugging JavaScript
    • Creating PHP project, editing and debugging PHP files with the OpenSolaris AMP stack. Yeahhh! NetBeans can do PHP!
    • Adding jMaki Ajax snippets into PHP projects
    • Using GlassFish V2 and V3 (V3 plugin is *now* part of the NetBeans 6.5 builds) Java EE project to demonstrate the PHP-Java interoperability
Jazoon   And on Monday, we will host a Jazoon GlassFish day, so if you are around, please stop by and ask as many crazy questions you want. The GlassFish team will be there and well represented. Thanks Alexis for organizing this GlassFish day.

Next stop will be Ajaccio and Britany, but definitely not for work:-)

Ludo


My my, hey hey Rock and roll is here to stay

Posted by ludo on May 02, 2008 at 08:35 PM | Permalink | Comments (0)

My my, hey hey
Rock and roll is here to stay
It's better to burn out than to fade away
My my, hey hey

Out of the blue and into the black
They give you this, but you pay for that
And once you're gone, you can never come back
When you're out of the blue and into the black

The king is gone but he's not forgotten
This is the story of Johnny Rotten
It's better to burn out than it is to rust
The king is gone but he's not forgotten

Hey hey, my my
Rock and roll can never die
There's more to the picture
Than meets the eye
Hey hey, my my



If only this page could also play the music...

CommunityOne JavaOne 2008

Posted by ludo on April 30, 2008 at 09:44 AM | Permalink | Comments (0)

Bonjour,

Here comes the JavaOne/CommunityOne craziness again next week. The conference week will mark the end of long hours and days of preparation in many different topics:
  • OpenSolaris Indiana Web Stack integration (Apache, MySQL, PHP)
  • GlassFish V3 TP2 
  • GlassFish V3 TP2 plugin for NetBeans 6.1 (for Web Applications and jRuby On Rails Applications)
  • GlassFish V3 TP2 plugin for Eclipse 3.3
  • jMaki version 1.8: Plugins for NetBeans(JSP, PHP, Ruby, Phobos) and Eclipse (JSP)

OpenSolaris Indiana Web Stack integration (Apache, MySQL, PHP)

I'll be presenting to the CommunityOne OpenSolaris Sessions the current status of AMP support in the brand new OpenSolaris distro. Details here. Topics will be Apache, MySQL, PHP support in Indiana, NetBeans PHP support, IPS repository support, Desktop Integration, possibly PHP Debugging on OpenSolaris, and Dtrace Support.

ishot-136.png


CommunityOne is on Sunday, May 4th, the day before JavaOne.  Here is the list of talks for the OpenSolaris track:

  • Getting Started with OpenSolaris; New Features & Building OpenSolaris Packages -- David Comay, Stephen Hahn
  • OpenSolaris Operating System and SAMP (Solaris OS, Apache, MySQL, PHP) Support for Web 2.0 Development: Developer Experience -- Ludovic Champenois, Jyri Virkki
  • A Student and New User View of the OpenSolaris OS -- James Hughes
  • Develop, Consolidate, and Manage Virtual Environments entirely in Open  Source -- Achim Hasenmueller, Joost Pronk
  • OpenSolaris Operating System for Intel: Present and Future -- David Stewart, Intel Corporation
  • The OpenSolaris™ Operating System and Storage -- James Hughes
  • OpenSolaris™ Operating System and Wireless Networking Advances -- Geeta Krishna, Intel Corporation
  • OpenSolaris™ Installfest: Get it NOW!
There will be an after party at Moscone Center this sunday (May 4th).
From 6-8pm, there will be a CommunityOne event featuring OpenSolaris at Moscone in SF which featuring a live DJ and have a Cinco De Mayo theme.

I'll be also talking for the CommunityOne GlassFish track:
  • S295418 - Tools for GlassFish V3 (Java EE Platform and Scripting Environment) -- Ludovic Champenois, Vivek Pandey
Of course, GlassFish V2 is available in the OpenSolaris IPS repository:

ishot-155.png


You can use the Package Manager GUI to download GlassFish V2 in Opensolaris:

ishot-156.png

GlassFish V3 TP2

Glassfish V3 is the next version after the excellent GlassFish V2...Duhhh...But wait OSGI support, , EJB inside Web Applications (yes, not in EJB Modules), JPA with EclipseLink JPA provider, jRuby on Rails Applications support, Phobos support, Jython/Django, Groovy (with JSF/Groovy support...wait for some killer demos), IPS based update Center, NetBeans support, Eclipse support, ANT support, Embed ability support, sub second startup time, Cometd support (lots of cool demos at JavaOne), Jersey RestFul Web Services support, jMaki support, already really good web performance (thanks Grizzly and Java NIO, thanks!)...


      ...
      Apr 9, 2008 8:44:48 PM 
      INFO: Created and Initialized container: ejbName: NewSessionEJBBean
      Apr 9, 2008 8:44:48 PM com.sun.enterprise.v3.deployment.DeployCommand execute
      INFO: Deployment of WebApplicationWithEJBs done is 638 ms
      ...


GlassFish V3 TP2 plugin for NetBeans 6.1 (for Web Applications and jRuby On Rails Applications)

NetBeans 6.1 IDE just shipped, but wait.... go the the Update Center, and download the GlassFish V3 TP2 plugins, one for Java EE support, one for the jRuby on Rails projects to get all the incredible Java EE or jRuby developer features that are packed in the IDE with a V3 target... You cannot beat NetBeans 6.1 for Java EE and Ruby features, no way!!!

ishot-154.png

GlassFish V3 TP2 plugin for Eclipse 3.3

For the Eclipse enthusiasts, GlassFish V3 TP2 server has a plugin as well, so that you can develop Dynamic Web Projects (via WTP) and deploy/debug them with a GlassFish V3 target, including JPA EclipseLink database applications.  Or and if you recall GlassFish V3 TP2 is OSGI based, then, you'll understand a bit more this screen showing GlassFish OSGI modules running embedded inside the Eclipse IDE:


GlassFish V3 TP2 running embedded inside Eclipse 3.3

See the list of OSGI bundles in this "About Eclipse" dialog:

ishot-153.png


jMaki version 1.8: Plugins for NetBeans(JSP, PHP, Ruby, Phobos) and Eclipse (JSP)

The new jMaki plugins for NetBeans 6.1 and Eclipse will show up later this week on the update centers or the https://ajax.dev.java.net site


So, I guess you have now a sense of the crazy days before CommunityOne and JavaOne. Hope to see you there in person next week,

Merci,
Ludo

Web Stack in SXDE

Posted by ludo on February 05, 2008 at 07:42 AM | Permalink | Comments (1)



Hi,

today, Sun is releasing a new version of Solaris Express developer Edition (SXDE) that you can download for free at http://developers.sun.com/sxde
The reason why this release is significant is that for the first time, a complete Web Stack is integrated and ready to use after the installation of the operating system (DVD or VMWare image) on your laptop of desktop.
This release includes the latest tools (NetBeans 6.0 and NetBeans PHP support, Sun Studio), and technologies (JDK 1.6, Apache 2.2, PHP 5.2.4,  MySQL 5, PostgresQL 8, Ruby, GlassFish Java EE 5),  to create applications for the Open Solaris OS, Java Application Platforms, and Web 2.0.

I've created a screencast that explains how to initialize the Web Stack for a Solaris Desktop user, how to start the Apache2 and MySQL servers, how to administer the stack, how to create and run a simple demo, how to use the NetBeans PHP IDE to create, deploy and debug PHP applications, all these steps done in a rushing 10 minutes. So fasten your seat belt.

ScreenCast available here.

Now if you do not have the time or the bandwith to watch the screen cast, you can view a few images taken from the screencast below:

Default Welcome page in Firefox (bundled) for SXDE 1/08:


ishot-100.png

Desktop Menu to Initialize the Web Stack:


ishot-101.png

Desktop Menus after the initialization of the Web Stack:


ishot-102.png

Web Stack Options UI console:


ishot-103.png


Registering a MySQL database connection in the NetBeans PHP IDE:


ishot-104.png


Running a PHP Project via the NetBeans PHP IDE


ishot-105.png


Debugging a PHP project int he NetBeans PHP IDE:

ishot-106.png



As you see, it is so simple that I was even able to create a debug a PHP application is less than 10 minutes. So give it a try, this is going to be a great year for Open Solaris and Web developers.
Install SXDE 01/08 (free  at http://developers.sun.com/sxde) on your desktop or laptop, using VMWare  (Mac, PC,...) or not, and give it a try,

Ludo



PHP SXDE jMaki

Posted by ludo on November 04, 2007 at 09:51 AM | Permalink | Comments (0)

Bonjour, comment 13949712720901ForOSX?

Today, i would like to highlight some good progress on 2 projects  I am involved in. The first one is about jMaki, with the announcement by Greg Murray of the jMaki Charting components. So simple to use - a given for jMaki components-, controllable via multiple server languages -Java/JSP, Phobos/JavaScript, Ruby/JRuby, and of course PHP, and toolable...

Here is an sample of what you need to write in PHP

<?php
  $value = "{
    xAxis : {
        title : 'Months',
        labels : ['January', 'February', 'March', 'April', 'May',
                  'June', 'July', 'August', 'September',
                  'October', 'November', 'December']
        },
    yAxis : {
        title : 'Temperature',
        tickCount : 3
     },
    data : [
       {  color: 'red',   
          values : [10, 25, 25,  5, 35,  5, 15,  5, 10, 15, 25, 30] },
       {  color: 'blue',  
          values : [15, 35, 15, 40, 40, 15, 20, 10, 15, 20, 30, 35 ] },
       {  color: 'pink',  
          values : [20, 40, 30, 35, 45, 20, 25, 15, 20, 25, 30, 40] },
       {  color: 'gray',
          values : [25, 45, 25, 45, 50, 25, 35, 25, 25, 20, 35, 45] }
       ]
     }";
    
    addWidget( array(
        "name" => "jmaki.charting.dojo.area",
        "value"=>$value
       ) );
?>

to produce a chart looking like this:

jmaki

The second one is Solaris Express Developer Edition (SXDE),  a free, quarterly release of Sun's next generation Solaris Operating System built from the source code repository at OpenSolaris.org. The release includes the latest tools, technologies, and platforms to create applications for the Solaris OS, Java Application Platforms, and Web 2.0.
The current release of SXDE (09/07) shipped last month, and and I working on the one that will ship in 01/08, before morphing to Indiana. The 01/08 SXDE release will contain a brand new and optimized SAMP (Solaris, Apache 2.2.4, MySQL 5.0, PHP 5.2.4) stack, and NetBeans 6.0 with the early access plugins for PHP project support. SXDE PHP support will contain the xdebug PHP debugger and you'll even be able to set breakpoints in your PHP code with the NetBeans PHP debugger, as seen in this SXDE screenshot:



ishot-21.png



In short, with the new SXDE system, you'll get the leading edge version of Solaris, and Firefox, Thunderbird, StarOffice, Sun Studio, NetBeans 6.0, a complete SAMP stack and the tools to develop SAMP applications...in one single OS installation...Pretty nice. Next step for SXDE will to be produce the components that will be delivered in Indiana, an OpenSolaris distro , available in preview mode, as a live CD...Things are shaking up in the right direction for Solaris, and you -Mister Developer- should really have it on your radar...

Ludo

jMaki 1.0 is out...

Posted by ludo on September 25, 2007 at 10:57 AM | Permalink | Comments (0)

Bonjour, Comment Java?

jmaki logo jMaki 1.0 is out! All features are in.


jMaki is an Ajax framework that provides a lightweight model for creating JavaScript centric Ajax-enabled web applications using Java, Ruby, PHP, and Phobos.

Ant, NetBeans 5.5, NetBeans 5.5.1, NetBeans 6.0 Beta 1 and above, Eclipse 3.3/WTP 2.0 are all supported.

Check it now,
Ludo

GlassFish V2 in Netbeans 6 Beta 1 today...

Posted by ludo on September 17, 2007 at 10:33 AM | Permalink | Comments (2)


Bonjour, comment Java?

GlassFish V2 released today, and is already bundled in the NetBeans 6.0 Beta 1 also releasing today...
GlassFish V2 is the second major release of the Java EE 5 application server, with more features packaged per byte than ever...
And still, a bundle with the NetBeans 6.0 Beta 1 that provides complete Java EE 5 developement environment is less than 100Mb...
download
95Mb... Hard to beat!. And with this you get kick ass performances: 883.66 JOPS@standard which is the best SPECjAppServer 2004 on T2000...

JPA everywhere (J2SE projects, Web Projects, EJB Modules), Java DB included, fantastic Java EE 5 Web Services support, debugger, profiler, http monitor, comprehensive web console, all in only 95MB dowload..
Try it now,

Ludo


jMaki returns from vacation...

Posted by ludo on July 31, 2007 at 06:08 PM | Permalink | Comments (1)

Bonjour, comment Java?

1
1jMaki went for some vacation in Corsica, close to Ajaccio, the Ajax city. jMaki really enjoyed the break, far from the work environment, even if jMaki could not resist checking Email once a day in cyber cafes in front of the magnificent Ajaccio gulf.

Meanwhile, around the globe, engineers were still actively adding features and docs, for example:
  1. jMaki Actions
  2. jMaki Data Models
  3. Screencast #Web3: jMaki in Eclipse 
  4. Screencast #Web2: jMaki on Rails for Dummies 
  5. jMaki - Accessing External Services 
  6. jMaki "SpeedGeeking" 
  7. jMaki on Rails - Updated for NetBeans 6 M10 
  8. Dynamic Data in jMaki Widgets Using JPA 
  9. Screencast #Web4: Creating Mashups with jMaki - Display RSS feed in jMaki Widgets 
and presenting to the Ajax Experience conference, and making the top page on the Ajaxian portal.
2

3

It was good for jMaki to return to its roots (Ajaccio) and relax a bit to prepare a big come back:
A bientot, 
Ludo

ps: my iPhone has a date with my Newton tonight, and I don't want to miss that:)




Phobos Editor in NetBeans 6.0

Posted by ludo on June 06, 2007 at 09:11 PM | Permalink | Comments (2)

Bonjour, Comment Java?

Why is it only under pressure that 'things' can get done? Today, I was working more or less in parallels on a  jMaki NetBeans update, a new Phobos update,  an improved NetBeans 6.0 GlassFish V3 plugin, a new GlassFish V3 Eclipse 3.3 plugin, an update of the Eclipse jMaki plugin to also support Java EE 5 web apps, downloading the Eclipse WTP 2.0 RC2, building NetBeans 6.0 daily from source (big big changes coming, mosly good stuff in preparation for Milestone 10), and then my manager asked me an innocent question regarding Phobos:
  • "Since Phobos is all about JavaScript on the Server Side and on the Cient side, how can you make the difference when a user is editing an EJS (Embedded JavaScript) page that contains both server and client JavaScript?"
Ouch...He had a good point...NetBeans 6.0 has an EJS editor on its update center, pretty good so far, but you could not find easily if a JavaScript statement was for the server side or the client side... I just updated this EJS editor so that the background color would be different (Client or Server), as seen in the following image:

1 2
 

You'll notice also that all the Phobos libraries (library.*) are available via code completion, thanks to Roberto that can produce a code completion database in JSON format via a Phobos tool... The documentation is also online at: https://phobos.dev.java.net/nonav/apidoc/javascript/index.html
and in the NetBeans editor.
All this work has to be done before I go on vacation, back to France in Ajaccio (Corsica) and Bourg de Batz (Britany), 2 of the nicest places on earth.

A Bientot,
Ludo


Bugs, bugs, bugs...

Posted by ludo on May 26, 2005 at 09:21 PM | Permalink | Comments (4)



Bonjour, comment Java?

Bugs, bugs, I see dead bugs walking...Yes, new JSRs are created every month... Yes, every day, new products, patches, update releases, dot dot releases, hot fixes are shipping, and bugs as well....
Kazem, my friend (I create bugs, and he finds them), has a little secret. He is also a talented bug cartoonist. If you like the selection on this page, make sure you see them all from his hilarious blog http://blogs.sun.com/kazem
farewell
features Do you remember your first bug?
First Mozilla bug: 507
First Netbeans bug: 1401
First Eclipse bug: 1518
First Java bug: 1183103
First Java bug assigned to Gosling: 1184392
(According to the Sun bugtraq system in the Java category).
The document used for this bug still exists under this link  ncsa icon


Engineers. QE, RE, Doc writers: can you share your funniest bugs?

Ludo




NetBeans, SPECjAppServer2004, Visual GC, ANT, JBoss and Demi Moore

Posted by ludo on April 21, 2005 at 04:35 PM | Permalink | Comments (0)

That's it, NetBeans 4.1 is now in Release Candidate state. It means that the code is frozen, and only a handful (or less) of bugs will be fixed. To benefit from the out of the box experience in J2EE land, make sure you download the co-bundle with the J2EE 1.4 Application Server. This Application Server, in its standard edition,  announced today a Best-In-Class Price/Performance result for the SPECjAppServer2004 benchmark.

The same day, the profiler module team announced the support for the Visual GC tool  from J2SE 5 or 6 (after a download of the jvmstat technology). This tool can attach to an instrumented HotSpot JVM and collects and graphically displays garbage collection, class loader, and HotSpot compiler performance data. visualgc2.png


On top on that, the Java Swing team announced a fix for a Swing issue that removes the 'flashing' redraw effect, and makes NetBeans UI as responsive as native applications...As  a side effect, it also means that NetBeans 4.1 works like a charm with J2SE 6 builds. Of course you can still create J2EE 1.4 compliant applications by selecting the correct Source level, as seen in the attached image.

To conclude, if you want to know more about NetBeans 4.1, ANT support,  and Demi Moore, (and more, like http monitoring and JBoss support), you have to read this nice blog (Entry from 20050421).

Ludo

j2se16.JPG








Java 10 years...

Posted by ludo on April 17, 2005 at 08:13 AM | Permalink | Comments (2)

"Bonjour, comment Java?"

Java is turning 10 this year... I was told that before being made public, the project was killed several times. Maybe due to lack of product requirement documents, or non-existing VOC (voice of customer), but anyway, Java was not a death march project and millions of users and developers can now enjoy its benefits. A nice Java timeline document, describes the chronology of events in the history of Java.

It's good to see there is some internet memory under http://sunsite.nus.edu.sg/java/... Imagine, you can still download the JDK 1.1.6 for Windows 95/NT4.0 - 8,230,260 bytes. What a good deal...

Another historical landmark is the Java Workshop (downloadable from the site above), the ancestor of all the Java IDEs written in Java (no need for extra binary DLLs or the like), or the priceless Java Language tutorial for 1.0 JDK.

Do you remember bug 1212188?
Bug ID: 1212188
Synopsis: System.out.println(new Date()) gives different results on DOS and UNIX
Category: java:classes_java
Reported Against:1.0alpha3
UNIX results: Tue Jun 27 13:34:37 PDT 1995
DOS results: Tue Jun 27 13:34:37 1995
Note that DOS does not print the time zone.


Already our Java engineers were obsessed by cross-platform portability, even working during regular lunch time (1:34 PM), on multi systems, clock synchronized to produce similar output, precise at the second.

I wish I could download (and install and build and run), all the software ever created, including their source code repository and build instructions...I wish I could read all those funky comments in source code or check in notices, that our lawyers force us to remove before we move existing close source code to open source repositories. Maybe one day this will be available from the Computer History Museum? Too bad my garage is too small, but I still keep  unopened boxes of "Java Studio, and "Java Workshop" both 1997 vintage. "Ripe and supple with spicy vanilla aromas and moderate tannins, it is the perfect accompaniment to grilled developers and program managers..." No way I will open them. I'd better open a Chateau Meyney instead for my diner:-). As opposed to wine, software does not turn better without new releases...
If you want to share your good memories, post a comment...

Ludo





Powered by
Movable Type 3.01D
 Feed java.net RSS Feeds