Issue Details (XML | Word | Printable)

Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Tom Mueller
Reporter: obframework
Votes: 0
Watchers: 2

If you were logged in you would be able to see more operations.

Enhancements in J2EE server

Created: 13/Feb/07 02:43 AM   Updated: 04/Jan/13 04:12 PM   Resolved: 04/Jan/13 04:12 PM
Component/s: other
Affects Version/s: 9.0pe
Fix Version/s: not determined

Time Tracking:
Not Specified

File Attachments: 1. Microsoft Word JmService-cn.doc (226 kB) 04/Apr/07 02:26 AM - obframework


Operating System: All
Platform: All

Issuezilla Id: 2,394
Participants: Bill Shannon, Hong Zhang, Ken Cavanaugh, km, obframework and Tom Mueller

 Description  « Hide

1 Introduction

a: Services in j2ee server

Generally,there are some parts in a j2ee server, for example: Naming, JDBC,
Transaction,EJB, Web and so on. We can regard them as services in j2ee server
and define them in the below table.

b: Discovery in j2ee server

Commonly, a j2ee server should provide a mechanism to discover deployed
components, if found, then begin to deploy them. Discovery run as begin of
deployment. We have finished a discoverer to do the similar work in a j2ee
server, you can get it from the website: . When open
this link, please jump to the “framework� topic. The relative source is at
the end of it.

c: Deployment in j2ee server

Deployment is very important in j2ee server, which makes j2ee components ready
in server. If be
careful, you will find that there exists association between services and
deployed components. In others words, every service may hold a own method to
deploy its relative components

Service Component

JDBCService Data Source

EJBService EJB Components

WebService Web Components

d: Dependency between services

When a service may invoke other service in its inner action, then depended
services should be active. Especially in initialization of services. So we
think that their initialization must obey a order.

2: Sample

1 Create a new service in a j2ee server

//just initialize a server orb.
public class ORBService implements J2EEService {

public J2EEAssistant getAssistant(){ return null;// because no components run on the current service. }

public J2EESourceParser getParser(){ return null;// because no components run on the current service. } }

public J2EESourceDiscriminator getDiscriminator(){ return null;// because no components run on the current service. }

//init a server orb
public void init(){ // global variable ServerORB.orb = ORB.init(getORBProperties(), getORBCommandLine ()); }

//make orb ready
public void run(){; }

public void stop(){ // not finished }

2: Configure the service in XML file

<name>ORBService</name> //<--- orb service is a basic service, should be
arranged here.
<class> ORBService</class>

<class> NameService</class>

<class> DiscovereService</class> // <------------must be at end of the file


3: Launch j2ee server

When startup server, the service.xml will be resolved by a tool in
server.Service will be initialized by order in the file

4: Action in DiscovereService

A task or a thread run in the service and discover components for server, when
find deployed files,
a event will be raised, some listeners will catch the event, then do some logic
thing for it, for example:

More detail, please browse “framework� topic in my website: and get source from it. We provided the framework to
make organization clearer in servers. If you meet any
question, please contact me.

Notes: I will move jmin project to

No work has yet been logged on this issue.