smartcc-cvs Mailing List for Smart Client Container
Brought to you by:
hengels
You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(19) |
Jun
(59) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: <he...@us...> - 2002-06-18 16:09:10
|
Update of /cvsroot/smartcc/smartcc/google
In directory usw-pr-cvs1:/tmp/cvs-serv7319/google
Modified Files:
build.xml
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: build.xml
===================================================================
RCS file: /cvsroot/smartcc/smartcc/google/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** build.xml 14 Jun 2002 16:23:29 -0000 1.1
--- build.xml 18 Jun 2002 16:09:02 -0000 1.2
***************
*** 53,56 ****
--- 53,57 ----
<fileset dir="${build.class}">
<include name="org/smartcc/google/*.class"/>
+ <include name="GoogleSearch/*.class"/>
</fileset>
<zipfileset dir="${build.etc}/client" prefix="META-INF"/>
|
|
From: <he...@us...> - 2002-06-18 16:09:10
|
Update of /cvsroot/smartcc/smartcc/google/etc/client
In directory usw-pr-cvs1:/tmp/cvs-serv7319/google/etc/client
Modified Files:
GoogleSearch-application-client.xml
GoogleSearch-smart-client.xml
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: GoogleSearch-application-client.xml
===================================================================
RCS file: /cvsroot/smartcc/smartcc/google/etc/client/GoogleSearch-application-client.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** GoogleSearch-application-client.xml 14 Jun 2002 16:23:32 -0000 1.1
--- GoogleSearch-application-client.xml 18 Jun 2002 16:09:03 -0000 1.2
***************
*** 15,20 ****
<ejb-ref-name>ejb/GoogleSearch</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
! <home>org.smartcc.google.GoogleSearchHome</home>
! <remote>org.smartcc.google.GoogleSearchPort</remote>
</ejb-ref>
--- 15,20 ----
<ejb-ref-name>ejb/GoogleSearch</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
! <home>org.smartcc.SOAPGenericHome</home>
! <remote>GoogleSearch.GoogleSearchPort</remote>
</ejb-ref>
Index: GoogleSearch-smart-client.xml
===================================================================
RCS file: /cvsroot/smartcc/smartcc/google/etc/client/GoogleSearch-smart-client.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** GoogleSearch-smart-client.xml 14 Jun 2002 16:23:33 -0000 1.1
--- GoogleSearch-smart-client.xml 18 Jun 2002 16:09:03 -0000 1.2
***************
*** 10,20 ****
<properties>
#org.smartcc.service.wsdl=http://api.google.com/GoogleSearch.wsdl
! org.smartcc.service.wsdl=file:/home/hengels/jdevel/googleapi/GoogleSearch.wsdl
org.smartcc.service.url=http://api.google.com/search/beta2
org.smartcc.service.namespace=urn:GoogleSearch
! org.smartcc.service.name=GoogleSearchService
! org.smartcc.service.port=GoogleSearchPort
! #javax.xml.rpc.ServiceFactory=org.apache.axis.client.ServiceFactory
! javax.xml.rpc.ServiceFactory=com.sun.xml.rpc.client.ServiceFactoryImpl
</properties>
</smart-ref>
--- 10,18 ----
<properties>
#org.smartcc.service.wsdl=http://api.google.com/GoogleSearch.wsdl
! #org.smartcc.service.wsdl=file:/home/hengels/jdevel/smartcc/google/etc/GoogleSearch.wsdl
org.smartcc.service.url=http://api.google.com/search/beta2
org.smartcc.service.namespace=urn:GoogleSearch
! #org.smartcc.service.name=GoogleSearchService
! #org.smartcc.service.port=GoogleSearchPort
</properties>
</smart-ref>
|
|
From: <he...@us...> - 2002-06-18 16:09:10
|
Update of /cvsroot/smartcc/smartcc/google/etc
In directory usw-pr-cvs1:/tmp/cvs-serv7319/google/etc
Added Files:
GoogleSearch.wsdl
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
--- NEW FILE: GoogleSearch.wsdl ---
<?xml version="1.0"?>
<!-- WSDL description of the Google Web APIs.
The Google Web APIs are in beta release. All interfaces are subject to
change as we refine and extend our APIs. Please see the terms of use
for more information. -->
<definitions name="urn:GoogleSearch"
targetNamespace="urn:GoogleSearch"
xmlns:typens="urn:GoogleSearch"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
<!-- Types for search - result elements, directory categories -->
<types>
<xsd:schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:GoogleSearch">
<xsd:complexType name="GoogleSearchResult">
<xsd:all>
<xsd:element name="documentFiltering" type="xsd:boolean"/>
<xsd:element name="searchComments" type="xsd:string"/>
<xsd:element name="estimatedTotalResultsCount" type="xsd:int"/>
<xsd:element name="estimateIsExact" type="xsd:boolean"/>
<xsd:element name="resultElements" type="typens:ResultElementArray"/>
<xsd:element name="searchQuery" type="xsd:string"/>
<xsd:element name="startIndex" type="xsd:int"/>
<xsd:element name="endIndex" type="xsd:int"/>
<xsd:element name="searchTips" type="xsd:string"/>
<xsd:element name="directoryCategories" type="typens:DirectoryCategoryArray"/>
<xsd:element name="searchTime" type="xsd:double"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ResultElement">
<xsd:all>
<xsd:element name="summary" type="xsd:string"/>
<xsd:element name="URL" type="xsd:string"/>
<xsd:element name="snippet" type="xsd:string"/>
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="cachedSize" type="xsd:string"/>
<xsd:element name="relatedInformationPresent" type="xsd:boolean"/>
<xsd:element name="hostName" type="xsd:string"/>
<xsd:element name="directoryCategory" type="typens:DirectoryCategory"/>
<xsd:element name="directoryTitle" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
<xsd:complexType name="ResultElementArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DirectoryCategoryArray">
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:DirectoryCategory[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DirectoryCategory">
<xsd:all>
<xsd:element name="fullViewableName" type="xsd:string"/>
<xsd:element name="specialEncoding" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
</xsd:schema>
</types>
<!-- Messages for Google Web APIs - cached page, search, spelling. -->
<message name="doGetCachedPage">
<part name="key" type="xsd:string"/>
<part name="url" type="xsd:string"/>
</message>
<message name="doGetCachedPageResponse">
<part name="return" type="xsd:base64Binary"/>
</message>
<message name="doSpellingSuggestion">
<part name="key" type="xsd:string"/>
<part name="phrase" type="xsd:string"/>
</message>
<message name="doSpellingSuggestionResponse">
<part name="return" type="xsd:string"/>
</message>
<message name="doGoogleSearch">
<part name="key" type="xsd:string"/>
<part name="q" type="xsd:string"/>
<part name="start" type="xsd:int"/>
<part name="maxResults" type="xsd:int"/>
<part name="filter" type="xsd:boolean"/>
<part name="restrict" type="xsd:string"/>
<part name="safeSearch" type="xsd:boolean"/>
<part name="lr" type="xsd:string"/>
<part name="ie" type="xsd:string"/>
<part name="oe" type="xsd:string"/>
</message>
<message name="doGoogleSearchResponse">
<part name="return" type="typens:GoogleSearchResult"/>
</message>
<!-- Port for Google Web APIs, "GoogleSearch" -->
<portType name="GoogleSearchPort">
<operation name="doGetCachedPage">
<input message="typens:doGetCachedPage"/>
<output message="typens:doGetCachedPageResponse"/>
</operation>
<operation name="doSpellingSuggestion">
<input message="typens:doSpellingSuggestion"/>
<output message="typens:doSpellingSuggestionResponse"/>
</operation>
<operation name="doGoogleSearch">
<input message="typens:doGoogleSearch"/>
<output message="typens:doGoogleSearchResponse"/>
</operation>
</portType>
<!-- Binding for Google Web APIs - RPC, SOAP over HTTP -->
<binding name="GoogleSearchBinding" type="typens:GoogleSearchPort">
<soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="doGetCachedPage">
<soap:operation soapAction="urn:GoogleSearchAction"/>
<input>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="doSpellingSuggestion">
<soap:operation soapAction="urn:GoogleSearchAction"/>
<input>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
<operation name="doGoogleSearch">
<soap:operation soapAction="urn:GoogleSearchAction"/>
<input>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded"
namespace="urn:GoogleSearch"
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<!-- Endpoint for Google Web APIs -->
<service name="GoogleSearchService">
<port name="GoogleSearchPort" binding="typens:GoogleSearchBinding">
<soap:address location="http://api.google.com/search/beta2"/>
</port>
</service>
</definitions>
|
|
From: <he...@us...> - 2002-06-18 16:09:10
|
Update of /cvsroot/smartcc/smartcc/src/org/smartcc
In directory usw-pr-cvs1:/tmp/cvs-serv7319/src/org/smartcc
Modified Files:
SOAPTransport.java
Added Files:
SOAPGenericHome.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
--- NEW FILE: SOAPGenericHome.java ---
package org.smartcc;
import java.rmi.*;
import javax.ejb.*;
public interface SOAPGenericHome
extends EJBHome
{
EJBObject create() throws RemoteException, CreateException;
}
Index: SOAPTransport.java
===================================================================
RCS file: /cvsroot/smartcc/smartcc/src/org/smartcc/SOAPTransport.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SOAPTransport.java 18 Jun 2002 09:24:50 -0000 1.4
--- SOAPTransport.java 18 Jun 2002 16:09:02 -0000 1.5
***************
*** 41,47 ****
Stub stub = (Stub)stubs.get(smartRef);
if (stub == null) {
! String wsdl = smartRef.getProperties().getProperty("org.smartcc.service.wsdl");
! String url = smartRef.getProperties().getProperty("org.smartcc.service.url");
! String nameSpace = smartRef.getProperties().getProperty("org.smartcc.service.namespace");
String serviceName = smartRef.getProperties().getProperty("org.smartcc.service.name");
String portName = smartRef.getProperties().getProperty("org.smartcc.service.port");
--- 41,47 ----
Stub stub = (Stub)stubs.get(smartRef);
if (stub == null) {
! String wsdl = smartRef.getProperties().getProperty("org.smartcc.service.wsdl");
! String url = smartRef.getProperties().getProperty("org.smartcc.service.url");
! String nameSpace = smartRef.getProperties().getProperty("org.smartcc.service.namespace");
String serviceName = smartRef.getProperties().getProperty("org.smartcc.service.name");
String portName = smartRef.getProperties().getProperty("org.smartcc.service.port");
***************
*** 70,77 ****
//stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);
stub._setProperty(Call.ENDPOINT_ADDRESS_PROPERTY, url);
stubs.put(smartRef, stub);
! // TODO: if it's not an EJBObject, we should wrap it or at least have the dynamic
! // proxy of the remote interface implement EJBObject
// TODO: EJBMetaData is the only one, who knows, if session bean is stateful
--- 70,78 ----
//stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url);
stub._setProperty(Call.ENDPOINT_ADDRESS_PROPERTY, url);
+ stub._setProperty(Call.SOAPACTION_USE_PROPERTY, new Boolean(true));
stubs.put(smartRef, stub);
! // TODO: if it's not an EJBObject, we should dynamically wrap it or at least have the
! // dynamic proxy of the remote interface implement EJBObject
// TODO: EJBMetaData is the only one, who knows, if session bean is stateful
|
|
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"); |
|
From: <he...@us...> - 2002-06-18 10:03:41
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello
In directory usw-pr-cvs1:/tmp/cvs-serv25453/soap/src/org/jboss/net/sample/hello
Modified Files:
HelloClient.java
Log Message:
o removed debug output
Index: HelloClient.java
===================================================================
RCS file: /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello/HelloClient.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** HelloClient.java 18 Jun 2002 09:27:48 -0000 1.1
--- HelloClient.java 18 Jun 2002 10:03:38 -0000 1.2
***************
*** 17,25 ****
throws Exception
{
- System.out.println("HelloClient starting");
Context context = new InitialContext();
HelloHome helloHome = (HelloHome)context.lookup("ejb/Hello");
Hello hello = helloHome.create();
- System.out.println("Hello reference obtained");
String result = hello.hello("everybody");
--- 17,23 ----
|
|
From: <he...@us...> - 2002-06-18 09:48:53
|
Update of /cvsroot/smartcc/smartcc/soap In directory usw-pr-cvs1:/tmp/cvs-serv20821 Added Files: README Log Message: o read it ;-) --- NEW FILE: README --- How to get it run ----------------- o compile jboss with the jboss.net plugin (described on their homepage) o deploy the Hello sample from the jboss.net module o the ejb interfaces are mirrored in the soap/src directory o copy axis beta2 jars to and smartcc/dist/client (jboss uses an older version). You need: axis.jar commons-logging.jar log4j-core.jar o build the example by simply calling 'ant' o run the client with an absolute file url to 'build/local/JBossNetClient.jar' $SMARTCC_HOME/bin/run file:$SMARTCC_HOME/soap/build/local/JBossNetClient.jar |
|
From: <he...@us...> - 2002-06-18 09:40:06
|
Update of /cvsroot/smartcc/smartcc/lib In directory usw-pr-cvs1:/tmp/cvs-serv18807/lib Added Files: jaxp-api.jar jaxrpc.jar Removed Files: jaxp.jar Log Message: o renamed jaxp.jar to jaxp-api.jar o jaxrpc.jar, that is compatible at least to axis beta2 --- NEW FILE: jaxp-api.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: jaxrpc.jar --- (This appears to be a binary file; contents omitted.) --- jaxp.jar DELETED --- |
|
From: <he...@us...> - 2002-06-18 09:27:51
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello/interfaces
In directory usw-pr-cvs1:/tmp/cvs-serv16099/soap/src/org/jboss/net/sample/hello/interfaces
Added Files:
Hello.java HelloHome.java HelloLocal.java HelloLocalHome.java
Log Message:
o an example that shows, how to connect to a webservice
--- NEW FILE: Hello.java ---
/*
* Generated file - Do not edit!
*/
package org.jboss.net.sample.hello.interfaces;
import java.lang.*;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
/**
* Local interface for Hello.
* @author XDOCLET 1.1.2
* @version XDOCLET 1.1.2 * @xdoclet-generated at Jun 17, 2002 5:08:02 PM
*/
public interface Hello
extends javax.ejb.EJBObject
{
public java.lang.String hello( java.lang.String name ) throws java.rmi.RemoteException;
}
--- NEW FILE: HelloHome.java ---
/*
* Generated file - Do not edit!
*/
package org.jboss.net.sample.hello.interfaces;
import java.lang.*;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
/**
* home interface for Hello. Lookup using {1}
* @author XDOCLET 1.1.2
* @version XDOCLET 1.1.2 * @xdoclet-generated at Jun 17, 2002 5:08:02 PM
*/
public interface HelloHome
extends javax.ejb.EJBHome
{
public org.jboss.net.sample.hello.interfaces.Hello create() throws javax.ejb.CreateException, java.rmi.RemoteException;
}
--- NEW FILE: HelloLocal.java ---
/*
* Generated file - Do not edit!
*/
package org.jboss.net.sample.hello.interfaces;
import java.lang.*;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
/**
* Local interface for Hello.
* @author XDOCLET 1.1.2
* @version XDOCLET 1.1.2 * @xdoclet-generated at Jun 17, 2002 5:08:02 PM
*/
public interface HelloLocal
extends javax.ejb.EJBLocalObject
{
public java.lang.String hello( java.lang.String name ) ;
}
--- NEW FILE: HelloLocalHome.java ---
/*
* Generated file - Do not edit!
*/
package org.jboss.net.sample.hello.interfaces;
import java.lang.*;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
/**
* Local home interface for Hello. Lookup using {1}
* @author XDOCLET 1.1.2
* @version XDOCLET 1.1.2 * @xdoclet-generated at Jun 17, 2002 5:08:02 PM
*/
public interface HelloLocalHome
extends javax.ejb.EJBLocalHome
{
public static final String COMP_NAME="java:comp/env/ejb/Hello";
public static final String JNDI_NAME="Hello";
public org.jboss.net.sample.hello.interfaces.HelloLocal create() throws javax.ejb.CreateException;
}
|
|
From: <he...@us...> - 2002-06-18 09:27:51
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello In directory usw-pr-cvs1:/tmp/cvs-serv16099/soap/src/org/jboss/net/sample/hello Added Files: HelloBean.java HelloClient.java Log Message: o an example that shows, how to connect to a webservice --- NEW FILE: HelloBean.java --- /* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */ package org.jboss.net.sample.hello.ejb; import javax.ejb.CreateException; import javax.ejb.SessionBean; import javax.ejb.SessionContext; /** * This is a single method simple SessionBean Hello World program. The * xdoclet comments generate all the interfaces and JBoss.net deployment * descriptors. * * @ejb:bean name="Hello" * jndi-name="Hello" * type="Stateless" * view-type="local" * @ejb:ejb-ref ejb-name="Hello" * view-type="local" * ref-name="Hello" * @ejb:transaction type="Required" * @ejb:transaction-type type="Container" * * @jboss-net:web-service urn="Hello" * expose-all="true" * @author <a href="mailto:fb...@mu...">Frederick N. Brier</a> * @version $Revision: 1.1 $ */ public class HelloBean implements SessionBean { /** * @ejb:interface-method view-type="local" */ public String hello( String name ) { return "Hello " + name; } public void ejbCreate() throws CreateException {} public void setSessionContext( SessionContext sessionContext ) {} public void ejbActivate() {} public void ejbPassivate() {} public void ejbRemove() {} } // of class HelloBean --- NEW FILE: HelloClient.java --- package org.jboss.net.sample.hello; import java.io.*; import java.net.*; import java.rmi.*; import java.util.*; import javax.naming.*; import java.rmi.*; import javax.ejb.*; import org.jboss.net.sample.hello.interfaces.*; public class HelloClient { public static void main(String[] args) throws Exception { System.out.println("HelloClient starting"); Context context = new InitialContext(); HelloHome helloHome = (HelloHome)context.lookup("ejb/Hello"); Hello hello = helloHome.create(); System.out.println("Hello reference obtained"); String result = hello.hello("everybody"); System.out.println("" + result); } } |
|
From: <he...@us...> - 2002-06-18 09:27:51
|
Update of /cvsroot/smartcc/smartcc/soap/etc/client
In directory usw-pr-cvs1:/tmp/cvs-serv16099/soap/etc/client
Added Files:
JBossNet-application-client.xml JBossNet-manifest.mf
JBossNet-smart-client.xml
Log Message:
o an example that shows, how to connect to a webservice
--- NEW FILE: JBossNet-application-client.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application-client PUBLIC "-//Sun Microsystems, Inc.//DTD J2EE Client 1.3//EN" "http://localhost/dtd/application-client_1_3.dtd">
<application-client>
<ejb-ref>
<ejb-ref-name>ejb/Hello</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>org.jboss.net.sample.hello.interfaces.HelloHome</home>
<remote>org.jboss.net.sample.hello.interfaces.Hello</remote>
</ejb-ref>
</application-client>
--- NEW FILE: JBossNet-manifest.mf ---
Manifest-Version: 1.0
Created-By: he...@in...
Main-Class: org.jboss.net.sample.hello.HelloClient
--- NEW FILE: JBossNet-smart-client.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE smart-client PUBLIC "-//Innovidata//Smart Client Container 1.0//EN" "http://www.innovidata.com/dtd/smart-client_1_0.dtd">
<smart-client>
<smart-ref>
<ejb-ref-name>ejb/Hello</ejb-ref-name>
<transport>org.smartcc.SOAPTransport</transport>
<lookup>ejb/HelloBean</lookup>
<properties>
org.smartcc.service.url=http://localhost:8080/axis/services/Hello
#org.smartcc.service.name=
#org.smartcc.service.namespace=
#org.smartcc.service.port=
#org.smartcc.service.wsdl=
</properties>
</smart-ref>
<!--login-configuration>@vendor@</login-configuration-->
</smart-client>
|
|
From: <he...@us...> - 2002-06-18 09:27:51
|
Update of /cvsroot/smartcc/smartcc/soap
In directory usw-pr-cvs1:/tmp/cvs-serv16099/soap
Added Files:
build.xml
Log Message:
o an example that shows, how to connect to a webservice
--- NEW FILE: build.xml ---
<project name="Google Search Client" default="main" basedir=".">
<property file="../etc/build.properties"/>
<property name="home" value=".."/>
<property name="dist" value="../dist"/>
<property name="build" value="build"/>
<property name="build.class" value="build/class"/>
<property name="build.etc" value="build/etc"/>
<property name="build.local" value="build/local"/>
<property name="build.remote" value="build/remote"/>
<property name="build.src" value="build/src"/>
<path id="build.classpath">
<pathelement path="${java.class.path}/"/>
<fileset dir="${dist}/client">
<include name="*.jar"/>
</fileset>
</path>
<!-- ==================== Preparations ==================== -->
<target name="prepare">
<tstamp/>
<mkdir dir="${build}"/>
<mkdir dir="${build.class}"/>
<mkdir dir="${build.etc}"/>
<mkdir dir="${build.local}"/>
</target>
<!-- ==================== Compile ==================== -->
<target name="compile" depends="prepare"
description="compile sources">
<javac srcdir="src" destdir="${build.class}"
debug="${build.debug}"
deprecation="${build.deprecation}"
encoding="ISO8859-1">
<classpath refid="build.classpath"/>
</javac>
</target>
<!-- ==================== Test Client ==================== -->
<target name="client" depends="compile">
<copy toFile="${build.etc}/client/application-client.xml"
file="etc/client/JBossNet-application-client.xml"/>
<copy toFile="${build.etc}/client/smart-client.xml"
file="etc/client/JBossNet-smart-client.xml"
filtering="true"/>
<jar file="${build.local}/JBossNetClient.jar"
manifest="etc/client/JBossNet-manifest.mf">
<fileset dir="${build.class}">
<include name="org/jboss/net/sample/hello/**/*.class"/>
</fileset>
<zipfileset dir="${build.etc}/client" prefix="META-INF"/>
</jar>
</target>
<!-- ==================== Admin ==================== -->
<target name="clean">
<delete dir="${build}"/>
<delete>
<fileset dir=".">
<include name="**/*.class"/>
<include name="**/*.u"/>
<include name="**/*.bak"/>
<include name="**/*~"/>
<include name="**/#*"/>
</fileset>
</delete>
</target>
<target name="build" depends="compile,client"/>
<target name="all" depends="clean,build"/>
<target name="main" depends="build"/>
</project>
|
|
From: <he...@us...> - 2002-06-18 09:24:53
|
Update of /cvsroot/smartcc/smartcc/src/org/smartcc In directory usw-pr-cvs1:/tmp/cvs-serv15379/src/org/smartcc Modified Files: ClientContainer.java SOAPTransport.java Log Message: o ClientContainer: don't swallow NamingExceptions o SOAPTransport: this works at least with jboss.net / axis Index: ClientContainer.java =================================================================== RCS file: /cvsroot/smartcc/smartcc/src/org/smartcc/ClientContainer.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ClientContainer.java 7 Jun 2002 09:41:30 -0000 1.3 --- ClientContainer.java 18 Jun 2002 09:24:50 -0000 1.4 *************** *** 66,70 **** container.start(); } - catch (NamingException e) { /* there's no application client */ } catch (Exception e) { System.err.println(e.getMessage()); --- 66,69 ---- Index: SOAPTransport.java =================================================================== RCS file: /cvsroot/smartcc/smartcc/src/org/smartcc/SOAPTransport.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** SOAPTransport.java 13 Jun 2002 09:44:42 -0000 1.3 --- SOAPTransport.java 18 Jun 2002 09:24:50 -0000 1.4 *************** *** 21,25 **** import javax.ejb.*; import javax.xml.rpc.*; ! import javax.xml.namespace.*; --- 21,26 ---- import javax.ejb.*; import javax.xml.rpc.*; ! //import javax.xml.namespace.*; ! import javax.xml.rpc.namespace.*; *************** *** 57,65 **** ServiceFactory serviceFactory = ServiceFactory.newInstance(); ! Service service = serviceFactory.createService(new URL(wsdl), ! new QName(nameSpace, serviceName)); ! stub = (Stub)service.getPort(new QName(nameSpace, portName), ! smartRef.getRemoteInterfaceClass()); ! stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url); stubs.put(smartRef, stub); --- 58,73 ---- ServiceFactory serviceFactory = ServiceFactory.newInstance(); ! Service service = (wsdl != null) ! ? serviceFactory.createService(new URL(wsdl), ! new QName(nameSpace, serviceName)) ! : serviceFactory.createService(new QName(nameSpace, serviceName)); ! ! stub = (portName != null) ! ? (Stub)service.getPort(new QName(nameSpace, portName), ! smartRef.getRemoteInterfaceClass()) ! : (Stub)service.getPort(smartRef.getRemoteInterfaceClass()); ! ! //stub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, url); ! stub._setProperty(Call.ENDPOINT_ADDRESS_PROPERTY, url); stubs.put(smartRef, stub); |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/src/org In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/src/org Log Message: Directory /cvsroot/smartcc/smartcc/soap/src/org added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello/interfaces In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/src/org/jboss/net/sample/hello/interfaces Log Message: Directory /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello/interfaces added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/etc In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/etc Log Message: Directory /cvsroot/smartcc/smartcc/soap/etc added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/src/org/jboss Log Message: Directory /cvsroot/smartcc/smartcc/soap/src/org/jboss added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/src/org/jboss/net/sample Log Message: Directory /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap Log Message: Directory /cvsroot/smartcc/smartcc/soap added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss/net In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/src/org/jboss/net Log Message: Directory /cvsroot/smartcc/smartcc/soap/src/org/jboss/net added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/etc/client In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/etc/client Log Message: Directory /cvsroot/smartcc/smartcc/soap/etc/client added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:58
|
Update of /cvsroot/smartcc/smartcc/soap/src In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/src Log Message: Directory /cvsroot/smartcc/smartcc/soap/src added to the repository |
|
From: <he...@us...> - 2002-06-18 09:22:57
|
Update of /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello In directory usw-pr-cvs1:/tmp/cvs-serv15059/soap/src/org/jboss/net/sample/hello Log Message: Directory /cvsroot/smartcc/smartcc/soap/src/org/jboss/net/sample/hello added to the repository |
|
From: <he...@us...> - 2002-06-17 09:33:33
|
Update of /cvsroot/smartcc/smartcc/doc In directory usw-pr-cvs1:/tmp/cvs-serv19179/doc Modified Files: Replay.html TODO Log Message: o minor changes like typos .. Index: Replay.html =================================================================== RCS file: /cvsroot/smartcc/smartcc/doc/Replay.html,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Replay.html 29 May 2002 09:52:28 -0000 1.2 --- Replay.html 17 Jun 2002 09:33:28 -0000 1.3 *************** *** 20,27 **** resources of all clients accumulate in some way. A system "scales", if load and resources rise lineary with the number of parallel clients. Also with the number ! of clients, the probability of conflicts and deadlocks rise. The performance of a system on load cannot be predicted. It has to be measured. The Replay Tool of ! the SmartCC allows you to record a representative client session and replay it ! with an arbitrary number of simulated clients in parallel. </p> --- 20,34 ---- resources of all clients accumulate in some way. A system "scales", if load and resources rise lineary with the number of parallel clients. Also with the number ! of clients, the probability of conflicts and deadlocks rises. The performance of a system on load cannot be predicted. It has to be measured. The Replay Tool of ! the SmartCC allows you to record a representative client session (use case) and ! replay it with an arbitrary number of simulated clients in parallel. ! </p> ! ! <p> ! Recording is performed by the RecordingInterceptor. It forwards all invocations ! to a recorder, which generates a java source file and a data file. Replaying is ! done with <i>n</i> parrallel client threads, that are spawned by the simulator. ! This document describes all steps, that are required for recording and replaying. </p> *************** *** 80,84 **** The shell script <i>replay</i> in the bin directory can be used to start the simulator. The application client jar must be contained in the classpath. The ! script takes the following command line arguments: </p> --- 87,91 ---- The shell script <i>replay</i> in the bin directory can be used to start the simulator. The application client jar must be contained in the classpath. The ! script takes the following command line arguments: </p> Index: TODO =================================================================== RCS file: /cvsroot/smartcc/smartcc/doc/TODO,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** TODO 7 Jun 2002 09:36:51 -0000 1.4 --- TODO 17 Jun 2002 09:33:28 -0000 1.5 *************** *** 1,3 **** --- 1,6 ---- o write some generally useful interceptors + o windows batch files for 'run' and 'replay' + o correctly implement the EJBMetaData + o verify correctness of EJBObject and EJBHome methods FUTURE: |
|
From: <he...@us...> - 2002-06-14 16:23:38
|
Update of /cvsroot/smartcc/smartcc/google/src/org/smartcc/google In directory usw-pr-cvs1:/tmp/cvs-serv11046/google/src/org/smartcc/google Added Files: GoogleSearchClient.java GoogleSearchHome.java Log Message: the subproject 'google' demonstrates, how web services can be transparently access like session beans --- NEW FILE: GoogleSearchClient.java --- /* * $Id: GoogleSearchClient.java,v 1.1 2002/06/14 16:23:34 hengels Exp $ * (c) Copyright 2002 Holger Engels. * * This file is part of the Smart Client Container (http://smartcc.sourceforge.net). * * SmartCC is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2.1 * of the License, or (at your option) any later version. * * Please see COPYING for the complete licence. */ 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 { public static void main(String[] args) throws Exception { Context context = new InitialContext(); GoogleSearchHome googleHome = (GoogleSearchHome)context.lookup("ejb/GoogleSearch"); GoogleSearchPort google = googleHome.create(); String key = (String)context.lookup("google.license"); GoogleSearchResult result = google.doGoogleSearch(key, "smartcc", 0, 10, true, null, true, "lang_de", "latin1", "latin1"); System.out.println("" + result.toString()); } } --- NEW FILE: GoogleSearchHome.java --- package org.smartcc.google; import java.rmi.*; import javax.ejb.*; public interface GoogleSearchHome extends EJBHome { GoogleSearchPort create() throws RemoteException, CreateException; } |