Posts

-- Start Telnet feature in Vista --

-> Open the Start Bar and search Telnet. -> If it does not show anything in Programs do the following. -> Open Control Panel. -> Click on Programs. -> Click on Programs and Features. -> Under that click "Turn Windows features on or off" (left side of the window). -> Click Continue on the Pop-Up. -> A Dialog box will show up and it might take a while to populate the list. -> Go down in Dialog box and look under Tablet PC Optional Components. -> It will say Telnet Client. -> Check the box -> then OK. It may take a while. -> check the telnet in command prompt.

-- Are you a Android Developer? --

If you going to develop an application using Android (specially hardware dependent application, just like new protocol for WI-FI or new network application), curren- tly you must have a mobile phone which is fully support Android OS. There was a Nokia phone and one Motorola phone which is support to Android partially. Because some Android features doesn't work will on those phones. That implies only T-Mobile G1 is the solution to such development. Android announce that they are going to issue a phone, for Android developments and they are call it as a Android Dev Phone 1 . Android Dev Phone 1 is a SIM-unlocked and hardware-unlocked device that is designed for advanced developers. The device ships with a system image that is fully compatible with Android 1.0, so you can rely on it when developing your applications. We can use any SIM in the device and can flash custom Android builds that will work with the unlocked bootloader. The device currently costs $399 (USD) (including free sh...

-- Google Android --

What is Android? Android is a software stack + Operating system and middle-ware, for mobile devices. Its provides a SDK for develop a applications on Android using Java language. Now it has a Eclipse plug-in for Android application development. Why is this so cool Android is a full open-source platform for mobile devices. It has a full access to hardware level and free to develop software. Features * Application framework enabling reuse and replacement of components * Dalvik virtual machine optimized for mobile devices * Integrated browser based on the open source WebKit engine * Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) * SQLite for structured data storage * Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) * GSM Telephony (hardware dependent) * Bluetooth, EDGE, 3G, and WiFi (hardware dependent...

-- What is ICEfaces --

CEfaces is a framework, which can be used to create high user interactive web pages. In another words this technology enables to develop and deploy thin-client, REA - Rich Enterprise Application in pure Java. Pure Java means... NO JavaScript. Therefore do not need any kind of knowledge about JavaScript. So JEE application development skills can directly apply to these technology. The other thing is thin-client... Thin client means, there are no Applets or proprietary browser plug-ins required to run ICEfaces. And Rich web application environment enables to... smooth, Incremental page updates... that do not require a full page refresh (i.e. need only partial refresh) to view the changes in the application. Only elements, which are changed, need to updated during the render phase. And also using ICEfaces, we can develop rapid applications, even within 2/3 months; single developer can develop a fully featured web application. Because these applications are easy to maintains, ustomize and ...

-- Read a Property File --

--------------------- ERA.properties -------------------- webapp.name=ERA Admin DashBoard webapp.version=Version: neo_jsf_ice_with_tree_06 author.name=Jayasanka Illangarathne author.url=http://jayasanka.blogspot.com company.name=Virtusa Private Ltd: company.url=http://www.virtusa.com copyright.year=2008 dataBase.name=EraDB server.path=jdbc:sqlserver://localhost:1433 dataBase.uname=sa dataBase.passwd=jayasanka -------------------------java file------------------- package com.resource; import java.io.FileInputStream; import java.io.FileOutputStream; import java.util.Properties; public class ERAProperties { public static void main(String[] args) { Properties properties = new Properties(); try { // load the resource file properties.load(new FileInputStream("src/com/resource/ERA.properties")); // get a property String name = properties.getProperty("author.name"); System.out.println...

-- Spring Framework --

Image
-> backGround - Spring is an open-source framework, created by Rod Johnson and described in his book Expert One-on-One: J2EE Design and Development. - Spring is a lightweight inversion of control and aspect-oriented container framework. -> Spring is a development style like J2EE EJB.But solve some limitations of EJB -> problem: in EJB, has to write several classes to make a component. such as the home interface,the local interface,and the bean itself. in addition has to create a deployment descriptor for the bean. -> solution: incorporates XDoclet XDoclet is a code generation tool that can generate all of the necessary EJB files from a single source file. -> Problem: when testing, have to fire up the container in each test and each change of the code. It is a waisting time, the development lifecycle will add a "waitting" phase. (code -> wait -> test). ...

-- Send Mails --

To implement the mail function u must download the javaMail.jar file, and include it to ur lib folder. package com.neo.mail; import java.util.Properties; import javax.mail.*; import javax.mail.internet.*; public class AdminMail { public void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException { boolean debug = false; //Set the host smtp address Properties props = new Properties(); props.put("mail.smtp.host", "mailsvr"); // create some properties and get the default Session Session session = Session.getDefaultInstance(props, null); session.setDebug(debug); // create a message Message msg = new MimeMessage(session); // set the from and to address InternetAddress addressFrom = new InternetAddress(from); msg.setFrom(addressFrom); InternetAddress[] addressTo = new InternetAddress[recipients.length]; for (int i = 0;...