Netty on GAE

Vladimir Tsanev tsachev at gmail.com
Thu Jul 22 14:25:20 EDT 2010


I just noticed that am in a mistake.
There are two classes.

java.net.InetAddress
java.net.InetSocketAddress

The factory methods are in the InetAddress.

For some reason InetSocketAddress has a constructors that uses the
InetAddress.

So this make things harder solve. If those were in a separate factory class
maybe GAE team would put them in the white list.
But since they are not I am afraid this won't be working on gae soon.

Any toughts?
--
tsachev


On Thu, Jul 22, 2010 at 1:56 PM, Vladimir Tsanev <tsachev at gmail.com> wrote:

> Hi,
> I was trying to run embedded jboss messaging on Google App Engine. I
> configured  org.jboss.netty.channel.socket.http.HttpTunnelingServlet as
> below:
> <servlet>
>         <servlet-name>NettyServlet</servlet-name>
>
> <servlet-class>org.jboss.netty.channel.socket.http.HttpTunnelingServlet</servlet-class>
>         <init-param>
>             <param-name>endpoint</param-name>
>             <param-value>local:org.jboss.jbm</param-value>
>         </init-param>
>         <load-on-startup>1</load-on-startup>
>     </servlet>
>     <servlet-mapping>
>         <servlet-name>NettyServlet</servlet-name>
>         <url-pattern>/jbm</url-pattern>
>     </servlet-mapping>
>
> Unfortunately it seems that java.net.SocketAddress is not in the GAE's JRE
> whitelist. I can see reason for restricting java.net.InetAddress (for its
> factory methods) but I just need to use local (in VM) address.
> Well the LocalAddress class extends java.net.SocketAddress which is just an
> empty (serializable) class.
>
> I wonder if it would be possible to run HttpTunnelingServlet on GAE for
> local address-es if java.net.SocketAddress was not restricted?
>
> --
> Cheers,
> tsachev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20100722/3235b5de/attachment.html 


More information about the netty-users mailing list