|
| Topics this page:
|
|
|
|
|
|
| Company | Product | Architecture | Notes |
|---|---|---|---|
| SourceForge | | Application Server (AS) | an open source architecture |
| BEA |
| WebLogic Platform | |
| IBM | | Visual Age | |
| Oracle | | for 11i Applications | integrated with applications |
To avoid the complexity of deploying Web services in a Java environment, some projects have stuck with individual API's like JAX-RPC or frameworks such as Apache Axis for plain old Java objects (POJO's) with no inheritance dependencies.
|
|
Expert One-on-One J2EE Development without EJB
(Wrox June 21, 2004)
by Rod Johnson & Juergen Hoeller
|
|
|
|
try (
// 1. Use JNDI to lookup home object:
Context initial = new InitialContext();
Object o = initial.lookup( "PubInfoBeanJNDIName" );
// 2.
PubInfoHome home = (PubInfoHome)PortableRemoteObject.narrow(
o, PubInfoHome.class);
// 3. Use home factory object to create remote object:
PubInfo pubInfo = home.create();
// 4. Invoke business method:
String[] pubs = pubInfo.getPubNames()
...
}
catch {
system.err.println("Caught unexpected exception");
ex.printStackTrace();
}
|
Use a dedicated session bean to perform and cache JNDI lookups, since
ServletRequest.getRemoteHost() is inefficient, and can take seconds to complete the reverse DNS lookup it performs.
The Home interface extends javax.ejb.EJBHome, which extends java.rmi.Remote.
The stateful setSessionContext(SessionContext ctx) is invoked on the session bean instance. For an entity bean, connnection initailizes the class JdbcOdbcDriver.
Try to avoid excessive cycling (creation/deletion or activation/passivation) of beans.
|
|
Commercial vendors
|
Related:
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page Thank you! | |||