[Smartcc-cvs] smartcc/google/src/org/smartcc/google GoogleSearchClient.java,1.1,1.2
Brought to you by:
hengels
|
From: <he...@us...> - 2002-06-18 16:09:09
|
Update of /cvsroot/smartcc/smartcc/google/src/org/smartcc/google In directory usw-pr-cvs1:/tmp/cvs-serv7319/google/src/org/smartcc/google Modified Files: GoogleSearchClient.java Log Message: o I still cannot get the GoogleSearch work, argh! o SOAPGenericHome: web services, that aren't wrapped ejbs, don't have home ineterfaces. Either provide one or use this generic one Index: GoogleSearchClient.java =================================================================== RCS file: /cvsroot/smartcc/smartcc/google/src/org/smartcc/google/GoogleSearchClient.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** GoogleSearchClient.java 14 Jun 2002 16:23:34 -0000 1.1 --- GoogleSearchClient.java 18 Jun 2002 16:09:03 -0000 1.2 *************** *** 14,26 **** package org.smartcc.google; - import java.io.*; - import java.net.*; import java.rmi.*; - import java.util.*; import javax.naming.*; - - import java.rmi.*; import javax.ejb.*; public class GoogleSearchClient { --- 14,24 ---- package org.smartcc.google; import java.rmi.*; import javax.naming.*; import javax.ejb.*; + import org.smartcc.*; + import GoogleSearch.*; + public class GoogleSearchClient { *************** *** 29,34 **** { Context context = new InitialContext(); ! GoogleSearchHome googleHome = (GoogleSearchHome)context.lookup("ejb/GoogleSearch"); ! GoogleSearchPort google = googleHome.create(); String key = (String)context.lookup("google.license"); --- 27,32 ---- { Context context = new InitialContext(); ! SOAPGenericHome googleHome = (SOAPGenericHome)context.lookup("ejb/GoogleSearch"); ! GoogleSearchPort google = (GoogleSearchPort)googleHome.create(); String key = (String)context.lookup("google.license"); |