org.jboss.test.jbossnet.external.server
Class FederatedServiceBean

java.lang.Object
  extended byorg.jboss.test.util.ejb.EnterpriseSupport (src) 
      extended byorg.jboss.test.util.ejb.SessionSupport (src) 
          extended byorg.jboss.test.jbossnet.external.server.FederatedServiceBean
All Implemented Interfaces:
EnterpriseBean (src) , java.io.Serializable, SessionBean (src)

public class FederatedServiceBean
extends SessionSupport (src)
implements SessionBean (src)

implementation of a federated ejb service making use of external web services bound in the JNDI tree.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.util.ejb.SessionSupport (src)
sessionCtx
 
Constructor Summary
FederatedServiceBean()
           
 
Method Summary
 java.lang.String findAndTranslate(java.lang.String searchTerm)
          first accesses google to produce a set of search results and then connects to babelfish to translate the content of the title of one of them
 
Methods inherited from class org.jboss.test.util.ejb.SessionSupport (src)
ejbActivate, ejbCreate, ejbPassivate, ejbRemove, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.SessionBean (src)
ejbActivate, ejbPassivate, ejbRemove, setSessionContext
 

Constructor Detail

FederatedServiceBean

public FederatedServiceBean()
Method Detail

findAndTranslate

public java.lang.String findAndTranslate(java.lang.String searchTerm)
                                  throws java.lang.Exception
first accesses google to produce a set of search results and then connects to babelfish to translate the content of the title of one of them

Throws:
java.lang.Exception