|
Table of Contents
|
scratch
- AppFuse
- drupal
web application framework
http://en.wikipedia.org/wiki/Web_application_framework
two great open source projects: JEXL and SCXML.
excellent java project: JMeter: http://jakarta.apache.org/jmeter/, many features:
- plugin;
- script language BeanShell http://www.beanshell.org/
- distributed testing;
- UI features, such as menu;
- data analysis module and visualization plugins
- multiple threading architecture and pluggable timer;
HTTP service and XmlSocket:
http://flexguy.blogspot.com/2007/08/working-with-xmlsocket.html
http://xml.sys-con.com/read/421394.htm
web service
To support webservice in Tomcat, you need Tomcat and Axis as Tomcat itself is only a servlet container.
The Apache Axis project(http://ws.apache.org/axis/) is a open source SOAP implementation which can be downloaded from http://ws.apache.org/axis. It also implements JAX-RPC (Java API for XML-based RPC) which conforms to JSR 224 (Java Specification Request). JAX-RPC presents a higher level interface to work with Web services, 'protecting' the programmer from having to understand the finer details of SOAP.
Apache Axis project is a follow-on to the Apache SOAP project.
EJB wikipedia
http://en.wikipedia.org/wiki/Enterprise_JavaBean
http://en.wikipedia.org/wiki/Session_Beans
- EJB 3.0 unlike EJB 1.x, 2.x does not have a home interface
- The EJB specification requires that all entity beans provide at least one no-argument constructor to the EJB container.
- the EJB 3.0 specification doesn’t make allowances for BMP. However, it does require backward-compatibility with earlier versions of the EJB specification—earlier
versions that include support for BMP;
| id | extends | notes | sample |
|---|---|---|---|
| Remote EJB | |||
| Remote Component Interface | extends EJBObject | every method is declared to throw a RemoteException. | sample |
| Remote Home Interface | extends EJBHome | the create() method returns the remote component interface, and that the method throws RemoteException and CreateException.. | sample |
| Local EJB | |||
| Local Component Interface | extends EJBLocalObject | no exception throwing, like normal java code. | sample |
| Local Home Interface | extend EJBLocalHome | create() method would return the local component interface, and the method would throw only CreateException. | link to sample |
| EJB Bean | implements SessionBean | sample |
Samples
Remote (Component) Interface
import java.rmi.RemoteException; import javax.ejb.*; public interface MetricCvtRemote extends EJBObject { public String Convert( String sType, double dToConvert ) throws RemoteException; // other method declarations ... } // end MetricCvtRemote
Remote Home Interface
import javax.ejb.*; import java.rmi.RemoteException; public interface MetricCvtRemoteHome extends EJBHome { // required MetricCvtRemote create() throws RemoteException, CreateException; } // end MetricCvtRemoteHome
EJB bean
import javax.ejb.*; public class MetricCvtBean **implements SessionBean** { public MetricCvtBean() {} // end constructor // required by the specification contract public void ejbCreate() {} // end ejbCreate // required for SessionBean implementation public void ejbRemove() {} public void ejbActivate() {} public void ejbPassivate() {} public void setSessionContext(SessionContext sc) {} public String Convert( String sType, double dToConvert ) { ... } // end Convert // other methods ... } // end class MetricCvtBean
EJB interview questions
http://middlewares.wordpress.com/2008/05/02/ejb-interview-questions-answers/
EJB restrictions
http://www.conceptgo.com/gsejb/ov05.html
Geronimo Enterprise Server
http://www.vsj.co.uk/java/display.asp?id=493
Geronimo is an open source project of the Apache Software Foundation. It is an enterprise application server created to the J2EE 1.4 standard.
While you could test your applications on evaluation copies of commercial servers such as IBM WebSphere, BEA Weblogic, SUN Java System Application Server, or the Oracle Application Server; production deployment on these servers could be very costly for small enterprises, or those with budgetary constraints.
without Geronimo , the only available free open-source J2EE enterprise server is JBOSS + Tomcat.
5-minute Tutorial on Enterprise Application Development with Eclipse and Geronimo
Apache Geronimo v2.2 deploy
http://cwiki.apache.org/GMOxDOC22/deploy.html
EAR, WAR, JAR,RAR
http://www.javaworld.com/javaworld/jw-01-2008/jw-01-tomcat6.html?page=2
java frameworks
maven
SSL
soap
AOP
eclipse
design patterns
http://www.codeguru.com/forum/showthread.php?t=327982
books
custom span element
predefined
http://valleywag.com/366040/spitzers-hookers-are-certainly-lookers
http://emperors-spokesmodels.com/Portfolio/SpokesModelsPortfolio.html





