feeds2read
Latest Flows from this sub-category:
ShopDigitaleTV.nl - Digitale TV reviews

Interior Decorating School

RaddWrites - Associated Content

Arfandia :: Online Blogs

The Best PC Games,MoVies,Softwares 2008

Videos Youtube

codevalley

Adam Smith blog

Wildwobby

Teckh

random selection from this sub-category:
HOME Linksverzeichnis by anirBASE

Types of Merchant Accounts

Search Engineer

Digital Quest

La Cala Golf, Golfing Holidays in Spain, Golf Holidays in Spain: La Cala Spain

The Best PC Games,MoVies,Softwares 2008

EXCELLASYS Computer and Networking Tips for Everyone

Teckh

Wildwobby

ZDNet Reviews - Most Recent Desktops

Rss Directory > Computer > Misc > PlanetJava


PlanetJava - http://planetjava.org/
 
The Java Module System with the new module keyword support in the Java language will be ready to integrate to the OpenJDK Modules project in a week or two. This blog hopes to provide a simple tutorial to help you get started developing, building and using JAM modules.
I will be giving a talk on easyb at the Java Emerging Technologies Conference 2008 in Auckland.
  Fri, 25 Jul 2008 18:57:08 +0200
The code shown in my screenshot yesterday was correct Groovy but not idiomatic Groovy. This was the method in question:
String setSearchString(searchString) { def xml = proxy.GetSpeech(searchString) def XmlParser parser = new XmlParser() def speech = parser.parseText (xml) "PLAY: " + speech.PLAY.text() + "\nSPEAKER:" + speech.SPEAKER.text() + "\nTEXT:" + speech.text() }

In Java, new lines need to be closed with a quote and contain the "+" character. In Groovy, although the above is perfectly acceptable, one can use triple-quotes for multi-lines. Even nicer, in this case, is to use GStrings (expressions declared inside double-quotes), together with Expandos (dynamic collections), instead:

String setSearchString(searchString) { def xml = proxy.GetSpeech(searchString)
    def XmlParser parser = new XmlParser() def speech = parser.parseText (xml) Expando result = new Expando() result.play = "PLAY: ${speech.PLAY.text()}" result.speaker = "SPEAKER: ${speech.SPEAKER.text()}" result.text = "TEXT: ${speech.text()}" result.all = "$result.play\n$result.speaker\n$result.text" }

Much neater, more readable, and the result is the same as before. Plus, it could probably be improved even further.

  Fri, 25 Jul 2008 18:36:00 +0200
I'm looking for a decent "universal" feed parser. I'm actually planning to apply this to a real project. Here is what my hunt turned up and the results I faced.
Morph AppSpace is a cloud-based platform for hosting web applications. The latest release has added support for Groovy and Grails. InfoQ caught up with David Abramowski, CEO of Morph Labs to get some more details around it's recent move into the Java space. By Cleve Gibbon
I'm pleased to announce that we have new leadership for both the Architecture and Planning Councils. Martin Oberhuber of WindRiver is going to take over the Architecture Council chair position, and Rich Gronback of Borland is going to take over the Planning Council.



As you know, these are important positions in the Eclipse community: the Planning Council is responsible for coordinating the popular and growing annual release train (most likely named Galileo this next year), and the Architecture Council is both the source of project mentors and coordinating the unifying architectural issues across the myriad of Eclipse projects.



As a member of both Councils, I look forward to working with both of these talented gentlemen. Congratulations and welcome!
  Fri, 25 Jul 2008 17:10:00 +0200
28 minutes with James Gosling... also:

Featured Podcast: j1-2k8-mtW10: Q&A with James Gosling

Java Today: phoneME Feature Milestone Release 3 (MR3), internationalizing GlassFish server, and bindings and REST

Weblogs: Grizzly news, MCBO API, and OSGi repository for Java Module System

java.net Poll: Do you use static code analysis?

Forum Posts: Setting JVM parameters from a file, applet dialog warnings, and keeping GlassFish from trying to compile properties files
ALT DESCR

The SE/EE Executive Comittee of the JCP has approved (results) JSR 289, the SIP Servlet 1.1 Specification that is the core for SailFin.

The final specification is not yet available but the PFD 2 should be very close. The first public release of SailFin will be aligned with GlassFish v2.1 and will happen around the end of the year; updated roadmaps are due in a few weeks.

Go to http://test.emilianbold.ro/launch.html if you want to see a simple demo of the standalone NetBeans editor with two language implementations: HTML and Javascript.
The Apache Directory Team is pleased to announce the release of Apache Directory Studio 1.2.0 RC1, a major update of its Eclipse based LDAP Browser and Directory client. You can download Apache Directory Studio 1.2.0 RC1 as a standalone RCP application for Mac OS X, Linux and Windows here: http://directory.apache.org/studio/downloads.html You can also install it directly in Eclipse using this update site: http://directory.apache.org/studio/update/1.x/ Here are a few highlights of this new version: * The new Apache DS feature makes its introduction in Apache Directory Studio. This new feature allows you to run the latest version of Apache DS (1.5.3) from within Apache Directory Studio or Eclipse and makes it super easy (and fast) to create and run an LDAP Server. * The Apache DS Configuration plugin now supports the 4 latest versions of Apache DS. It's now capable to read/write the server.xml file of an Apache DS 1.5.0, 1.5.1, 1.5.2 and 1.5.3. * The Search Logs view has been added to the LDAP Browser. * We've also added the support to use the proxy features of Eclipse inside Studio as well as improved the platform (useful actions have been added to the platform, the Mac OS X application now respects the standards of Apple for the "About" and "Preferences" actions, etc.). * We've also fixed some bugs dealing with schema files and schema parsing in the Schema Editor and LDAP Browser plugins. Developed as a sub-project of the Directory Top Level Project, Apache Directory Studio is an Eclipse RCP application that takes full advantage of the benefits inherent in the Eclipse platform. Composed of several Eclipse (OSGi) plugins, Apache Directory Studio can be easily upgraded with additional plugins. Apache Directory Studio plugins can even run within a full installation of Eclipse itself. Apache Directory Studio contains 6 major features: * an LDAP Browser feature * an LDIF Editor feature * an ACI Editor feature for Apache Directory Server * a Schema Editor feature * an Apache DS feature * an Apache DS Configuration feature For more information about Apache Directory Studio, see our website: http://directory.apache.org/studio Below are the JIRA issues that were resolved since the release of Apache Directory Studio 1.2.0 RC1: Bug * [DIRSTUDIO-89] - Entry painted even though not created in server * [DIRSTUDIO-121] - Some property pages make the dialog very tall * [DIRSTUDIO-157] - Studio looses STRG-V over some time of use * [DIRSTUDIO-209] - Cannot expand attribute list * [DIRSTUDIO-266] - OpenLDAP schema files parser fails when DESC contains an empty string '' * [DIRSTUDIO-273] - Unable to get Base DNs on OID (Oracle Internet Directory) * [DIRSTUDIO-298] - NullPointerException raised when drag'n'dropping a connection to a folder (on Mac OS X only) * [DIRSTUDIO-315] - Choosing new value, in entry editor shows new entry when server error occures * [DIRSTUDIO-318] - Rename of multi-values RDN does not work when changing the second RDN * [DIRSTUDIO-319] - LDAP Browser creating new entry becomes empty and unusable in Windows Vista after certain actions * [DIRSTUDIO-323] - Studio fails to read ApacheDS server.xml * [DIRSTUDIO-325] - Keybinding conflicts occurred. They may interfere with normal accelerator operation. * [DIRSTUDIO-326] - Non-Operational attributes are marked as operational when bind to Siemens DirX 7.0 * [DIRSTUDIO-330] - CoreException raised in editor when opening a *.txt file * [DIRSTUDIO-336] - Errors when parsing schema of some LDAP servers * [DIRSTUDIO-341] - Paste error * [DIRSTUDIO-342] - Relax the parser for the *.schema files * [DIRSTUDIO-343] - Referrals not handled. * [DIRSTUDIO-347] - Keybinding conflict for CTRL+Q * [DIRSTUDIO-349] - Unable to enter large values for uid * [DIRSTUDIO-350] - DS is not properly displaying case of group DN Improvement * [DIRSTUDIO-46] - Add connections import/export * [DIRSTUDIO-126] - Triple click to edit attribute * [DIRSTUDIO-295] - Add a console for errors * [DIRSTUDIO-329] - Replace internal URL class by shared-ldap LdapURL class * [DIRSTUDIO-337] - Add Save and Print actions in the toolbar of the RCP application New Feature * [DIRSTUDIO-321] - Need to be able to set SOCKS proxy in the RCP version * [DIRSTUDIO-328] - Search Logs View Task * [DIRSTUDIO-128] - Replace internal schema parser with the schema parser in shared-ldap. * [DIRSTUDIO-317] - Update legal files after moving to Apache Directory Shared LDAP version 0.9.9 * [DIRSTUDIO-332] - Add support for 1.5.3, 1.5.2 and 1.5.0 server.xml configuration files * [DIRSTUDIO-338] - Update Eclipse dependencies to the latest Eclipse version (3.3.2) * [DIRSTUDIO-339] - Add the 'org.eclipse.ui.carbon' Eclipse plugin to the Mac OS X distribution ---- -- The Apache Directory Team

[ Category : Apache Directory ] PDFXML_RSS

  Fri, 25 Jul 2008 16:33:58 +0200


Bravo!

Today, the NetBeans Dream Team page was updated, and I am now one of them. Yes, I was invited to join the team, and had accepted the offer. So, here I am as a NetBeans Community Docs Contribution Coordinator and Dream Team Member!

Second, Jiri Kovalsky, the Liaison officer, Technical Community Manager and NetCAT 6.5 Coordinator. List is surely long and I am sorry If I missed something ;)

Highest Scorer

Today, he announced on demand of certain NetCAT participants, the points earned by every member. It was another shocker for me! I scored 83 points as of 25th July, 3:00 pm C.E.T.

Simply awesome! NetCAT has just completed 2 weeks, we are in for some more surprises, so wait till monday as I come out with 2nd edition of my own NetCAT weekly.

Summer Action Marathon continues…

I needed to load the classes from the dt.jar archive on the fly. The path to the archive was generated automatically based on the "java.home" system property. The original idea was to use the URLClassLoader, but it could not find classes. I had to write a custom class loader which read an archive and loaded classes on demand. At that instant I realized why the URLClassLoader did not work: I had incorrectly generated the path to the archive and the URLClassLoader for a wonder provided no warning that the archive was not found.
I needed to load the classes from the dt.jar archive on the fly. The path to the archive was generated automatically based on the "java.home" system property. The original idea was to use the URLClassLoader, but it could not find classes. I had to write a custom class loader which read an archive and loaded classes on demand. At that instant I realized why the URLClassLoader did not work: I had incorrectly generated the path to the archive and the URLClassLoader for a wonder provided no warning that the archive was not found.
This TOTD (Tip Of The Day) shows how to create a Persistence Unit (PU) for a MySQL database using NetBeans IDE. This PU can then be used in any of Java EE artifacts (JSP, Servlet, EJB, ...) for database interaction. In NetBeans IDE, create a...

Some progress, at last. Quite some of my (spare?) time the last couple of weeks I spent pondering a smart way of getting an existing Spring/webapp environment consisting of several modules migrated to make more use of the Java EE 5 features, namely provided by the glassfish application server which has been in productive use in our environment for quite a while now. But while migrating webapps from tomcat to glassfish has proven to be pretty straightforward in our case (asides a few minor caveats it was just as difficult as deploying the .war file using asadmin and seeing the application start up on the new system… ;) ), the idea to make our “backend” application (so far Spring-Remoting packed into a web application context) a well-behaving EJB3 module turned out to be a little more complex than just that. But doable, to say now, after all…

(more…)

  Fri, 25 Jul 2008 14:42:55 +0200
This is a response for not a nice post about quality of NetBeans at nbusers mailing list. I thing that the original post is more misunderstanding and a email from an upset user.

To make some of the things clearer I'd like to describe how we test the Milestones. And how the milestone process should look like. I'm using word "should" because the world isn't perfect...



Milestone process



Let me describe it in words. Release engineers(RE) build the NetBeans builds. When the build is ready quality engineers(QA) start the testing of the milestone. Developer focus on fixing issues during that time. After a time (usually one week) new branch is created. QA identifies show stoppers these are bugs that have to be fixed before the milestone build can be published. When all the show stoppers are fixed the milestone is published and announced to the NetBeans community.
The attendees session ranking from Java-Forum-Stuttgart 2008 is now online and I am more than happy to see that my talk about Equinox Aspects (slides, code examples) won the silver medal. How cool is that? And its great to see that more and more people are interested in Equinox Aspects. Wonderful...
This TOTD (Tip Of The Day) shows how to create a Persistence Unit (PU) for a MySQL database using NetBeans IDE. This PU can then be used in any of Java EE artifacts (JSP, Servlet, EJB, ...) for database interaction.

  1. In NetBeans IDE, create a new project
    1. Create a new NetBeans Web project and enter the values ("Autocomplete") as shown:







      and click on "Next".
    2. Choose GlassFish v2 as the deployment server and then click on "Finish".
  2. Set up the database
    1. Start the database as:



      ~ >sudo mysqld_safe --user root

      Password:<YOUR PASSWORD>

      Starting mysqld daemon with databases from /usr/local/mysql/data


    2. Create a user, create the database and grant the privileges to newly created user as:



      mysql> CREATE USER duke IDENTIFIED by 'duke';

      Query OK, 0 rows affected (0.00 sec)



      mysql> create database states;

      Query OK, 1 row affected (0.00 sec)



      mysql> GRANT ALL on states.* TO duke;

      Query OK, 0 rows affected (0.00 sec)

    3. In NetBeans IDE, Services panel, right-click on Databases and click on "New Connection..." and enter the values as shown:







      and click on "OK" and again on "OK".
    4. Right-click on the newly created database and select "Execute Command ..." as shown:





    5. Create the database table as:



      CREATE TABLE STATES (

            id INT,

            abbrev VARCHAR(2),

            name VARCHAR(50),

            PRIMARY KEY (id)

      );


      and click on the green button to run the query as shown here:





    6. Following the same instructions, populate the table using the following SQL:



      INSERT INTO STATES VALUES (1, "AL", "Alabama");

      INSERT INTO STATES VALUES (2, "AK", "Alaska");

      INSERT INTO STATES VALUES (3, "AZ", "Arizona");

      INSERT INTO STATES VALUES (4, "AR", "Arkansas");

      INSERT INTO STATES VALUES (5, "CA", "California");

      INSERT INTO STATES VALUES (6, "CO", "Colorado");

      INSERT INTO STATES VALUES (7, "CT", "Connecticut");

      INSERT INTO STATES VALUES (8, "DE", "Delaware");

      INSERT INTO STATES VALUES (9, "GL", "Florida");

      INSERT INTO STATES VALUES (10, "GA", "Georgia");

      INSERT INTO STATES VALUES (11, "HI", "Hawaii");

      INSERT INTO STATES VALUES (12, "ID", "Idaho");

      INSERT INTO STATES VALUES (13, "IL", "Illinois");

      INSERT INTO STATES VALUES (14, "IN", "Indiana");

      INSERT INTO STATES VALUES (15, "IA", "Iowa");

      INSERT INTO STATES VALUES (16, "KS", "Kansas");

      INSERT INTO STATES VALUES (17, "KY", "Kentucky");

      INSERT INTO STATES VALUES (18, "LA", "Louisiana");

      INSERT INTO STATES VALUES (19, "ME", "Maine");

      INSERT INTO STATES VALUES (20, "MD", "Maryland");

      INSERT INTO STATES VALUES (21, "MA", "Massachussetts");

      INSERT INTO STATES VALUES (22, "MI", "Michigan");

      INSERT INTO STATES VALUES (23, "MN", "Minnesota");

      INSERT INTO STATES VALUES (24, "MS", "Mississippi");

      INSERT INTO STATES VALUES (25, "MO", "Missouri");

      INSERT INTO STATES VALUES (26, "MT", "Montana");

      INSERT INTO STATES VALUES (27, "NE", "Nebraska");

      INSERT INTO STATES VALUES (28, "NV", "Nevada");

      INSERT INTO STATES VALUES (29, "NH", "New Hampshire");

      INSERT INTO STATES VALUES (30, "NJ", "New Jersey");

      INSERT INTO STATES VALUES (31, "NM", "New Mexico");

      INSERT INTO STATES VALUES (32, "NY", "New York");

      INSERT INTO STATES VALUES (33, "NC", "North Carolina");

      INSERT INTO STATES VALUES (34, "ND", "North Dakota");

      INSERT INTO STATES VALUES (35, "OH", "Ohio");

      INSERT INTO STATES VALUES (36, "OK", "Oklahoma");

      INSERT INTO STATES VALUES (37, "OR", "Orgeon");

      INSERT INTO STATES VALUES (38, "PA", "Pennsylvania");

      INSERT INTO STATES VALUES (39, "RI", "Rhode Island");

      INSERT INTO STATES VALUES (40, "SC", "South Carolina");

      INSERT INTO STATES VALUES (41, "SD", "South Dakota");

      INSERT INTO STATES VALUES (42, "TN", "Tennessee");

      INSERT INTO STATES VALUES (43, "TX", "Texas");

      INSERT INTO STATES VALUES (44, "UT", "Utah");

      INSERT INTO STATES VALUES (45, "VT", "Vermont");

      INSERT INTO STATES VALUES (46, "VA", "Virginia");

      INSERT INTO STATES VALUES (47, "WA", "Washington");

      INSERT INTO STATES VALUES (48, "WV", "West Virignia");

      INSERT INTO STATES VALUES (49, "WI", "Wisconsin");

      INSERT INTO STATES VALUES (50, "WY", "Wyoming");
  3. Create and configure the persistence unit
    1. Right-click on the newly created project and select "New", "Entity Classes from Database ..." as shown:





    2. In DataSource, select "New Data Source..." and enter the JNDI name "jndi/states" as shown:





    3. Select "STATES" table in "Available Tables:" and click on "Add >" and then "Next >".
    4. Click on "Create Persistence Unit ...", take all the defaults and click on "Create".
    5. Enter the package name as "server" and click on "Finish".
    6. Expand "Configuration File", open "persistence.xml". Unselect "Include All Entity Classes" check box, click on "Add Class...", select "server.States" and click on OK. The updated view looks like:



    7. Select the XML view and replace <properties/> with



          <properties>

              <property name="toplink.jdbc.user" value="duke"/>

              <property name="toplink.jdbc.password" value="duke"/>

          </properties>


      The username and password values must match the ones specified during database creation. The updated "persistence.xml" looks like:



      <?xml version="1.0" encoding="UTF-8"?>

      <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">

        <persistence-unit name="AutocompletePU" transaction-type="JTA">

          <jta-data-source>jndi/states</jta-data-source>

          <class>server.States</class>

          <exclude-unlisted-classes>true</exclude-unlisted-classes>

          <properties>

            <property name="toplink.jdbc.user" value="duke"/>

            <property name="toplink.jdbc.password" value="duke"/>

          </properties>

        </persistence-unit>

      </persistence>
  4. Create a Servlet to perform the database operations
    1. Right-click on the project, select "New", "Servlet".
    2. Enter the class name as "StatesServlet" and package as "server" and click on "Finish".
    3. Add the following fragment in the beginning of the class:



          EntityManager em;



          @Override

          public void init() throws ServletException {

              EntityManagerFactory emf = Persistence.createEntityManagerFactory("AutocompletePU");

              em = emf.createEntityManager();

          }
    4. Replace the commented code in "processRequest" with the following fragment:



                  String abbrev = request.getParameter("abbrev");



                  List<States> list = em.createNamedQuery("States.findByAbbrev").

                          setParameter("abbrev", abbrev).

                          getResultList();



                  if (list.size() > 0) {

                      States s = list.get(0);

                      out.println("Found " + s.getName() + " with abbrev \"" + abbrev + "\"");

                  } else {

                      out.println("No matching state found with \"" + abbrev + "\"");

                  }


      and fix the imports by right-clicking in editor pane and selecting "Fix Imports".
    5. Right-click on the project and select "Undeploy and Deploy".
Now let's try it!



Invoking "curl http://localhost:8080/Autocomplete/StatesServlet?abbrev=CA" shows the following output on command prompt:



Found California with abbrev "CA"



Alternatively, you can enter this URL in browser as well to see the output as:







Invoking "http://localhost:8080/Autocomplete/StatesServlet?abbrev=CB" shows the output:







Even though MySQL is used as the database in this case, any other database can be easily used for creating this portable PU.



Please leave suggestions on other TOTD (Tip Of The Day) that you'd like to see. A complete archive of all tips is available here.



Technorati: totd mysql jpa persistenceunit netbeans glassfish
This post shows how overload protection can be configured in SailFin
Dear Community, We're excited to announce the new milestone release 3 (MR3) of the phoneME Feature project. As you know phoneME Feature is a live code base which is being continuously evolved by the efforts of community members as well...

We announced WebSynergy at JavaOne; we were expecting to launch the public site with transparent builds shortly after that but the end of (our fiscal) year and the summer have slowed us down. I think we will soon be able to show public progress; in the meantime we are making internal progress, together with the Liferay team and with add-ons.

ALT DESCR

As an example of the type of synergy across our projects, Ajit describes how to Integrating WebSynergy with OpenSSO on GFv3, showing how to download and assemble the pieces and how to configure OpenSSO. Of course, the actual Sun product would come with good ease-of-use for all these, and other, pieces.



Hey,

I have been blogging around for a while on hyperlinks in NetBeans IDE, what about the API’s, yeah the NetBeans API’s that helped me achieve a crucial milestone, i.e. activating the Opened panes! Also, the members of OpenIDE mailing lists, for giving accurate suggestions for making it possible.

Tricks

You must see numerous Developer FAQ’s based on Editor and Edited Files. Some of them referring to get access of relevant opened Window for editing. Still, something was missing. So, I would share what I experienced recently.

TopComponent[] comps = TopComponent.getRegistry().getOpened(); for (int i = 0; i < comps.length; i++) {
    Node[] arr = comps[i].getActivatedNodes(); for (int j = 0; j < arr.length; j++) { EditorCookie ec = (EditorCookie) arr[j].getCookie(EditorCookie.class); if (ec != null) { JEditorPane[] panes = ec.getOpenedPanes(); if (panes != null) { // USE panes } } } }

This has one issue, it no longers returns an array of TopComponent’s in the 1st line, in 6.0 and 6.1, I saw it returned Set<TopComponent>, so outer loop also changes like this-

Set<TopComponent> comps = TopComponent.getRegistry().getOpened(); for (TopComponent tc: comps) { Node[] arr = tc.getActivatedNodes(); for (int j = 0; j < arr.length; j++) { EditorCookie ec = (EditorCookie) arr[j].getCookie(EditorCookie.class); if (ec != null) { JEditorPane[] panes = ec.getOpenedPanes(); if (panes != null) { // USE panes } } } }

What about My Usecase?

Oh, yeah! I wanted to tell you about re-activating opened panes. After interacting with Wade on OpenIDE mailing lists. I created this method- verifyHyperlinkStatus(), please have a look, you might have to scroll a bit. So, I have commented 2 lines there-

//final int index = k; /* After some coding... */ //tc[index].requestActive();

tc[index] is a particular TopComponent instance obtained by iterating over an Array of TopComponent’s. Array? But, we have just discussed its Set<TopComponent> not an Array. You’re in for another surprise-

//To obtain an array, use this- final
    TopComponent[] tc = TopComponent.getRegistry(). getOpened().toArray(new TopComponent[0]); //As mentioned in the following reference tutorial.

Referenced Tutorial- http://wiki.netbeans.org/RevampedHyperlinkNavigation

final, but why?

Actually, when you deal with methods that required to run within a AWT Thread, invoked by various means, then the variables used, within their implemented run() method, if defined outside should be made final so as to prevent it from any modification. In Java, final modifier means that an identifier would be constant within a block of code. In this case, within a method- verifyHyperlinkStatus()

So, index was modified as final, and was used within an AWT Thread inside a if-block, which invoked tc[index].requestActive(), i.e. to activate that window, if its already opened.

Why I am doing this?

As I have to re-activate a opened editor window which was already opened by clicking a hyperlink in HTML file. So, I was earlier using setCaretPositon(), that’s why I had to requestActive(), to show that editor window again.

Tips to Remember

Vita suggested to use NbEditorUtilities instead of a combination of setCaretPosition() and requestActive(). So, I did that by commenting the following statements present in one of the setPosition() methods.

NbEditorUtilities.getLine(d, index, true).show(Line.SHOW_GOTO); //pane[pos].setCaretPosition(index);

Here, index is found using indexOf(), and d is the document, whose contents were used to retrieve the index. This is indeed a great utility, why? Because, it opens/re-activates the opened document and places the cursor at the beginning of the line, that was searched.

Final thoughts

This time all was said and done, rather than the saying “All is said, more than done!”.

Packt is pleased to announce Service Oriented Architecture with Java, a new book which teaches the concepts and the implementation of using SOA with web services to design a sound architecture for business solutions.

The first start/installation of JFtp (see screenshot) via WebStart takes about 10-20 seconds. All subsequent starts about 5 seconds - (on Java 6u10). Another great sample for WebStart, Swing and Java 6u10 combo.

Btw. it is a Ftp, Http, Ssh, SMB etc. client :-).



ALT DESCR

Ming is in charge of the localization efforts for the GlassFish Server and she is soliciting input on Expansion of Language Support.

GlassFish is currently localized to Simplified Chinese, Traditional Chinese, Japanese, Korean, French, German, and Spanish - see TA entry and G11n Home Page. The process will be further simplified and opened for participation for GFv3 and GFv2.1.

If you are interested in helping, please contact Ming or post directly to the G11N mailing list at glassfish.dev.java.net.

From the JPhone dept.:

Sun Microsystems is developing a Java Virtual Machine for Apple's iPhone and plans to release the JVM some time after June, enabling Java applications to run on the popular mobile device.
From the Fresh Brew dept.:

Time to fire up the 'ole Software Update as Apple has just released a Java update for Mac OS X. This update will fix vulnerabilities in both server and client versions of 10.4. Apple explains that, 'A malicious webpage can remove or insert items in the keychain,' which sure doesn't sound good to us.
  Fri, 25 Jul 2008 06:00:00 +0200
From the Fresh Brew dept.:

Many Mac users have been upset that Apple has not made Java 6 available on the platform. Landon Fuller posts that there is a developer preview release available of Java JDK6 on Mac OSX, Tiger and Leopard. It is based on the BSD port of Sun's Java 6 and is made available under the Java Research License.
From the Isn't that the one that works? dept.:

Sun's starting to phase out mobile Java (Java Micro Edition) that's been the standard on cellphones and other small devices in favor of their standard edition, which are made for PCs everywhere. Sun VP James Gosling's reasoning for shifting everyone over to Java Standard Edition is because "cellphones and TV set-top boxes are growing up," meaning they're getting enough processing power to handle all the demands of full-featured Java.
From the Sippin' dept.:

Just in time for Fedora 8 test 2 IcedTea has landed in Fedora RawHide. The IcedTea project provides a harness to build the source code from the Sun OpenJDK project using Free Software build tools (gcj) and provides replacements for the non-free binary plugs with code from the GNU Classpath project.
From the Easier, but more exclusive dept.:

Sun Microsystems is making it easier for open-source programmers to ensure their Java versions meet the company's compatibility requirements, but the deal extends only to those involved in Sun's own open-source Java project.
From the Journey of 1000 Miles... dept.:

...This week the IcedTea Project reached an important milestone - The latest OpenJDK binary included in Fedora 9 (x86 and x86_64) passes the rigorous Java Test Compatibility Kit (TCK). This means that it provides all the required Java APIs and behaves like any other Java SE 6 implementation - in keeping with the portability goal of the Java platform. As of writing, Fedora 9 is the only operating system to include a free and open Java SE 6 implementation that has passed the Java TCK. All of the code that makes this possible has been made available to the IcedTea project so everyone can benefit from the work.



The Java TCK is a complex suite of tools and documentation that verifies that Java implementations conform to the Java specification. It consists of more than 80,000 tests and over 1 million lines of code.
From the Suits Still Control Java dept.:

Members of a JavaOne panel on the JCP, open source and standards have expressed their frustrations with a process they believe puts corporate interests first when it comes to Java. For once, it wasn't just Spring Framework creator and evangelist Rod Johnson calling for change.



Joining him was Sun Microsystems' own, recently recruited, "free and open source software ambassador" Dalibor Topic and representatives from one of the industry's newest Java user group - the Paris JUG - plus one of the largest - Brazil's SouJava. Brazil is a country Sun repeatedly champions when discussing uptake of Java and open source.
  Fri, 25 Jul 2008 06:00:00 +0200
From the 6 dept.:

After a long delay, Apple has finally released a version of Java 6 for OS X. 64-bit Intel Macs are starting to see this pushed out via Software Update...
From the Buffering.... dept.:

Sun Microsystems is stepping up efforts to boost Java usage in Linux shops by working to remove some final encumbrances in the open-source Java platform.



..."We're hoping to see some movement [with the] Linux distributions in the very near future, hopefully by JavaOne," said Rich Sands, group manager for developer marketing at Sun, in an interview on Tuesday. The JavaOne conference is to be held in San Francisco in two weeks.
Template engines have long been the de-facto standard for rendering views in Java web development. Learn why templates are far from ideal and how Groovy builders provide a literate solution for bringing view rendering back into your code.
If you can't stand writing technical documentation, read this article by Paul Duvall on how to automate the whole process!
There is a lot happening this summer with Grizzly. We have two new commiters, several new tutorials, a new lead and our community is growing. Happy Summer from the monster...
In this presentation filmed during JAOO 2007, Wayne Fenton, Director of Architecture at eBay Inc., talks about the ways in which software architects can design systems for much-improved efficiency and reliability from an operational perspective. By Abel Avram
I've hit up against the problem of the construction of hierarchal object graphs eg. for documents (to generate HTML output from objects for instance), and of course for a component tree for Swing GUIs too. One can use XML to describe such hierarchies, or YAML.org as done by the Java Swing Builder. Today i thought of another option i'm keen to explore further, where the "markup" is a some script in a resource file that is very tightly coupled to a reusable builder class (which reflects on its custom methods) and a target container class (whose fields we construct and inject), so that the code extends this script, and visa versa.
I've hit up against the problem of the construction of hierarchal object graphs eg. for documents (to generate HTML output from objects for instance), and of course for a component tree for Swing GUIs too. One can use XML to describe such hierarchies, or YAML.org as done by the Java Swing Builder. Today i thought of another option i'm keen to explore further, where the "markup" is a resource file that is very tightly coupled to a reusable builder class (which reflects on its custom methods) and a target container class (whose fields we construct and inject), so that the code extends the markup, or is it visa versa!?
Usually if you are working in a "big" project and doing a code review; if you have a vendor who develop some application for your company; if you have a fresh graduate developer ... you will find a lot of bad-practices in the code being written! I don't like to see System.out.println in the code .. because simply, it doesn't appears in the log files!!!
ALT DESCR

I just noticed that Glen has started working on a Grails in Action book that looks very interesting. While working on that, he is collecting good tips like Grails and JNDI Data Sources in GlassFish.

Grails continues to gain adoption (Google Trend), leveraging the strengths of the language and framework and its easy integration into the Java plaform.

NetBeans is investing to be a top IDE for Grails, see Grails Plugin for NetBeans and Integrating Meera with Grails and NetBeans, and the responses so far are very positive. All this targeted for NetBeans 6.5; I think the result will be a top IDE for dynamic languages.

Even IBM's DeveloperWorks is covering Grails, their Mastering Grails Series includes 7 articles, from Introduction to Grails to Grails and Legacy DataBases. I've skimmed the articles and they look good. Their list of AppServers "somehow" does not include GlassFish server, but don't be distracted - it should work, and if they don't, it's a bug we will fix :-)

Related entries at TheAquarium can be found via tags: Grails or Scripting.

  Thu, 24 Jul 2008 22:49:46 +0200
The web service looked at yesterday returns a Shakespeare speech in XML format based on the search string that is sent via Groovy from a Swing form created in Matisse. Groovy isn't only useful in interacting with the web service—parsing the returned XML is also a trivial activity with Groovy:

As shown yesterday, the Groovy method shown above is called from the button in the form, that you see deployed in the screenshot above. On the return of the XML, Groovy takes a tiny number of lines to break up the payload and then (without the "return" statement being necessary, as pointed out in the comments yesterday by Alex Tkachman) is returned to the Swing form.

For those who aren't in the know, there was an OSBootCamp in Ottawa recently that was dedicated to Eclipse. Here are three videos of interest:

Good to see that there's some evangelism going on during Eclipse's typical off months ;)
  Thu, 24 Jul 2008 21:16:00 +0200
The model translates to peace of mind for developers who'd like to take advantage of the latest features before commercial releases.
I imagine 1.0 would be the initial consortium board and 2.0 would have been when the foundation was launched as an independent foundation almost five years ago.



Today begins the next chapter in our Membership as the new Eclipse Foundation Bylaws and Membership Agreement have been overwhelmingly approved by the Membership at Large.



95.8% were in favor of the proposed changes (157 votes)

4.2% voted against the changes (7 votes).



Quorum (2/3rds of membership at large) was easily achived. Thanks to all of the members who took time to vote.



So what changes? There are three major changes to our membership structure (2 related to the vote, and 1 by board resolution last month):



1 - "Add-In Providers" are now known as "Solutions Members". A simple name change, but it more accurately reflects the kind of organization the membership represents. Our members have said that marketing they are "Add-In Providers" to IT consumers made no sense -- but marketing they are "Solutions Members" is much more intuitive. It also suits our growing training and services membership better.



2 - A new membership class "Enterprise Membership" is created. This gives us an opportunity to attract a broader membership base of organizaitons not traditionally associated with Software. We're working on some benefits and bundles to offer resources related to helping Enterprises with open source Intellectual Property, enganging with open source communities and support for launching their own forays into open source. We plan to formally launch this new membership class later in 2008 with a bit of a splash - but for now, we now finally have the structure to support it.



3 - By virtue of board resolution last month, any organization can now become an Associate Member - it's not just restricted to non-profits and public service organizations. This means small and mid-size organizations who don't have commercial offerings with Eclipse, but want to show support for the ecosystem, have an easy way to do so.



For full details on the changes, you can see the Vote 2008 page.



- Don
  Thu, 24 Jul 2008 21:00:00 +0200
JavaPerformance logo

If you need to break the 2GB or 4GB heap maximum barrier for your GlassFish-powered application, you can move to a 64-bit JVM. The topic of 64-bit JVM was touched upon here when GlassFish v2 was released. What wasn't explained is what configuration steps it takes.

A recent thread on the GlassFish forum pointed out that this wasn't well documented or at least easily accessible. This FAQ entry on the Wiki tries to fix this. Once you're set with the 64-bit JVM, the GlassFish Performance and Tuning Guide can come handy.

Let us know when you feel important questions are not well documented on the GlassFish wiki FAQ or on the product documentation. You can either add it yourself to the wiki or send us a ping on the Forum. Thanks!

I briefly introduced the MEP client architecture in my previous post. In this post, we will take a closer look at the client architecture and use it as a foundation for the next few blog entries that will focus on...
As rich Internet application (RIA) tools become mainstream technologies, an increasing number of options are being made available to developers. A recent blog post by Adobe's platform evangelist Serge Jespers, comparing Flex and Silverlight, became the flash point for heated argument. By Moxie Zhang
The Tasktop Team is pleased to announce the release of Tasktop Summer 2008, based on Mylyn 3.0. Tasktop Pro includes cool new time tracking features that make it easy to fill out time sheets and see where you spend time. For Eclipse/Mylyn users we have also released a free version called Tasktop Starter.

The Tasktop Team is very pleased to announce the release of Tasktop Summer 2008. Summer is a great time to offload your brain, so we’ve packed this release with features that will help you do just that. This release’s splash screen commemorates a summer hike in the mountains overlooking Vancouver.

The coolest thing in this release is the new time tracking and reporting feature, which gives you full transparency into your work activities with automatic to-the-minute tracking of time spent working both within and outside of Eclipse. As usual, we put all of the control at your finger tips, enabling you to do things like adjusting timings. You also get flexible reports so that you don’t have to stress the creative side of your brain when needing to report activity or fill out time sheets, and can save your creativity for more interesting activities like coding. As an example, take a look at my time report for the week after the Mylyn 3.0 release, from which I can immediately see that I spent most of my time on the Tasktop working set (blue part of pie chart on far right), a bunch of time went to managing (the gray bars in the graph) and thankfully a higher proportion to working on the tasks I had scheduled (colored bars in the graph). From this I can immediately see why I was itching to write code by the end of the week, since most of my week went into non-programming activities.

Eclipse Mylyn users will be pleased to learn that we are now providing a free version of Tasktop called Tasktop Starter. This allows us to deliver to you some valuable features that are out of the scope of Eclipse and Mylyn. Below you can see a snapshot of the welcome screen that will get you started exploring the features in Tasktop Starter, such as one-click install of partner connectors, automatic Mylyn updates to either release or weekly builds, and a time tracking dashboard for the current week. We’ve also included the Gmail connector for free, which lets you easily tag conversations in Gmail have them appear in Mylyn’s Task List and be accessible when working offline. You need Tasktop Pro for the main productivity features such as focused web browsing, desktop integration, customized time reporting and additional connectors such as Microsoft Outlook. But with Tasktop Starter you get both a useful day-to-day tool and a glimpse at what it’s like to have Mylyn’s task-focused interface keep you focused and productive for the non-coding parts of your workday.

I drive at least 90% of my workday from Tasktop/Mylyn/Eclipse, and one of my favorite new features is the one-click switching of working sets. It seems so rudimentary, but this makes switching your project/work/role contexts as easy as switching task contexts. In addition, you get to see how far behind you’re getting on any particular working set, thanks to an indication of the number of incomings. This is just one part of the additional streamlining that we’re providing with Tasktop as part of our mission to save you clicks. Less is more.

We hope that you enjoy this release of Tasktop and continue sending us your feedback and votes for future enhancements and integrations. For more info see:

   InfoQ interview about the release
   Upated Tasktop site and product tours
Tasktop Technologies, the company which created Eclipse Mylyn and leads its development, released Tasktop version 1.2 today, which is based upon the new Mylyn 3.0 APIs. InfoQ interviewed Tasktop President & CTO Mik Kersten to learn more about this release and what changes it brings for end users. By Ryan Slobojan
A prototype of the OSGi repository for supporting OSGi bundles in the Java Module System is now available in the OpenJDK Modules project. Looking for feedback and contribution from the community.
  Thu, 24 Jul 2008 18:46:54 +0200

There’s a persistent rumor that crops up every few months about social news site Digg being acquired by ____ (insert company here). The latest, citing “multiple sources inside and outside Google”, says that Google will buy Digg for $200M. This is similar to a rumor in March that Digg was going to be acquired “soon” by Google or Microsoft or two other companies, according to “a source very close to the deal”. In 2006, it was Yahoo who was going to buy Digg for $30M, at least if you believed “two sources close to Yahoo”.

Whether the rumors turn out to be true this time or not, it’s a common pastime to imagine what the name of a merged company will be. Of course, it’s all but certain there would be no name change, and that each company or division would continue with its current name. But just for fun… what is your favorite?

Google + Digg = ?

View Results

Loading ... Loading …


  Thu, 24 Jul 2008 17:20:00 +0200
Life viewed without purple-and-gray-tinted glasses... also:

Weblogs: Java outside of Sun, open-source mobile computing, and SomnifugiJMS emerges from alpha

Feature Article: Fun With Continuations

Java Today: OSCON OpenJDK slides, JavaCAPS conference, and

Forum Posts: JavaFX threading, Java location API on Windows Mobile, and GlassFish without hard-coded paths.


Howdy,

After lot of discussion on OpenIDE mailing lists, exploring Developer FAQ’s, exerting my wrist, flexing fingers and what not? Finally, hit the deck hard! Yeah, Hyperlink Navigation in NetBeans got smarter! Especially, for HTML documents.

While working on my Internship Project, I came across Hyperlink Navigation Tutorial, on platform.netbeans.org/tutorials!

Recently, I felt that the sample project needs revision, and should implement some more usecases, which are commonly used. Think about rendering of HTML pages on Web Browser, you click on an anchor name, it takes you to the exact position in either same OR referenced document. Also, when you click external links, browser opens New Tab, and presents that page.

Ever thought of having a similar functionality in NetBeans, yes your favorite IDE. Just follow the following tutorial, to master hyperlinking in the IDE.

Have a look at the tutorial-

http://wiki.netbeans.org/RevampedHyperlinkNavigation

Also, download following plugin, and it would add a sample project with all the code present in it, the one mentioned in tutorial, just Run that module, it will Install in Target Platform, and play with HTML files. Follow the instructions carefully.

Created in 6.0, compatible with 6.0, 6.1, 6.5 (daily builds)!

Samples | NetBeans Modules Project-

http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=11222

Add to Technorati Favorites

This is to formally announce that I (Jay Mahadeokar) have been chosen to be the new Sun Campus Ambassador for SRKNEC, Nagpur, India. I will take over the reigns from Siddharth Vadera - our First Sun Campus Ambassador.



I will be blogging about all Sun -Related activities that are carried out SRKNEC -Sun Club



We have already had a NetBeans Workshop for III Year Students last Sunday. We hope to come up with more and contribute as a unit to the community.



Stay tuned and keep visiting that blog for more updates!



Thanks a lot!
  Thu, 24 Jul 2008 16:29:23 +0200
TheServerSide contributor Paulo Caroli opines on how agile development is like building a bridge.

  Thu, 24 Jul 2008 16:20:47 +0200
XSL Tools is going to participate in Bug Day. We have several bugs lined up for people to work on. Like Chris, there are a few noteables that I think the community can help us out with:



[241971] - XPath View and XPath Navigator Icons - We need some icons for these views.

[238833] - Content assist for include/import href's

[230136] - Content Assistance for exclude-result-prefix



To help make it easy for people to check out the correct files, we do have a Team Project Set available. Look for d_a_carver in the #eclipse-bugs channel or #eclipse, I'll be happy to answer any questions.

Disclaimer|Rss Directory|Try a Feed|Suggest a Feed|F-A-Q|Partners
Links: Référencement internet | Annuaire Webmaster  | ubuntu/debian tips
Comparateur de Prix | Logos, Sonneries, Jeux Java | Sonneries pour portables | Ringtones and logos for mobile phone | Accéssoires pour téléphone portable | Sonneries Et Logos
© copyright feeds2read.net 2005-2008