You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by ve...@apache.org on 2010/05/24 23:43:42 UTC
svn commit: r947822 - in /axis/axis2/java/transports/trunk/src/site:
apt/udp.apt site.xml
Author: veithen
Date: Mon May 24 21:43:42 2010
New Revision: 947822
URL: http://svn.apache.org/viewvc?rev=947822&view=rev
Log:
Added some initial documentation for the UDP transport.
Added:
axis/axis2/java/transports/trunk/src/site/apt/udp.apt (with props)
Modified:
axis/axis2/java/transports/trunk/src/site/site.xml
Added: axis/axis2/java/transports/trunk/src/site/apt/udp.apt
URL: http://svn.apache.org/viewvc/axis/axis2/java/transports/trunk/src/site/apt/udp.apt?rev=947822&view=auto
==============================================================================
--- axis/axis2/java/transports/trunk/src/site/apt/udp.apt (added)
+++ axis/axis2/java/transports/trunk/src/site/apt/udp.apt Mon May 24 21:43:42 2010
@@ -0,0 +1,81 @@
+~~ Licensed to the Apache Software Foundation (ASF) under one
+~~ or more contributor license agreements. See the NOTICE file
+~~ distributed with this work for additional information
+~~ regarding copyright ownership. The ASF licenses this file
+~~ to you under the Apache License, Version 2.0 (the
+~~ "License"); you may not use this file except in compliance
+~~ with the License. You may obtain a copy of the License at
+~~
+~~ http://www.apache.org/licenses/LICENSE-2.0
+~~
+~~ Unless required by applicable law or agreed to in writing,
+~~ software distributed under the License is distributed on an
+~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+~~ KIND, either express or implied. See the License for the
+~~ specific language governing permissions and limitations
+~~ under the License.
+
+JMS Transport
+
+* {Content}
+
+%{toc|section=1|fromDepth=1}
+
+* {Transport listener}
+
+** {Listener configuration}
+
+ The UDP transport listener is configured in <<<axis2.xml>>> using the following declaration:
+
++----------------------------+
+<transportReceiver name="udp" class="org.apache.axis2.transport.udp.UDPListener"/>
++----------------------------+
+
+ Depending on how the UDP transport is set up, additional parameters may be required inside the
+ <<<transportReceiver>>> element (see next section).
+
+** {Endpoint configuration}
+
+ Endpoints can be configured both at the transport level and at the service level. Each endpoint
+ opens a local UDP port for listening. UDP packets received on a port that is configured on a
+ service will be pre-dispatched to that service. Packets received by a port that is configured
+ at the transport level need to be dispatched using WS-Addressing or some other mechanism
+ implemented by a dispatcher configured in Axis2.
+
+ Endpoints are configured by adding <<<parameter>>> elements to the <<<transportReceiver>>>
+ element in <<<axis2.xml>>> or to a <<<service>>> element in an <<<services.xml>>> file. The
+ set of parameters is the same for both scenarios:
+
+ [<<<transport.udp.port>>> (required)]
+ Specifies the UDP port to bind to.
+
+ [<<<transport.udp.contentType>>> (required)]
+ Specifies the content type of the messages received on the endpoint. This parameter is
+ necessary because in contrast to HTTP, the content type information is not part of the
+ information exchanged on the wire.
+
+ [<<<transport.udp.maxPacketSize>>> (optional, defaults to 1024)]
+ The maximum UDP packet size.
+
+** {Examples}
+
+*** {Enabling SOAP over UDP at the transport level}
+
+ The following declaration in <<<axis2.xml>>> enables SOAP over UDP on port 3333 and
+ allows all services (for which UDP is in the list of exposed transports) to receive
+ messages over that port:
+
++----------------------------+
+<transportReceiver name="udp" class="org.apache.axis2.transport.udp.UDPListener">
+ <parameter name="transport.udp.port">3333</parameter>
+ <parameter name="transport.udp.contentType">text/xml</parameter>
+ <parameter name="transport.udp.maxPacketSize">4096</parameter>
+</transportReceiver>
++----------------------------+
+
+ For this to work, WS-Addressing must be enabled, and messages sent to port 3333 must
+ have the relevant WS-Addressing headers.
+
++----------------------------+
+<module ref="addressing"/>
++----------------------------+
Propchange: axis/axis2/java/transports/trunk/src/site/apt/udp.apt
------------------------------------------------------------------------------
svn:eol-style = native
Modified: axis/axis2/java/transports/trunk/src/site/site.xml
URL: http://svn.apache.org/viewvc/axis/axis2/java/transports/trunk/src/site/site.xml?rev=947822&r1=947821&r2=947822&view=diff
==============================================================================
--- axis/axis2/java/transports/trunk/src/site/site.xml (original)
+++ axis/axis2/java/transports/trunk/src/site/site.xml Mon May 24 21:43:42 2010
@@ -56,6 +56,7 @@
<item name="JMS" href="jms.html"/>
<item name="Mail" href="mail.html"/>
<item name="TCP" href="tcp-transport.html"/>
+ <item name="UDP" href="udp.html"/>
<item name="XMPP" href="xmpp.html"/>
<item name="SMS" href="sms.html"/>
</item>