axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hemap...@apache.org
Subject cvs commit: ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc BookQuoteBean.java
Date Fri, 09 Jul 2004 03:29:43 GMT
hemapani    2004/07/08 20:29:43

  Modified:    contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc
                        BookQuoteBean.java
  Log:
  update the testcase
  
  Revision  Changes    Path
  1.3       +13 -2     ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java
  
  Index: BookQuoteBean.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/contrib/ews/samples/ejb/bookquote/com/jwsbook/jaxrpc/BookQuoteBean.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BookQuoteBean.java	7 Jul 2004 09:24:02 -0000	1.2
  +++ BookQuoteBean.java	9 Jul 2004 03:29:43 -0000	1.3
  @@ -1,6 +1,17 @@
   package com.jwsbook.jaxrpc;
  -public class BookQuoteBean  implements BookQuote{
  +public class BookQuoteBean  implements javax.ejb.SessionBean{
   	public float getBookPrice(java.lang.String isbn){
  -			return 0.0f;
  +			return 0.234567f;
   	}
  +	public javax.naming.Context getInitialContext()throws javax.naming.NamingException{
  +			java.util.Properties env = new java.util.Properties();
  +			env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  +			env.put(javax.naming.Context.PROVIDER_URL, "127.0.0.1:1099");
  +			return new javax.naming.InitialContext(env);
  +	}
  +	public void ejbCreate() {}
  +	public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  +	public void ejbPassivate() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  +	public void ejbRemove() throws javax.ejb.EJBException, java.rmi.RemoteException {}
  +	public void setSessionContext(javax.ejb.SessionContext arg0)throws javax.ejb.EJBException,
java.rmi.RemoteException {}
   }
  
  
  

Mime
View raw message