Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blog Posts by Community

• Adopt a JSR  • Embedded  • GlassFish  
• Global Education and Learning  • Identity Management  • IoT  
• Java Communications  • Java Desktop  • Java Enterprise  
• Java Patterns  • Java Tools  • Java User Groups  
• Java Web Services and XML  • JavaFX  • JCP  
• JDDAC  • Jini  • JXTA  
• Mac Java  • NetBeans  • Open JDK  
• Portlet  • Robotics  • Sun Grid  
• Sun RFID and Sensor  • [no association]  


Java Web Services and XML

Asynchronous JavaScript and XML (AJAX) is an increasingly popular technology that enables HTML pages to asynchronously make calls to the server from which the pages were loaded and fetch XML documents. You can then update the XML documents by means of JavaScript to revise the Document Object Model (DOM). A recent article that I cowrote with two Sun engineers, Asynchronous Rendering of Portlet...
on Jul 15, 2005
Yesterday, one of the JAXB users sent me an e-mail, asking for how to solve the problem he faced. The scenario was like this; you have a client and a server, and you want a client to send an XML document to a server (through a good ol' TCP socket), then a server sends back an XML document. A very simple use case that should just work. The problem he had is that unless the client sends the "EOS...
on Jul 15, 2005
The JAXB RI distribution ships with xjc.sh and xjc.bat for invoking XJC from a command prompt. JWSDP also has xjc.sh and xjc.bat, but their contents are different. I'm sure these files are there for a reason, but personally, I hate those scripts. Here are why. One, it's hard to set the JVM parameters, even though sometimes you need to increase the VM memory size to have XJC compile a large...
on Jul 14, 2005
Based upon the discussion in FI project, I created a new sample that starts with a doc/lit WSDL. I tried this sample with Tomcat container and JWSDP 1.6. Configuration file (Download in conf/Catalina/localhost directory) Zipped directory (unzip in jaxrpc/samples directory) As with the other sample, build target builds the WAR file and run-client target build and runs the client. This...
on Jul 13, 2005
To highlight the savings in generated code with JAX-WS 2.0 compared to JAX-RPC 1.1, I ran the WS-I Sample application WSDL files through JAX-RPC's wscompile and JAX-WS's wsimport. The results are very good. JAX-RPC 1.1 generated 128 files that were 365KB in size. JAX-WS 2.0 generated only 61 files for a total size of 83KB. That is a 52% reduction in the number of files generated and a 77%...
on Jun 28, 2005

Java Desktop

Java One Lessons The highlights for me were our session for Swing Hacks and meeting with customers at the JDIC and JDNC booths (more on that in my next blog). It's great to interact with developers (my "customers" essentially) and get some real feedback. The session for Swing Hacks went quite well. I was incredibly nervous (I've never spoken in front of more than 50 people before), but calmed...
on Jul 15, 2005
As I reported a few months back in my STR-Crazy entry, Mustang b27 included an improved, single-threaded implementation of the OpenGL-based Java2D pipeline. With those changes came improved stability and performance (surprisingly). But that work also opened the door for even more performance improvements, mainly because the code was much more centralized and easier to build on. So with that...
on Jul 14, 2005
Versioning, which I'm defining for this entry as how a Java application manages its external library dependencies, has been a tough issue ever since Java first released. Back when Java was born, the vision was that each machine would have a single Java runtime and standard libraries which would always be fully backwards-compatible. The reality has been that for most apps, the only reasonable...
on Jul 13, 2005
It's been a long, fun, and exhausting week. I'm going to get some sleep and vainly try to take a flight home tomorrow. Since I'll be there for hours, most likely, this will give me time to write proper entries about the second half of the week and how the conference went overall. In the mean time, our book Swing Hacks is finally shipping on Amazon and we've hit almost #3000. (as of this evening...
on Jun 30, 2005
It's JavaOne 2005, Monday afternoon, and I'm drifting around Sun's booths on the tradeshow floor. Moscone's meeting halls are two stories tall and underground; it's a basement palace. The cavernous space used by the tradeshow Pavillion must be a quarter of a mile long and a hundred feet high and it's abundantly and artificially lit. It's like being in an aircraft hanger that's inexplicably...
on Jun 29, 2005
i've been enjoying some of the desktop talks at javaone this week. with swing, a common theme for a talk is: tips and tricks to make swing run faster. so some of these talks got me thinking.. so here's a problem: the construction of swing components is an expensive operation. if you're building a fairly dynamic ui in swing, one where you create views on the fly, as a response to...
on Jun 29, 2005

Open JDK

JavaOne is always a huge buzz, and this year was no exception. Of course the technical sessions are very worthwhile, so it's great news that slides and audio for all of them will be available free online. In previous years you had to pay a small subscription fee to access them. But the biggest plus of JavaOne, like any conference, is meeting people with common interests. I brought back a...
on Jul 13, 2005

Embedded

This online article by by Mukesh Lulla, TeamF1 is a pretty good overview of the top 10 misconceptions about embedded security. It's worth mentioning here for a couple of reasons. One: embedded security is increasingly important as more embedded products are provided with a network connection to the outside world. Two: it's generally accepted that the various Java security packages are "better"...
on Jul 8, 2005

Java Enterprise

With Sun's decision to "Open Source" their Java EE app server, it's likely that all Java EE app servers will soon be free. JBoss, JOnAS, Geronimo and Sun's GlassFish are going to exert huge pressure on the holdouts IBM, BEA and Oracle. IBM and BEA are already formulating responses, as is witnessed by the announcements of IBM support and BEA support for Geronimo, but it's hard to believe that...
on Jul 8, 2005
It has been pretty exciting after Sun's Open Source Application Server project GlassFish announcement on Monday morning at JavaOne. James Gosling wore our cute GlassFish t-shirt on stage during the General Session on Tuesday. I was glad to see that many developers came to our booth and shared excitement of the news and interests. We had a well attended GlassFish BOF on Monday night to...
on Jun 29, 2005
Sun Java System Application Server Platform Edition (PE) 9, slated to be open-sourced by Sun soon, is now in development. The product will be integrated with the NetBeans IDE and includes Java Enterprise Edition (EE) 5. Check it out at the GlassFish Project on java.net. First download the binary and deploy an application. Better yet, build GlassFish from square one and contribute to its...
on Jun 29, 2005

Mac Java

Apple offered two surprise BoF's at JavaOne - a "surprise" because they hadn't previously been announced or expected and just appeared in the addendum and corrections to the JavaOne show schedule. Still, about a hundred developers managed to find their way over to the Marriott to see the show. I got there too late to see the formal introductions on the first presentation, which was well into...
on Jul 8, 2005

NetBeans

OK, I got your attention. Now, can we just forget this horse-race and go back to getting some actual work done? No? Oh, fine. So, JavaOne just ended, and everyone's talking about the buzz around these 2 products. There's enough hype around here to stuff a turkey. I saw an interesting post on ZDNet after JavaOne. It was yet another log on the Eclipse vs. NetBeans fire. The content essentially...
on Jul 5, 2005
To wrap up my JavaOne experience, I went to a pub with Tim Boudreau and my co-speaker Jaroslav Tulach. Over the first few drinks, we brainstormed about ways to simplify/embellish the Actions API When we got a little too drunk for that, we started in on the source code to my FeedReader. We hacked around until we figured out a way to embed a JDIC browser in a TopComponent. That was cause...
on Jul 1, 2005

Java Tools

Today, the ubiquity and versatility of the Internet lends a viable and convenient medium for companies to provide services to each other on the Web. Examples abound: purchases of parts and materials, administration and investment of employee 401(k) plans, travel and hotel bookings. The first and foremost requirement for setting up those interactive transactions is security, that is, verifying...
on Jun 30, 2005