com.app.jobbank
Class CompanyImpl

java.lang.Object
  extended by com.app.jobbank.CompanyImpl
All Implemented Interfaces:
Company

public class CompanyImpl
extends java.lang.Object
implements Company


Constructor Summary
CompanyImpl()
           
 
Method Summary
 java.lang.String getCompanyInfo(java.lang.String company)
          This method gets compnay info.
 ResumeBank getExtEJBService()
           
 java.lang.String postResume(java.lang.String resume)
          This method posts the resume to external jobbank system.
 void setExtEJBService(ResumeBank extEJBService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompanyImpl

public CompanyImpl()
Method Detail

getExtEJBService

public ResumeBank getExtEJBService()

setExtEJBService

public void setExtEJBService(ResumeBank extEJBService)

getCompanyInfo

public java.lang.String getCompanyInfo(java.lang.String company)
Description copied from interface: Company
This method gets compnay info. If the company is "ACME Corp" emthod returns "Software firm". For any other company it returns "Non Software firm".

Specified by:
getCompanyInfo in interface Company
Returns:
Company type

postResume

public java.lang.String postResume(java.lang.String resume)
Description copied from interface: Company
This method posts the resume to external jobbank system. External jobbank system is running as reumebank ejb. This function demonstrates how component can invoke EJB service through ejb reference binding

Specified by:
postResume in interface Company
Returns:
Confirmation number for the posting