New Scripts | Java | Tutorials & Tips
Scaling Web services and applications with JavaGroups
posted byvoltroninDevelopment
As the J2EE platform has matured, it has opened up the opportunity to deploy commodity servers in networked cluster configurations for scaling of Web services and Web applications at the Web tier. These commodity servers, interconnected through commodity LAN hardware, can provide cost-effective clustering solutions. The last piece of the clustering puzzle is in the software. In this seriesSing Li examines three open source software substrates that can enable high-impact Web tier clustering, beginning with JavaGroups.
Reviews0
PriceFree
Views1292
Accessing EJBs through firewalls
posted byanand_sankaraninEJB
Ever try to write a J2EE application accessing EJBs across a firewall? It can be messy, and developers often must resort to all kinds of workarounds, none of them particularly "neat." Developers often write a servlet to intercept HTTP requests and delegate them to EJBs, which is kind of a kludge. Another approach that uses tunneling technologies-such as RMI over HTTP-can entail a big performance hit. But there is a better way. You can solve this problem elegantly by using Java Secure Socket Extension (JSSE).
Reviews0
PriceFree
Views2292
Mash that trash -- Incremental compaction in the IBM JDK Garbage Collector
posted byvoltroninDevelopment
This article discusses incremental compaction, a new feature in the memory management component of IBM JDK 1.4.0. Incremental compaction is a way of spreading compaction work across different garbage collection cycles, thereby reducing pause times. The authors discuss the need for incremental compaction, the compaction phases at a high level, and some runtime parameters. They also explain how to interpret changes in the verbosegc output.
Reviews0
PriceFree
Views1391
Declarative programming of JSP web sites using XML.
posted byanand_sankaraninXML & Java
In any JSP based web site, there could be lots of repetitive web pages. By using tag libraries and XML based definition files, this can be generalized into a framework based rendering. This article illustrates such usage to render a web site.
Reviews0
PriceFree
Views1663
Simplest Multiple Column Sorting (Up & Down) in JSP
posted bytanvaniainDatabase-Related
This is the simplest and fastest code that shows how to implement multiple-column table sorting in JSP (Sort Ascending & Sort Descending).
Excellent for JSP Database beginers
Author: Tanwani Anyangwe
Reviews0
PriceFree
Views3387
Simplest Database Sorting (Up & Down) in JSP
posted bytanvaniainDatabase-Related
This is the simplest and fastest code that implements table sorting in JSP (Sort Ascending & Sort Descending).
Excellent for JSP Database beginers
Reviews0
PriceFree
Views3723
Calculate Distance Between Two Points Using Longitude & Latitude
posted bytgotchiinMiscellaneous
Tutorial and sample codes to calculate the distance between two locations. Free sample source codes in PHP, ASP, ColdFusion, C/C++, C#, Java, Perl, Visual Basic and Javascript. Longitude and latitude for United States ZIP Code and Canadian Postal Code are available in database subscription.
Reviews0
PriceFree
Views2438
EJB 2.1 Kick Start : Implementing a Solution Using EJB 2.1.
Sample chapter from "EJB 2.1 Kick Start" on installing an application server to developing and deploying an EJB on it.
Reviews1
PriceFree
Views2097
Java 2 Micro Edition (J2ME) Application Development : MIDP Programming.
Sample chapter from "Java 2 Micro Edition (J2ME) Application Development" on Mobile Information Device Profile programming.
Reviews0
PriceFree
Views2920
Configuring Slide with Catalina
posted bykaraninDevelopment
This article tells about the 2 architectures that we can use to build applications with Servlets and JSP.
Reviews0
PriceFree
Views1090
Java Web development sans JSP pages, Part 1
posted bymgmendozinMiscellaneous
JSP technology is well-known, supported by most application servers, and endorsed by the J2EE Blueprints. Why would you choose otherwise? In this first of a two-part series, learn about the Tea template language and how Tea can be a viable alternative to JSP technology.
Reviews0
PriceFree
Views910
JMS 1.1 simplifies messaging with unified domains
posted bymgmendozinCommunication
JMS 1.1 unifies point-to-point and publish/subscribe domains, allowing developers to create more general, reusable messaging code. 1.0.2 API provides little support for an application using both domains together, and no support for developing reusable frameworks that can work equally well with destinations of either domain. JMS 1.1 fixes this shortcoming by unifying these domains. This article explores how much easier it is to develop JMS client code using the latest version.
Reviews0
PriceFree
Views1635
ZipServlet
This article aims at presenting how to create a servlet that sends a zip file to the user.
Reviews0
PriceFree
Views1239
Using Java to read bar codes
posted bymgmendozinMiscellaneous
This article takes a new look at UPC symbols and bar codes, and describes how you can use Java to read information from a UPC bar code. The authors explain how to expedite and organize your enterprise operations that revolve around an IBM DB2 database. The sample application described in the article includes downloadable code.
Reviews0
PriceFree
Views1462
Turning streams inside out
posted bymgmendozinMiscellaneous
Add more versatility to your existing Java framework. The same framework supports file access, network access, character conversion, compression, encryption and so forth. This article presents a framework that lets an application efficiently read data from a source that only supports writing data to an output stream.
Reviews0
PriceFree
Views1241
XML generation with JAVA
posted byebspinXML & Java
XML developers used to rely on XML parsers to read XML files. They also used to rely on XML processors to transform XML to *ML (HTML, XML, etc.). However, most of them forget these tools to generate XML from scratch. They should not. This article presents code samples for generating XML with JAVA/JAXP.
Reviews0
PriceFree
Views4670
Swing's new JFormattedTextField component
Accepting formatted input doesn't have to be difficult with input verifiers and focus listeners. This installment of Magic with Merlin shows you how to use the new JFormattedTextField component to prompt for numbers, dates, and formatted input. The Java 2 Standard Edition (J2SE), version 1.4, adds two new Swing components to the palette of available GUI elements: JSpinner and JFormattedTextField.
Reviews1
PriceFree
Views2974
Diagnosing Java code: The case for static types
posted bymgmendozinDevelopment
Love or hate it, static type checking can make code more robust. Programming languages are moving away from static type checking, but it is too powerful a debug resource to abandon. Static type checking can be one of the key weapons in a powerful arsenal against introducing and for detecting bugs. This article explains why we should be glad that the Java language supports it, and discusses how it can be made even better.
Reviews0
PriceFree
Views1237
EJB exception handling
As J2EE has become the enterprise development platform of choice, more and more J2EE-based applications are going into production. One important component of the J2EE platform is the Enterprise JavaBeans (EJB) API. Together, J2EE and EJB technology offer many advantages, but with these advantages come new challenges. In particular, any problem in an enterprise system must be resolved quickly. In this article, Enterprise Java programming veteran Srikanth Shenoy reveals his best practices in EJB exception handling for faster problem resolution.
Reviews0
PriceFree
Views2229
Double-checked locking and the Singleton pattern
posted bymgmendozinMiscellaneous
Examine the roots of the double-checked locking idiom, why it was developed, and why it doesn't work. The Java programming language contains several useful programming idioms. It also contains some that further study has shown should not be used. Double-checked locking is one such idiom that should never be used.
Reviews0
PriceFree
Views1089