Update of /cvsroot/openamf/openamf/src/web/WEB-INF
In directory sc8-pr-cvs1:/tmp/cvs-serv11161/src/web/WEB-INF
Modified Files:
web.xml openamf-config.xml
Log Message:
1) updated the DefaultGateway so that Invokers are completly pluggable
2) this will also enable lots of new features for the AdvancedGateway
Index: web.xml
===================================================================
RCS file: /cvsroot/openamf/openamf/src/web/WEB-INF/web.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** web.xml 18 Apr 2003 01:09:34 -0000 1.3
--- web.xml 30 Apr 2003 01:02:03 -0000 1.4
***************
*** 12,15 ****
--- 12,20 ----
<description>DefaultGateway</description>
<servlet-class>org.openamf.DefaultGateway</servlet-class>
+ <init-param>
+ <param-name>OPENAMF_CONFIG</param-name>
+ <param-value>/WEB-INF/openamf-config.xml</param-value>
+ <description>Location of the OpenAMF config file.</description>
+ </init-param>
</servlet>
***************
*** 19,22 ****
--- 24,32 ----
<description>AdvancedGateway</description>
<servlet-class>org.openamf.AdvancedGateway</servlet-class>
+ <init-param>
+ <param-name>OPENAMF_CONFIG</param-name>
+ <param-value>/WEB-INF/openamf-config.xml</param-value>
+ <description>Location of the OpenAMF config file.</description>
+ </init-param>
</servlet>
Index: openamf-config.xml
===================================================================
RCS file: /cvsroot/openamf/openamf/src/web/WEB-INF/openamf-config.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** openamf-config.xml 18 Apr 2003 23:53:13 -0000 1.2
--- openamf-config.xml 30 Apr 2003 01:02:03 -0000 1.3
***************
*** 2,5 ****
--- 2,34 ----
<config>
+ <!-- Required for DefaultGateway-->
+ <invokers>
+ <invoker>
+ <name>PageableRecordSet</name>
+ <class>org.openamf.invoker.PageableResultSetServiceInvoker</class>
+ </invoker>
+ <invoker>
+ <name>WebService</name>
+ <class>org.openamf.invoker.WebServiceInvoker</class>
+ </invoker>
+ <invoker>
+ <name>JMX</name>
+ <class>org.openamf.invoker.JMXServiceInvoker</class>
+ </invoker>
+ <invoker>
+ <name>SLSB</name>
+ <class>org.openamf.invoker.SLSBServiceInvoker</class>
+ </invoker>
+ <invoker>
+ <name>Java</name>
+ <class>org.openamf.invoker.JavaServiceInvoker</class>
+ </invoker>
+ </invokers>
+
+ <!-- Required for AdvancedGateway -->
+ <!--
+ This allows you to declare infomation about your services,
+ instead of having the DefaultGateway guess
+ -->
<services>
<service>
***************
*** 8,19 ****
org.openamf.test.Directory
</service-location>
! <service-invoker-class>
! org.openamf.invoker.JavaServiceInvoker
! </service-invoker-class>
<state-bean-ref>
<name>Authentication</name>
</state-bean-ref>
</service>
</services>
<state-beans>
<state-bean>
--- 37,74 ----
org.openamf.test.Directory
</service-location>
! <invoker-ref>
! Java
! </invoker-ref>
<state-bean-ref>
<name>Authentication</name>
</state-bean-ref>
+ <operations>
+ <operation>
+ <!-- Operation's are matched by the name and parameters -->
+ <name>getPeople</name>
+ <parameters>
+ <parameter>
+ <!--
+ type can be the the name of the class,
+ a * for any types,
+ or a ? any 1 type
+ -->
+ <type>*</type>
+ </parameter>
+ </parameters>
+ <result-translator>
+ <class>org.openamf.translator.BeanListToRecordSet</class>
+ <parameters>
+ <parameter>
+ <name>ignore</name>
+ <value>extraInfo</value>
+ </parameter>
+ </parameters>
+ </result-translator>
+ </operation>
+ </operations>
</service>
</services>
+
<state-beans>
<state-bean>
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.