Thursday, January 10, 2013

Java - To Know which Jar file is referring for a particular class



Many times it happens that multiple JAR files are referring to a particular class and such ambiguity may cause problem in our application. Lets a simple program which can help to detect which jar file is referring for a specific class.

I have added the code in a java program however you can add it in your JSP or a Servlet as per your requirement.


Java program to read a text file

Below java program can be used to read a text (.txt) file or any other text based file like .xml, .properties etc


Java function to reverse a String

Please see below, a simple java function to reverse a String. You can use it to check for palindrome as well.

Simple java program to send Mail using JavaMail API

The JavaMail API provides a platform-independent and protocol-independent framework to build mail and messaging applications. to know more, click here.

For below program to run, please add mail.jar in your application's classpath. Download mail.jar.


Wednesday, January 9, 2013

QuickBooks and eCommerce – Integrated Systems


Technology is allowing more individuals to access the freedom of working for themselves than ever before and eCommerce solutions are one of the key factors in this brave new world.  As more High Street stores bite the dust each week, the rise of eCommerce appears to be getting faster.  Despite the fact that Christmas is just around the corner, the media continue to report on the closure, job losses and move online of more famous, High Street brands.  For those already successfully operating online the continued dominance of eCommerce is great news.  For those setting up online for the first time there are a number of factors to consider and significant one is often a question of systems integration with eCommerce platforms. Accounting systems, in particular, can be important when migrating to the world of eCommerce and an eCommerce site that doesn't integrate well, or at all with, your existing accounting systems can be a time consuming problem.  One widely used accounting package is provided by Intuit; QuickBooks Online Accounting software is popular with small and medium businesses as it has been designed and specifically built with their needs in mind.

Types of Integration

Intuit have become a leading provider for small businesses because they understand the needs of these firms and the rapidly changing landscape in which they operate.  They have developed their systems with these rapid changes in mind and, as a result, are a leading provider in the online accounting field.  Cloud provision of software is likely to become the only provision in the not too distant future, and it offers huge advantages to small firms, most notably in the time saving and flexibility areas of life.  For those moving into eCommerce, the good news is that QuickBooks products are widespread enough for many eCommerce providers to take note and make their system easily to integrate.  When it comes to integrating software such as QuickBooks online accounting software, there are two main approaches; firstly to choose a provider that allows easy integration and secondly to employ software that can provide a ‘bridge’ between the two systems, creating an integrated solution.