ITNow
By Rakesh WaghMy Development facet...
Sunday, May 29, 2005
Saturday, May 28, 2005
Make an EJB from any Java class with Java Reflection
Make an EJB from any Java class with Java Reflection
Do you have a Java class whose functionality would be useful across the entire enterprise? Do you have many classes with enterprise potential and existing applications that use them? Creating EJB versions of your classes and converting the applications that use them can be time-consuming -- unless you automate the process. Read on to find out how you can automate the routine aspects of EJB development by using Java Reflection.
Protection of Privacy on the Internet
JAP -- ANONYMITY & PRIVACY
JAP makes it possible to surf the internet anonymously and unobservably.
Due to recent events, we would like to be sure to point out, that the JAP software is in development and therefore does not yet offer maximum protection. (see below ... )
Without Anonymization, every computer in the internet communicates using a traceable Address. That means:
* the website visited,
* the internet service provider (ISP),
* and any eavesdropper on the internet connection
can determine which websites the user of a specific computer visits. Even the information which the user calls up can be intercepted and seen if encryption is not used.
Info: Leaving a data trail online...
JAP uses a single static address which is shared by many JAP users. That way neither the visited website, nor an eavesdropper can determine which user visited which website.
How it works
Instead of connecting directly to a webserver, users take a detour, connecting with encryption through several intermediaries, so-called mixes."
Tuesday, May 24, 2005
Tell the Java VM to Load the DLL
Tell the Java VM to Load the DLL:
public class HelloWorld
{
private static native void writeHelloWorldToStdout();
public static void main(String[] args)
{
System.loadLibrary('HelloWorld'); writeHelloWorldToStdout();
}
}
Template engine for HTML(any string) generation
Site
FreeMarker is a "template engine"; a generic tool to generate text output (anything from HTML to autogenerated source code) based on templates.
FreeMarker is designed to be practical for the generation of HTML Web pages, particularly by servlet-based applications following the MVC (Model View Controller) pattern. The idea behind using the MVC pattern for dynamic Web pages is that you separate the designers (HTML authors) from the programmers. Everybody works on what they are good at. Designers can change the appearance of a page without programmers having to change or recompile code, because the application logic (Java programs) and page design (FreeMarker templates) are separated. Templates do not become polluted with complex program fragments.