Search
The Caboteria
/
Tech Web
/
TechNotes
>
ProgrammingNotes
>
JavaNotes
/
GeronimoNotes
(revision 9) (raw view)
The Apache group's j2ee server is called Geronimo. Here are some notes. The home page is http://geronimo.apache.org/ and there's a wiki at http://wiki.apache.org/geronimo/. ---+ Concepts ---++ GBean Geronimo is modular; it consists of a kernel and a set of components that implement the features needed to implement the J2EE specification. GBean (short for "Geronimo Bean") is the kernel-component interface. There's no GBean interface per se, but each GBean has a corresponding [[http://geronimo.apache.org/modules/kernel/apidocs/org/apache/geronimo/gbean/GBeanInfo.html][GBeanInfo]] object that describes the GBean and tells the kernel how to interact with it. The source code for the =GBeanTest= class shows how a GBean is used. GBeans are tracked using an <nop>MBeanServer (_an MBean directory?_). ---++ Misc * [[http://geronimo.apache.org/modules/kernel/apidocs/org/apache/geronimo/gbean/jmx/GBeanMBean.html][GBeanMBean]] * [[http://geronimo.apache.org/modules/kernel/apidocs/org/apache/geronimo/kernel/config/Configuration.html][Configuration]] * [[http://java.sun.com/products/JavaManagement/][JMX]], MBean * JSR-77 - a standard model for managing the J2EE Platform - [[http://www.jcp.org/en/jsr/detail?id=77][home]], [[http://www.onjava.com/pub/a/onjava/2002/03/27/jsr77.html][overview]] * JSR-88 - J2EE Application Deployment - [[http://www.jcp.org/en/jsr/detail?id=088][home]], * <nop>DependencyManager * <nop>ConfigurationManager ---+ Startup Needs to be run from the =target= directory (classpaths are relative to that dir). Runs using a [[http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html][standalone application jar]] called =server.jar=. The startup class specified in =MANIFEST.MF= is [[http://geronimo.apache.org/modules/system/apidocs/org/apache/geronimo/system/main/Daemon.html][o.a.g.system.main.Daemon]]. The Daemon is a command-line wrapper around [[http://geronimo.apache.org/modules/kernel/apidocs/org/apache/geronimo/kernel/Kernel.html][o.a.g.kernel.Kernel]]. The daemon first unserializes the =META-INF/config.ser= from =server.jar= using Configuration.loadGMBeanState(). The format of =config.ser= is a leading int that indicates how many attribute name/value pairs follow, then a leading int that indicates how many setReferencePatterns() parameter pairs follow: <pre> int attributeCount = ois.readInt(); for (int i = 0; i < attributeCount; i++) { gbean.setAttribute((String) ois.readObject(), ois.readObject()); } int endpointCount = ois.readInt(); for (int i = 0; i < endpointCount; i++) { gbean.setReferencePatterns((String) ois.readObject(), (Set) ois.readObject()); } </pre> ---+ Deployment wiki page here: http://wiki.apache.org/geronimo/Deployment j2ee xml descriptor files (and their geronimo counterparts) are unmarshalled into java classes using apache xmlbeans (http://xml.apache.org/xmlbeans). For resource adapters, the [[http://geronimo.apache.org/modules/connector/apidocs/org/apache/geronimo/connector/deployment/ConnectorModuleBuilder.html][ConnectorModuleBuilder]] class builds the configuration that gets deployed at run-time. http://nagoya.apache.org/jira/browse/GERONIMO-262 - NPE while deploying trivial RA -- Main.TobyCabot - 30 Jun 2004
Edit
|
Attach
|
P
rint version
|
H
istory
:
r26
|
r11
<
r10
<
r9
<
r8
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding The Caboteria?
Send feedback