Wednesday, March 04, 2009
Maven vs Ant+Ivy
The most important thing a build management tool should provide is improved productivity of the development team. Developers have to deal with the build management tool on day to day basis. If the build management tool is not right for the team, it will create frustration in the team members which may result in not so good position for the project.
One tool can not fit every team and every project. The right tool must be chosen based on its audience and the project requirements.
I think most developers from Open Source and Java community prefer command line based tools such as ANT or Maven. These tools are flexible (easy to enhance), scriptable (and hence can be automated). These avoid dependency on any IDE and can be used from a remote terminal.
In some cases, however, depending on the type of project and team, IDE can be a better build tool. It offers click and build features. Debugging is, I think one of the biggest feature of using an IDE. This will be a natural choice for people from Microsoft background. If the team has most of such developers, don't try to push command line based tools on them. The migration should be gradual.
I prefer to use non-ui based build tools.
I had been using ANT for past many years and simply loved it. ANT scripts are very simple to develop and use, and develop. It is also very simple to understand and follow its execution. It has very good documentation and consistent way of doing things. Despite its simplicity ANT is very flexible.
However, everytime I start a new project, I had to create a new script (not fun). I had to download all the libraries that I will need in the project, put them in some folder. I also need to understand the dependencies between these different libraries. Now I need to modify ANT script to manually manage the dependencies and blah blah blah....too much pain.
Doing the above was fun for first few times but when I had to do it again and again, I started to dislike it.
Moreover, all IDEs, despite their claims, don't have good integration with ANT. People will say, hey Eclipse, NetBeans, IntelliJ etc. can import ant based projects and can build using ANT script. But none of these IDE can understand the library dependency defined in the ANT script. As a result, I can't trust IDE to resolve classes and code completion. What a shame.
Last year, I was introduced to the wonderland of Maven. After some initial learning curve, I became comfortable with it and I really started to like it.
Maven gives you library dependency management (the biggest pain in ANT). It can automatically create default project directory structure and initial pom.xml based on the type of project you create. It has concept of project build life-cycle and even without modifying the default script, you can build and release the project.
You can have multi-module project and create dependencies between them. When doing a build on multi-module project, it can automatically identify the correct sequence of building module.
Wow Maven is a wonderful tool. It does so much for you. I don't need to download libraries that I use (at least most of them). I can simply define dependency in the maven script and all the required libraries (including transitive dependencies) are downloaded during Maven build.
Eclipse and Netbeans also support Maven and understand library dependencies defined in the Maven script.
And then...
As I worked more with Maven, I realized that Maven is not flexible at all. Although, it offers so many features but does not allow me to anything unconventionally.
For example everything part of the script has to fit within the Maven project lifecycle. Let's say if I want to start http tunnel for monitoring the traffic. How do I do that? Starting an http tunnel is not part of project life cycle. May be it is...some people will argument...but some things don't have to be perfect....they have to be simpler and flexible...At the end of the day getting things done and done faster is all that matters.
I can not use any library outside of Maven repository. If some library is not available in any Maven repository, Maven guide tells me to put that library in local Maven repository manually. That is not cool. In this case I can not distribute my code among my team members. Assuming that there is no local central repository, everybody in my team will have to add the library manually. I don't like that.
As far as writing a script is concerned, I complained about ANT before. However, I should have also mentioned that the ANT script notations and structure are so simple and consistent that I can almost always write the initial ANT script (compile, run, clean javadoc deploy etc) without referring to any documentation.
I can not say the same thing for Maven. Even if all I need to do is enable Java 5 compatibility in my Project, I have to refer to it's documentation (who remembers name of all the plugins, group id, version numbers blah blah blah).
(I should also say....what the hack....Java 7 is due pretty soon and Maven assumes that the new projects are going to use Java 1.3 ???????..very annoying)
As other people described about Maven, it is like a black magic. It magically does too much stuff for you...How....you don't know....You have no idea what it did underneath but it was done. May be it is good thing for some people but I found it very annoying. When it does not work, it is very difficult to follow through its execution and discover problems.
Maven tries to force you to do things like the Maven way, while ANT allows you to do things your way.
With Maven, you are like a lion in a cage. You are enjoying tasty food everyday but are not free to go anywhere. With ANT you are like a lion in a jungle. You are free; you can do anything but you have to hunt for your own food and sometimes you may not even find one.
Each project is different. The environment and the constraints are always different in each project and there is no single solution to all of them.
Each project may have different needs and may not fit into perfect life cycle and the project structure of Maven.
Ant provides the flexibility. With Ant you really need are plugins that provide Maven features without Maven restrictions.
One of the biggest feature of Maven IMHO is dependency management. Apache Ivy adds this feature to ANT.
Apache Ivy is very similar to Maven in dependency management. You define project's library dependencies in ivy configuration file, add its reference in the ANT script and that's pretty much it.
Apache Ivy can also understand Maven repository.
The ANT + Ivy allows you to mix repository based libraries and non-repository based libraries. I can put non-repository based libraries in a special folder in the project and reference it in ANT.
The good thing about this solution is that it provides you dependencies management while enjoying the freedom of ANT as opposed to caze of Maven.
It gives you controlled, predictable, transparent solution with no surprises. And that is exactly what I want.
However you should also remember that there are still certain nice features about Maven that are not provided by ANT +Ivy solution (such as project life cycle management, integration with central repository+version control system, ability to publish/release projects just to name a few).
These features are, though easily implementable, have to be developed in-house.
One more thing, Eclipse has good integration with Ivy. Netbeans lacks such integration. Well..I think we will see this soon.
Because of the flexibility ANT ( + Ivy) will be my first choice for the time being.
I would also like to see a plugins/features can auto-create IDE independent ANT script and project directory structure for well known projects (should be pluggable so that people can contribute more project types)...similar to artifact-type in Maven.
Tuesday, May 13, 2008
http://www.vmware.com/solutions/whitepapers/msoft_licensing_wp.html
Let us see how long will the Microsoft be able to deny the evolution in hardware Virtualization.
Monday, May 12, 2008
Should I use JPA in my Business Application?
Why I love JPA is because it promises to relieve and Architect from making early decision for choosing a persistence engine। A development team can start the development with most common persistence engine। Since the application uses standard JPA, the application Architect can take time to evaluate and identify the best persistence engine for the application.
Well! Does JPA 1.0 live to its promise? Not really. I learned it the hard way. There are many features which are crucial in building an enterprise application but are missing from JPA 1.0. However these features are already implemented by all major persistence engines. Some of these missing features are :
- JPA does not support deleting orphaned children. For example, I have two persistence entities; Order and LineItem. The relation from Order to LineItem is composition. An Order can contain many LineItems. LineItem entity's life is bound to an Order. It can not live on its own. Well now user creates an order, adds a line item to the order and saves it. User then deletes old line item from then order and adds a new line item and re-saves the order. Now what happens during second save is that JPA instructs underlying engine to delete the association between first line and order however the line item itself is never deleted. It's order id will be null. If you put constraint in the database that order_id in lineitem table can not be null, the second save operation will fail with database constraint exception. Well hibernate has an additional annotation @CascadeType.DELETE_ORPHAN' to delete such orphan children. TopLink has similar extension. I don't know how did JPA spec team missed such an important feature.
- JPA 1.0 has lack of custom datatype mapping to database. Support for Boolean is weak in JPA. I know Database savvy people (especially oracle savvy) like to represent boolean flag with single character column with possible values of 'Y', 'N' or null however, Java people like to represent it with and attribute of type Boolean. How do we fill the gap? Well hibernate allows one to specify different type of mapping for boolean. You can choose datatype as yes_no. However JPA 1.0 does not have any equivalent.
- JPA supports JPQL which is a huge step forward from old EJBQL. However, since JPA does not have support for Criteria API (similar to the one in Hibernate), developers are left to deal with the mess of String manipulation for building dynamic JPQL for the given dynamic search criteria. Dynamic search criteria isn't uncommon for any enterprise application. In small application, you might see very messy code that does criteria comparison and string manipulation. Or for big projects, you will see a home-grown solution that is similar to Hibernate Criteria API.
- This list can go on and on such as missing support for primitive array. However, I think I made the point.
Now in order to fill the gap, we have three options:
- We can write the application code to fill the missing gaps.
- We can write home grown abstraction layer that hides the internal details of vendor specific extensions.
- Or we can commit ourselves to a specific persistence engine and use it's extended features.
I think everybody will agree with me that option 1 should be out unless you know what you are doing (special defense project, need extremely high performance system, manager got too much money to spend)
If I am standard savvy, Sun Microsystem's employee or working for a large project, I will choose the second option as it still leaves the door open for using different persistence engine in future.
Well, I am though standard savvy. But over many years I learned that a business does not give a “****” to the standards. All it cares about is a solution that can be developed within budget by given developers and will be able to keep their business running. So for small to medium size projects, I will recommend on using a concrete persistence engine. Believe me, it will save you lot of time and energy during the design and development.
I hope that I don't have to stick with my decision for long time. I have seen the JPA 2.0 specification which seems to address many issues with JPA 1.0. I hope with the release of JPA 2.0, we should be able to use standard based persistence solution in the application.
Friday, April 18, 2008
Why I like Anemic Domain Model?
Martin Fowler, whom I respect, coined the term Anemic Domain Model (ADM) and called it anti-pattern.
At first, one will tend to agree with what Martin is saying. In OO design, objects must carry their state as well as their behavior. Having objects just with state (Entity Beans, Hibernate Entities) is same as C struct. Similarly having objects with just behavior (Stateless Session Beans) is transaction script pattern which is procedural style of programming.
In pure OO world, domain objects should have both state which is business information and behavior which are business rules. People call this Rich Domain Model (RDM).
Sounds good? Okay...sounds good only for small single tier desktop application.
What about multi tier and/or distributed applications? Well...then many questions pop in the mind.
What about separation of concerns? Aren't we mixing persistence concern with business logic concern?
Are Rich Domain Objects more reusable in different application? It doesn't look right. Generally Business Information is more reusable across different applications then the business rules. That is why integration between different applications is web services (XML) based. If that wasn't true, we should have seen Jini being more popular for enterprise integration then XML.
What about distributing the work in a large team? Doesn't Rich Domain Model requires all team members to be expert in all technologies? Doesn't this increase the cost of development?
I still don't have much trust in MDA and hence don't believe that complex Rich Domain objects can be auto-generated. I think C# has support for partial classes to solve such problem but there is no equivalent in Java.
In a real enterprise business application, business rules and business policies are more volatile than the business information. Well in a Rich Domain Model, both are combined into same classes, there is no exercise to distinguish and break down the classes into more stable package vs less stable package. Regardless of whether business information changes or business rules/policies change, same set of classes are going to be affected. Does it sound good approach? Not to me.
What about using Rules engine? Can these be still used with Rich Domain Model? If so how? Doesn't this require the rules and policies that alter the data to be separated from the data itself?
How are these Rich Domain objects implemented. Are these simply POJO or these are objects which are similar to classes that combine Stateful Session Bean and Persistent Entity? From the articles on internet and material in books, it appears that The answer here should be POJO.
In a multi-tier application, what does client/presentation tier see? Are Rich Domain objects exposed to the client? Can client invoke business methods locally?
What about the transactional boundaries? How do I ensure that business rules are executed as part of a transaction? If client is able to call the business rules methods locally, there is no transaction, there is no data source available. In real enterprise application, the connection to database server is protected and only the application server and few DBAs are allowed to connect to it. For a web only application, the data source issue shouldn't be there but what about the application that uses Rich Desktop client (Swing)?
Well even after reading many books that advocate Rich Domain Model, I don't seem to get clear answers to above questions.
Rich Domain Model is good from OO purism point of view. In fact its 'the' way of writing non-distributed applications. It should also be the choice for writing distributed application written in Jini.
However, for real enterprise applications, I will be more inclined to use ADM because:
I know that ADM works.
It allows good work distribution in a large team.
Model can be created in an iteration that precedes service objects development and presentation tier (and client tier) development.
- Project sponsors in a Corporate don't care about OO purism. The bottom line for them is to deliver an application that is easy for the developers to write, can be delivered on time and in budget and which works.
Wednesday, April 09, 2008
Adaptive Persistence Model
Background
Complex enterprise systems have large number of persistence objects with complex relationships among these objects. In J2EE architecture these persistence objects are represented as Entity Beans. In this article we will assume that architecture is based on Container Managed Persistence (CMP), although the solution remains the same for Bean Managed Persistence. The relationship between persistence objects (Entity Beans) is represented as Container Managed Relation (CMR).
In order to avoid remote calls while accessing each field of entity bean, all practical architectures use Local Interface, session facade and value objects. We will assume that readers are familiar with these patterns and will not discuss them here.
When business tier needs some data from persistence tier, it will request session facade. Session facade will initialize the requested entity bean. This entity bean might also have several dependent objects defined by CMR, e. g., Person entity bean might have Address as dependent entity bean. Client who requested Person object might also need Address object. There are two options for loading these related objects. These options are discussed in following sections.
Aggressive loading
When an entity bean is initialized, all other related entity beans as defined by CMR are also loaded. When 'getValueObject()' method of entity bean is invoked, it also loads value objects from dependent CMPs, builds a complete object graph and returns that. Because of cascade read of dependent objects from database, this method call is very expensive in terms of both performance and resource usage.
The benefit of this approach is that caller will have access to all the fields/attribute of requested persistence object without having to make additional remote invocation and a trip to database.
But the problem with this approach is that it loads all the related entity beans regardless of whether caller needs them or not. If caller does not need dependent objects, then loaded objects will unnecessarily consume system memory. Since this method call has significantly slower response and high resource usage, using it for every persistence tier call might impact the system performance significantly making it unacceptable solution.
Lazy loading
The second approach of loading CMR beans is based on lazy loading. When an entity bean is initialized, only its CMP fields are loaded. Initialization of all fields defined by CMR is differed. The 'getValueObject()' method of entity bean will return a value object which has just CMP fields populated. All CMR fields on value object will remain null. The value objects are enhanced to implement the following logic in getter methods which return dependent object
If dependent object has already been loaded, simply return that.
If dependent object has not been loaded, retreive it by making a request to persistence tier, store it locally (to avoid remote calls for subsequent requests) and then return it.
Using this approach, caller does not have to write a special code for loading partial objects. Lazy loading is transparent from caller.
The benefit of this approach is that it does not load any unnecessary objects into memory thus saves unnessary database calls and server resources. Since the call to 'getValueObject()' is relatively inexpensive, caller might observe significant improvement in response time.
But if caller needs any dependent object and calls corresponding getter method on value object, this approach requires a round trip to persistence tier which involves remote call and database operation. If round trips to server is made only a few times, this approach will outperform the first one and should be acceptable. But in a complex business application total number of objects in object graph might easily be of the order of hundreds or even thousands. A business rule might need most or all dependent objects in order to make a business decision. This scenario will require value objects to make hundreds of remote calls and database operations in order to load all required dependent objects and might affect the system performance significantly.
Hybrid option
Obvisouly none of above two approaches can provide an elegant solution to meet varied needs of persistence model required by most enterprise systems. One might suggest using a hybrid approaches. One approach could be to allow client to specify a list of all required dependent objects when requesting a persistence object from persistence tier. Persistence tier will pre-load only requested CMR fields and will leave all other CMR fields. If caller happens to call getter for non-retreived dependent object, it will be retreived using lazy-loading approach so that caller does not see unexpected NullPointerException. Although this solution seems elegant in most cases but it has the following problems:
It requires carefull inspection of the code in order to determine optimized set of CMRs to pre-load.
Caller has knowledge about persistence tier's internal implementation. It breaks the decoupling rule.
Since customer requirements change, this appraoch will also require developers to make sure that they modify the CMR set appropriately. In other words this approach is very vulnerable to requirement/implementation change.
Adaptive hybrid approach
This approach is mostly based on hybrid approach. It uses value objects similar to one used in lazy loading. But it differs from regular hybrid approach in that instead of requiring client to specify set of CMRs to pre-load, it uses an adaptive rules engine to make that decision. This rules engine uses caller's context and a knowledge base to determine the set of CMRs which should be pre-loaded with requested entity bean. In the beginning when knowledge base of Rules engine does not have enough information, Rules Engine might not determine correct set of CMRs to pre-load. In this case caller may still have to make remote invocation (and database call) to retreive a dependent object. Rules engine will use such incident to learn and enhance its knowldge base. Over the period of time, when knowlege base has evolved, Rules Engine should be able to make correct decision and pre-load only those CMRs required by caller. The whole pre-loading mechanism is encapsulated from caller. Following section discusses design of rules engine.
Rules Engine uses caller's stacktrace to determine its context. It stores caller's context and set of requested CMRs in the knowledge base. One caller's context might have multiple entries in knowledge base with differing set of CMRs defined. It assigns a weight to each entry. This weight is updated during engine's learning process. It bases its decision of loading CMR on 1) caller's context and 2) highest weighed entry in knowledge base.
When system creates the value object graph, it assigns a unique id to that object graph. All value objects in that graph will share the id but this id will be different from any other object graph. Rules based engine will store this id, pre-loaded CMRs and caller context in a temporary storage. If any value object has to retreive the dependent object from serve because it was not pre-loaded (known as miss), it will also pass the id to persistence tier. Rules engine will use this id and requested object information to update its knowledge base. It will add requested object information into pre-loaded CMR. Value Objects also keep track of whether it was ever invoked by the caller. When the value objects are garbage collected, system calls their 'finalize' method. Value objects use this method to send information back to rules engine to help it improve its knowldge base.
When rules engine receives a notification from value object about its life cycle event, it updates the CMR list associated with the id. If any value object was never used by caller, it will remove the object from CMR list. After rules engine has finished updating the CMR set, it will verify this set against already existed set for same caller in knowledge base. If new CMR set already has an entry in knowledge base, rules engine will just update its weight. Otherwise it will add new entry into database with new CMR set and assign it a weight.
Thursday, March 13, 2008
E4X (ECMAScript for XML)
E4X is a scripting language extension that adds native XML support to ECMAscript. It does this by providing access to the XML document in a form that feels natural for ECMAscript programmers. The goal is to provide a simpler API for accessing XML documents, than other common APIs, such as DOM or XSLT.
Lets take a look at a few examples of how you can read XML data using E4X.
You will be able to create variables of type XML by parsing a String. But XML literals will now be supported as well:
var employees:XML =
<employees>
<employee ssn="”123-123-1234″">
<name first="”John”" last="”Doe”/"></name>
<address>
<street>11 Main St.</street>
<city>San Francisco</city>
<state>CA</state>
<zip>98765</zip>
</address>
</employee>
<employee ssn="”789-789-7890″">
<name first="”Mary”" last="”Roe”/"></name>
<address>
<street>99 Broad St.</street>
<city>Newton</city>
<state>MA</state>
<zip>01234</zip>
</address>
</employee>
</employees>
;
Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X you just “dot down” to grab the node you want. Multiple nodes are indexable with [n], similar to the elements of an Array:
trace(employees.employee[0].address.zip);
—
98765
To grab an attribute, you just use the .@ operator:
If you don’t pick out a particular node, you get all of them, as an indexable list:
trace(employees.employee.name);
—
<name first="”John”" last="”Doe”/">
<name first="”Mary”" last="”Roe”/">
(And note that nodes even toString() themselves into formatted XML!)
A handy double-dot operator lets you omit the “path” down into the XML _expression_, so you could shorten the previous three examples to
trace(employees..zip[0]);
trace(employees..name);
You can use a * wildcard to get a list of multiple nodes or attributes with various names, and the resulting list is indexable:
trace(employees.employee[0].address.*);
—
—
<street>11 Main St.</street>
<city>San Francisco</city>
<state>CA</state>
<zip>98765</zip>
trace([EMAIL PROTECTED]);
Doe
You don’t have to hard-code the identifiers for the nodes or attributes… they can themselves be variables:
—
var whichNode:String = “zip”;
trace(employees.employee[0].address[whichNode]);
98765
—
var whichAttribute:String = “ssn”;
trace([EMAIL PROTECTED]);
789-789-7890
A new for-each loop lets you loop over multiple nodes or attributes:
—
for each (var ssn:XML in [EMAIL PROTECTED])
{
trace(ssn);
}
123-123-1234
789-789-7890
Most powerful of all, E4X supports “predicate filtering” using the syntax .(condition), which lets you pick out nodes or attributes that meet a condition you specify using a Boolean _expression_. For example, you can pick out the employee with a particular social security number like this, and get her state:
var ssnToFind:String = “789-789-7890″;
trace(employees.employee.(@ssn == ssnToFind)..state);
MA
Instead of using a simple conditional operator like ==, you can also write a complicated predicate filtering function to pick out the data you need.
E4X has complete support for XML namespace.
Compared with the current XML support in the Adobe Flash, E4X allows you to write less code and execute it faster because more processing can be done at the native speed of C++.
Friday, January 04, 2008
Persistence Objects and Object Equality in Java
When you recommend this approach, bright mind people will dismiss this idea by making following arguments
- Java Language Specification says that two objects are equal only and only if their state is equal.
- In long lived enterprise applications (i.e. applications which will live longer than 5-6 years) the database key for some of the tables might have to be recycled because of the constraints of size of primary key field. In such case you can not use database key as two different records can have same primary key ( i.e. one before recycle and second after recycle)
In my opinion above arguments are only partially valid.
- In most application (including enteprise, scientific and novice), the equality operation requirement says that two objects are equal only if they represent the same physical entity regardless of their state. If two different objects share the state, they are identical but not equal. For example, in real life if you take snapshot of one person at the different times, the state of that person might be different, but these snapshot represent the same person. A record in database represents an entity. Similary two persons might share the state (such as name, physical attributes, health condition, place, academics, jobs etc.) but they ARE different persons and that is why govenment came up with an artifical concept such Social Security number to distinguish them.
- If two objects have same primary key because of recyle, these objects will have been created at least 5-6 years apart. Also since database is very strict about not allowing duplicate primary key, previous set of records must have been archived into dataware house and removed from the database used for OLTP. In such case I don't see why and how will you create these two objects in the same application. As a result, I don't see why will you into hypothetical problem described in the point 2.
Tuesday, November 14, 2006
Sun in Open Source
Open sourcing is not a new move for Sun. Sun has been in open source for a long time now.
Its Java IDE NetBeans is open source for past 6-7 years.
OpenOffice has been open source for 5-6 years now.
Its Java application server, code name Glassfish is open source for over 1 year.
Solaris operating system is now open source as well (known as OpenSolaris). You can download OpenSolaris live CD (known as Belenix) and run it from your Laptop.
Sun was not releasing its Java Virtual Machine as open source for the longest time. The reason of this was that Sun wanted to avoid multiple forks of incompatible JVM implementations.
Since now Sun has released JVM implementation under open source, one has to pass compatibility to be called Java. But still I don't think that is enough and will stop companies/people from making their own JVM that is incompatible.
I am afraid that the fate of Java can be same as Linux.
People in on internet kept saying that IBM has won the battle in open-source and I disagree with that. IBM has just embraced Linux operating system and now cashing on that. They didn't donate their own patents or major technologies (except eclipse which is named such to indicate that it will fade the Sun's glory) to open source world. AIX operating system, the WebSphere suite, Rational Rose Suite and DB2 are still closed source products.
While Sun has donated its Solaris operating system to open source. It has given revolutioning technologies such as DTrace, containers and ZFS to open-source world. it has even open-sourced its Sparc chip architecture (known as OpenSparc).
Sun is not into Software business and they are not into Services business either. They want to make money by selling boxes (hardware).
Sun has always been a big promoter of open source ideas but its problem is that it does not yet know how to translate the open-source model into cash flow for its business.
Monday, May 08, 2006
Belenix - OpenSolaris Live CD
Few days ago I came to know that Sun Engineering has released a OpenSolaris live CD/DVD called "Belenix". So I decided to give it a try.
Since OpenSolaris platform is not targeted for personal computing use, there is no point in installing it on a laptop. But for enthusiast developers, Belonix Live CD should give an opportunity to try and learn new features of Solaris.
As of today Belonix comes with following applications/tools
# Xorg 6.9
# Supports KDE and Gnome2.14 desktops
# DTrace Toolkit Guide
# Mozilla Firefox Browser v1.5
# Thunderbird EMail client v 1.5
# ImageMagick and Gimp
# Supports ZFS
I will post more information after I try the Belonix.
Good luck
Sunday, May 07, 2006
Open Document Format Gets ISO Approval
OpenDocument Format Alliance is a coalition of more than 35 organizations from across the world whose goal is to enable governments and organizations to have direct management and greater control over their documents. The alliance—whose supporters include many of Microsoft's Linux and open-source foes such as Corel, IBM, Novell, OpenOffice.org, Opera Software, Oracle, Red Hat and Sun Microsystems—is essentially positioning the XML-based ODF (OpenDocument Format) as the alternative to other document formats like Microsoft's OpenXML, which is the new file format that will be used in Office 2007 when it ships later this year.
Industry should thank to Sun Microsystems for giving up control of the format and allowing it to evolve in a real community way in OASIS under an open process.
The standard will give vendors a baseline for file format and allow them to compete on implementations rather than competing on incompatible standards. This will give customer options to choose from different products without worrying about incompatibility of files.
This event is an important step in the effort to help customers to find a better way to preserve, access and control their documents now and in the future without having to depend on a single vendor.
For more information about this event, please read eweek article.http://www.eweek.com/article2/0,1895,1957321,00.asp
Tuesday, May 02, 2006
Sun Certified Enterprise Architect Study Resource
Monday, April 24, 2006
Protecting your computer
Whenever you connect your computer to Internet, your computer is exposed to millions of different attacks. The result of these attacks could be infection with new viruses, adwares / spywares, stealing your personal information, stealing your identity, sending spam, using your machine as source of attack on other machines on Internet and worse.
If your have broadband Internet connection, you are even more vulnerable to all those attacks as your computer is connected to Internet all the times.
What are these attacks?
The attacks to computer are done in several different ways.
Virus
Malicious small programs that easily replicate themselves, infect your computer, and often spread to others' computers via email attachments or network traffic.
Virus programs can delete files, format disks, attack other computers or just make your system run slowly. They can also create a "back door" that allows a hacker to run programs on your computer or to access into your files.
A computer infected with a virus may suddenly act in unexpected ways. For example, it may take longer to access files or to start up programs, or it may lock up often. You may also notice uncommon sounds being played from your speakers, a variety of images popping up on the screen, or problems starting your computer. These are all signs that your computer could be infected with a virus.
Phishing
The term "phishing" (pronounced "fishing") refers to a form of fraud that uses e-mail messages that appear to be from a reputable business (often a financial institution) in an attempt to gain personal or account information. The e-mail message typically includes a link to a fake Web site that appears identical to a legitimate page. The fake Web page is used to collect the requested information. This information is then used for fraudulent purposes.
Once personal or account information is obtained, "phishers" may access your bank or credit card accounts, open new accounts in your name, or cash counterfeit checks on your account. For more information, see Identity Theft.
Spyware
Spyware is software that gathers information about your Web-surfing habits for marketing purposes. Spyware "piggybacks" on programs you choose to download. Tucked away in the fine print of user agreements for many "free" downloads and services is a stipulation that the company will use spyware to monitor your web habits for business research purposes.
Spyware takes up memory and space on your computer. It can slow down your machine, transmit information without your knowledge, and lead to general computer malfunction. One of the most widely-used Web browsers, Internet Explorer is especially susceptible to spyware-related problems. You may choose to keep certain spyware programs on your computer in exchange for the free services that accompany them, but you should be aware of how that might affect your computer.
Adware
Adware is a component in software applications that displays ads while the program is running. For example, adware is included with web-based email programs that give you free email in exchange for viewing ads. Adware "piggybacks" on programs you download from the Internet. Tucked away in the fine print of user agreements for many "free" downloads and services is a stipulation that the company will use adware to post advertisements on your computer.
Adware takes up memory and space on your computer. It can slow down your machine, transmit information without your knowledge, and lead to general computer malfunction. You may choose to keep certain adware programs on your computer in exchange for the free services that accompany them, but you should be aware of how that might affect your computer.
Spam
Spam is unsolicited commercial email (from legitimate or illegitimate sources), recognizable by its suspicious subject lines and unexpected or unknown sender.
For the most part, spam is an annoyance. Spam often contains questionable content and may include attachments that contain viruses.
Identity Theft
Identity theft occurs when someone uses your personal information (i.e., your name, Social Security Number, credit card number or other identifying information) without your permission, usually to commit fraud or other crimes.
Daily activities such as writing checks, charging an item to your credit card, and forgetting to log off your computer system can increase your risk of identity theft. Victims of identity theft often have to spend lots of time and money cleaning up their personal and financial records. In the meantime, they may be refused loans, housing or cars, or even get arrested for crimes they didn't commit.
How to protect your computer
Use secure and more stable operating system
You should pick operating systems based on the priority sequence as shown in following list. Note Macintosh is not mentioned in following list because it installs only on Apple machines.
- Secure Linux: If possible use Linux (with enhanced security) OS.
- Windows XP: If you can not use Linux, then use Windows XP with internal firewall enabled.
- Windows 2000: Use Windows 2000 as last resort. Always install firewall and antivirus software before connecting your machine on Internet for first time.
- Absolutely no to Windows ME, Windows 98 or any predecessors.
Use antivirus software
Anti-virus software protects email, instant messages, and other files by removing viruses and worms. Anti-virus software downloads new virus protection updates to protect against new threats. It also quarantines infected files to keep a virus from spreading on your computer and can repair infected files so you can use them without fear of damaging your computer or spreading a virus to others. If you use windows based operating system, you should always install good antivirus software. Following are options of good antivirus softwares
- Norton antivirus
- McAfee antivirus
Keep antivirus software updated
New viruses are born and spread through Internet everyday. If your antivirus software's virus database is old, it will not be able to protect you from new viruses. You should regularly update virus definition for your antivirus software.
Install firewall
Regardless of operating system, you should have firewall enabled on your machine. Linux already comes with firewall, so you don't need to install any additional software but you should make sure that your firewall is enabled and configured correctly. Windows XP also comes with firewall but might not be enough to protect you from all attacks from Internet. You should always get additional firewall software for windows and install it on you machine. Following are the options of good firewall software
- Symantec/Norton Personal Firewall (commercial)
- McAfee personal firewall (commercial)
- ZoneAlarm (Free but very restrictive)
Install OS patches and updates
Always keeps your operating system updated. This applies to both Linux and Windows based operating systems.
Browsing Internet
Use Mozilla FireFox as alternative to Internet Explorer for browsing Internet. The FireFox provides several features (e.g. popup blocker) and extensions (e.g. adblock, spoofstick etc.) to block unwanted contents from Internet. It has less security holes compared to Internet Explorer. Firefox is also available for Linux and other operating systems.
Accessing Emails
Email Client
Use Mozilla Thunderbird as alternative to Outlook or Outlook Express for receiving or sending emails. The Thunderbird provides several features (e.g. popup blocker) and extensions (e.g. adblock, spoofstick etc.) to block unwanted contents in email. It has automatic SPAM filter. It support PGP plugin to encrypt your emails. It has less security holes compared to Outlook Express. Thunderbird is also available for Linux and other operating systems.
Use PGP (Pretty Good Privacy) to encrypt your outgoing emails. GPG (Gnu PG) is open source implementation of PGP and can be easily integrated with Thunderbird email client.