com.javaranch.common
Class EJBClient

java.lang.Object
  |
  +--com.javaranch.common.EJBClient

public class EJBClient
extends java.lang.Object

An object the represents a client side access to a server.

- - - - - - - - - - - - - - - - -

Copyright (c) 1998-2004 Paul Wheaton

You are welcome to do whatever you want to with this source file provided that you maintain this comment fragment (between the dashed lines). Modify it, change the package name, change the class name ... personal or business use ... sell it, share it ... add a copyright for the portions you add ...

My goal in giving this away and maintaining the copyright is to hopefully direct developers back to JavaRanch.

The original source can be found at JavaRanch

- - - - - - - - - - - - - - - - -

Author:
Paul Wheaton

Constructor Summary
EJBClient()
          Works for most needs
EJBClient(java.lang.String initial, java.lang.String url, boolean narrow, boolean formalLookup)
           
 
Method Summary
 java.lang.Object getHome(java.lang.String homeName, java.lang.Class homeClass)
          One context is kept on hand to serve up homes for many bean requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EJBClient

public EJBClient()
Works for most needs


EJBClient

public EJBClient(java.lang.String initial,
                 java.lang.String url,
                 boolean narrow,
                 boolean formalLookup)
Parameters:
initial - used to create a new initial context under "java.naming.factory.initial". example: "allaire.ejipt.ContextFactory"
url - used to create a new initial context under "java.naming.provider.url". example: "ejipt://127.0.0.1:2323"
narrow - need to do narrowing?
formalLookup - prepend "java:comp/env/" on the home name?
Method Detail

getHome

public java.lang.Object getHome(java.lang.String homeName,
                                java.lang.Class homeClass)
                         throws javax.naming.NamingException
One context is kept on hand to serve up homes for many bean requests.

javax.naming.NamingException


Copyright ©2004 Paul Wheaton All Rights Reserved