Wednesday April 23, 2008
Insert Witty Irony Herevince kraemer's Weblog
All
|
5 in 5
|
Compile Time
|
Ease of Evolution
|
General
|
GlassFish
|
Gotchas
|
Java
|
Music
|
NetBeans
The internet shows you how small the world is... While web surfing yesterday, I discovered that a woman that shares my daughter's name lives in the house that my paternal grandparent's lived in when I was a kid. It is amazing what you can find out on the internet, randomly. (2008-04-23 21:45:14.0) Permalink Comments [0] I took part in an interview with Geertjan for JavaLobby. The interview went live earlier this morning, but now my fifteen minutes are up. It was a rush. (2008-03-20 09:20:20.0) Permalink While I have been working with the build infrastructure, I have been making some changes to the test agent. Most of them are pretty minor tweaks and bug fixes. The most significant change that I have made is on the main "screen". In the past, all the shortcut buttons, like 'ACK', 'CANCEL' and 'BYE' were always enabled. These shortcuts are now enabled and disabled based on the selected item in the history list.
The state of the shortcuts when a request message is selected.
The state of the shortcuts when a response is selected. I have also extended the Converged Servlet Application to open the test agent automatically, when it is deployed. It isn't much. I hope that it will save users a click or two. I have also spent some time fixing bugs and doing some clean-up, based on the output of FindBugs. (2008-03-19 17:02:49.0) Permalink I helped a co-worker configure his environment (a Sunray) to allow him to clone the NB repository. It actually wasn't very hard. The instructions are in the Netbeans wiki: http://wiki.netbeans.org/HgAndSunrays. (2008-03-18 13:18:39.0) Permalink Directory Deployment from NetBeans to GlassFish I published a teaser entry, where I demonstrated the effect of a code change related to directory deployment that I had pushed a couple days before. Since the entry was exposition "thin", I have gotten some questions about it... After reading through the questions, I figured it would be easy to google up some reference and post them.... Boy, was I wrong! I hope that this entry will answer the questions and be a "hit" for folks interested in NetBeans, directory deployment and GlassFish. The synonym for directory deployment in the JBoss user community appears to be 'exploded deployment'. The synonym for directory deployment in the WebLogic user community appears to be 'deployment of exploded archive directories'. When a project is directory deployed into a web container, like Tomcat, or an app server, like GlassFish, a lot of optimizations can occur.
NetBeans supports directory deployment of Web Application projects to Tomcat and GlassFish. This has been available for quite some time. I found this reference that alludes to directory deployment with NB 3.6 and Sun Java System Application Server 8.0. NetBeans was extended to support directory deployment of ears and ejb-jars onto GlassFish V2 in the NetBeans 6.0 release. The other server integration plugins for NetBeans 6.0.1 or NetBeans 6.1 (recently beta'ed) do not support directory deployment. The recent changes that improve the performance of 'Run Project' and 'Run File' for a JSP file change in web applications and web applications embedded in an enterprise application are available in nightly builds of NetBeans 6.1. I hope to integrate some of the ideas from a blog entry by JFA in the next few days. This will make even more web-app change scenarios faster. (2008-03-17 07:50:53.0) Permalink Some Directory Deployment Improvements Old stuff... ant output from second Run File on a jsp... with no code change in the jsp (or anywhere else in the web app)... init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Incrementally deploying WebApplication137_localhost:4848_server Completed incremental distribution of WebApplication137 Incrementally redeploying WebApplication137_localhost:4848_server Start registering the project's server resources Finished registering server resources moduleID=WebApplication137 While redeploying, trying to stop the application in target server completed successfully While redeploying, trying to remove reference for application in target server completed successfully deployment started : 0% deployment finished : 100% Deploying application in domain completed successfully Trying to create reference for application in target server completed successfully Trying to start application in target server completed successfully Deployment of application WebApplication137 completed successfully run-deploy: Browsing: http://localhost:8080/WebApplication137/index.jsp run-display-browser: run: BAD! The IDE is doing a lot of work that is not necessary that I have to wait for it to finish.... New Stuff... ant output from second Run File on a jsp... with no code change in the jsp (or anywhere else in the web app)... init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: Incrementally deploying WebApplication137_localhost:4848_server Completed incremental distribution of WebApplication137 run-deploy: Browsing: http://localhost:8080/WebApplication137/index.jsp run-display-browser: run: SWEET! The IDE avoided doing the unnecessary work, so I can be more productive! New Stuff... ant output from second Run Project on an Ent App projects that has the web app from the previous tests in it... after the user has changed some content in the JSP.... pre-init: init-private: init-userdir: init-user: init-project: do-init: post-init: init-check: init: deps-jar: deps-j2ee-archive: init: deps-module-jar: deps-ear-jar: deps-jar: library-inclusion-in-archive: library-inclusion-in-manifest: compile: compile-jsps: do-ear-dist: Building jar: /export/home/vkraemer/NetBeansProjects/WebApplication137/dist/WebApplication137.war dist-ear: pre-pre-compile: pre-compile: do-compile: Copying 1 file to /export/home/vkraemer/NetBeansProjects/EnterpriseApplication158/build post-compile: compile: pre-dist: do-dist-without-manifest: do-dist-with-manifest: Building jar: /export/home/vkraemer/NetBeansProjects/EnterpriseApplication158/dist/EnterpriseApplication158.ear post-dist: dist: pre-run-deploy: Incrementally deploying EnterpriseApplication158#/WebApplication137_localhost:4848_server Incrementally deploying EnterpriseApplication158_localhost:4848_server Completed incremental distribution of EnterpriseApplication158 post-run-deploy: run-deploy: Browsing: http://localhost:8080/WebApplication137/ run-display-browser: run-ac: run: SWEET! The IDE was busy, but the time to do all this "work" was almost zero seconds. We may be able to eliminate some of the work from this case, too. (2008-03-12 13:32:39.0) Permalink Comments [1] Love the freshest tooling bits? I wrote up an entry a couple days ago about a new way to get the NBM files that implement the SIP application development support. In that entry I lamented that the process that gets the bits there wasn't very Pragmatic, since it wasn't fully automated and repeatable. Today, I want to let you know that I have extended the build to be a bit closer to a Pragmatic solution. Here is what you need to do....
If you look in SFWS/publish/glassfish/lib/tools/netbeans, you will see the nbm files... built fresh from the source! You should probably note: these instructions are very similar to the Building SailFin without checking out and building Glassfish instructions. Update: 22 Feb 2008... the value for sailfin.build.dependency.order needed to change for the checkout-sailfin step... (2008-02-14 13:16:53.0) Permalink Finding Tools for Sailfin Has Never Been Easier In the past, I have been sending folks to https://sailfin.dev.java.net/servlets/ProjectDocumentList to get the nbms for the SIP development tooling. When the code got updated, I would do a build and stage the bits for folks to use. This created some extra work for me, but was a pragmatic solution at the time. It wasn't a Pragmatic solution, though. I was creating the bits from my personal workspace. I was moving them into position by hand. And that bothered me. I wanted the bits to be in a more accessible location. I wanted to get the bits to get to that "place" through a more controlled and repeatable process. Today, we are half way there! If you get today's nightly build of the project Sailfin code, you will find a new subdirectory tree under lib:
The nbms that implement the SIP application development tooling are all there, ready to be installed into NetBeans. (2008-02-08 10:03:29.0) Permalink Is Javascript the C of the Web Last night, while the wheelers and dealers of MySQL, Sun, Oracle and BEA were signing on dotted lines the tech crowd was at Google's building 43 for the Silicon Valley Web and Java Users group meeting to hear a presentation about GWT.
Bob Vawter's presentation was excellent. He covered the basics quickly and took questions. His presentation provided answer to some of the things that make folks go, "Hmmm", when they look at the output of the GWT compiler.... Like, "What are all those obtuse numerically named files all about?" There was a raffle for a number of books. I won a book. Why does this entry have its title? While Bob was talking about GWT, it reminded me of working at Interactive Software Engineering, now known as Eiffel Software. The Eiffel compiler used a similar "trick" of transforming a strongly typed language (Eiffel) into a weakly typed language (C). From the outside, it looks like GWT is doing something similar with Javascript playing the part of C. Another parallel between GWT and the Eiffel compiler was the amount of optimization it could do. After expressing his sample in a rich language, Java, the compiler optimized almost ALL that richness out of the resulting Javascript code... making it much leaner. (2008-01-16 21:18:17.0) Permalink NetBeans 6.1 and Project Sailfin While work is being done on the modules that let users create and test SIP Servlet applications that can be deployed to a Glassfish domain that has been extended to support SIP, one of my teammates has been working on making these applications "visible". We have also been working on making the choice of which type of server to register in the IDE more obvious. We committed many of the necessary changes over the weekend. If you get a recent nightly build of NetBeans 6.1, you should see the following changes:
I was also able to install the latest available builds of the SIP Application Development module and the SIP Protocol Test Agent module into the NetBeans 6.1 build. There is a fair number of code changes that have been going into NetBeans 6.1 to hit Milestone 1. These changes should finish baking this week. If you want avoid being on the absolute bleeding edge... you may want to wait for the NetBeans 6.1 Milestone 1 release. If you have serious thrill issues: Download, Fire up and Save Often. (2008-01-14 22:40:58.0) Permalink Comments [1] Cannot edit entries on the GlassFish wiki? You may run into this message when you try to edit a page on the GlassFish project wiki site: Forbidden Sorry, but you are not allowed to do that. Usually we block access to something because you do not have the correct privileges (e.g., read, edit, comment) for the page you are looking for. In this particular case, it is likely that you are not listed in the page’s access control list or that your privileges aren’t high enough (you want to edit, but ACL only allows ‘read’). It is also possible that JSPWiki cannot find its security policy, or that the policy is not configured correctly. Either of these cases would cause JSPWiki to block access, too. Better luck next time. You may ask, "Why can't I add or edit a page on the Glassfish wiki site after I have logged in?" Due to spamming and wiki vandals, the folks in the GlassFish project have added an extra step to the authoring process. You may ask, "How do I get permission to add and edit pages on the GlassFish wiki site?" It is explained in a FAQ entry. I hope this entry will provide you with "Better luck next time." (2008-01-11 09:39:14.0) Permalink SIP Application Development Module version 0.4 for NetBeans 6.0 Now that the holiday break is over, it is time to release a new feature in the SIP Application development module: the SIP Listener wizard.
You can find the wizard in the list of items that you can add to a Converged Servlet Application project, via the project's right click menu.
This is what the wizard looks like.
Here is a sample of the code that is generated, if you set the package to "a" and select the SipApplicationSession Listener check box and the SipServletListener check box.
The new build is available in the project's "document list" as version 0.4. It has been tested a bit with NetBeans 6.0 and Sailfin build 15. (2008-01-07 18:48:29.0) Permalink Another Witty Ironic Observation I was looking through the UC Extension, Santa Cruz catalog and discovered a course with a title that just drips witty irony. UCSC has a a counter-culture reputation, so I have to wonder if they were just trying to milk that... or whether this was just one of those Great Moments in Copy Editing. (2008-01-02 21:10:52.0) Permalink I found this message about SIP in my reader today. If you are thinking about doing SIP application development, you might want to look at the capabilities that we are adding to NetBeans to develop SIP Applications and the Sailfin project. (2007-12-31 10:43:15.0) Permalink All's well in Wellington... At Last! After the writer's strike sent my favorite shows dark for so long, I was beginning to despair. But good news came today from a world apart, basking in a summertime glow! My kids are thrilled that their friend may be playing the role of Gandalf once again. They enjoyed seeing Sir Ian McKellen play Lear last spring in Stratford-upon-Avon, but Lear is hard to love... especially when you are 10 and 11. (2007-12-18 21:42:00.0) Permalink |
Calendar
RSS Feeds
All /5 in 5 /Compile Time /Ease of Evolution /General /GlassFish /Gotchas /Java /Music /NetBeans About Me![]() Short Bio SearchLinks
Navigation
ReferersToday's Page Hits: 268 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||