Author: krishna

XProc: An XML Pipeline Language

An XML Pipeline specifies a sequence of operations to be performed on a collection of XML input documents. Pipelines take zero or more XML documents as their input and produce zero or more XML documents as their output. A pipeline consists of steps. Like pipelines, steps take zero or more XML documents as their input…

Read More

SML, What is it?

The Service Modeling Language (SML) provides a rich set of constructs for creating models of complex services and systems. Depending on the application domain, these models may include information such as configuration, deployment, monitoring, policy, health, capacity planning, target operating range, service level agreements, and so on. Models provide value in several important ways. Models…

Read More

Some Useful -XX Options JDK 5 or higher

The options below are loosely grouped into three categories. Behavioral options change the basic behavior of the VM. Performance tuning options are knobs which can be used to tune VM performance. Debugging options generally enable tracing, printing, or output of VM information. Behavioral Options Option and Default Value Description -XX:-AllowUserSignalHandlers Do not complain if the…

Read More

Binding XML attribute to a DataGrid column

Most binding examples work with a flat XML structure. However, in most cases the format of the data attribute will not work directly with Flex components. I was looking for a way to bind XML attributes to a DataGrid in Flex. XML:     <Vehicles> <Vehicle id=”1″ status=”SUCCESS”> <car type=”ford”>my car</car> </Vehicle> <Vehicle id=”2″ status=”SUCCESS” />…

Read More

Why I picked Flex and not JSP / JSF

• Flex and JSP applications interact effectively with the browser caching mechanism to eliminate redundant loading of resources from the client. • Flex applications are delivered as complete, self-contained applications, while JSP applications generally require a round trip to the server to generate the next page of the application. These architectural differences have the following…

Read More

6 new Features on JSP & Servlets

If you use a web container such as Tomcat 5.x, which supports Servlet API 2.4 and JSP 2.0, then you can use a number of useful new features. These include: 1. Servlets as Welcome Files Welcome files are automatic web server responses to requests that specify only directories, not specific web components or files. When…

Read More

DEBUG tomcat with eclipse

Whichever platform you are using (Tomcat or JBoss) you need to start them with the JPDA debugging enabled. For Tomcat this is very easy. In the $CATALINA_HOME/bin directory there is a script catalina.sh. If you provide the arguments ‘jpda start‘ tomcat will startup and listen on port 8000 for a debugger connection. The value of…

Read More

Webservice call via ActionScript

I was using Flex the other day to consume some SOAP web services. However, I needed a way to invoke webservice in action script. I read almost all search pages from yahoo, live, ask, & google and I did not find solution. At last, I stated coding just like Java WebService test client and it…

Read More

AJAX with DWR

The DWR (Direct Web Remoting) project is an open source solution under the Apache license for the developer who wants to use AJAX (Asynchronous JavaScript and XML) and XMLHttpRequest in an easy way. DWR helps you keep focused on how to improve your application’s interaction model, removing the burden that comes with coding and debugging…

Read More

JDK 1.5 Language Enhancements

Overview Generics Enhanced for loop Autoboxing and auto-unboxing Typesafe enumerated types (enums) Variable arguments (varargs) Static imports Metadata – Annotations One of the main considerations in creating J2SE 5.0 was the ease of use for programmers. This slide lists some of the main changes to the language specification: Generics provides compile-time type checking and eliminate…

Read More