Is it necessary to use JVM arg -Dgwt.codeserver.port=9876 for serialization?

128 views
Skip to first unread message

Brandon Donnelson

unread,
Sep 5, 2014, 11:37:22 AM9/5/14
to google-web-tool...@googlegroups.com
I'm wondering how necessary it is to use JVM arg '-Dgwt.codeserver.port=9876' with GWT 2.6.1+ for serialization? 

If it is necessary, this is something that probably should be baked into the IDE's.

Thanks,
Brandon


Jens

unread,
Sep 5, 2014, 12:55:55 PM9/5/14
to google-web-tool...@googlegroups.com
It is only required for GWT-RPC with SDM because SDM might produce new *.gwt.rpc policy files that the server must know. 

As it is a server side property and you don't know which server a developer will use I don't think the IDE can help to add that parameter. However if a developer uses "DevMode -superDevMode" then the embedded Jetty server spawned by GWT should be configured with GWT-RPC in mind.

-- J.

Brandon Donnelson

unread,
Sep 5, 2014, 1:04:55 PM9/5/14
to google-web-tool...@googlegroups.com, Manolo Carrasco Moñino
Hi Manolo, 

I wanted to confirm something just to make the jvm rpc serialization arg is taken into account when working with the legacy jar, which is going to be embedded in Eclipse. And if not, I could bake it in to the Eclipse the jvm args if needed when SDM is turned on. I'm going to do some testing tonight to verify if this path could be a end user issue. I'm wrapping up the GPE PR requests, but could add this if we thought it was a benefit to the end user development workflow. 

The rpc tests I did didn't show a problem so far, but I suspect thats because thats because its ok. It's probably only an issue when people use -noserver. I'll verify.

Thanks for the Help Jens,

Brandon

Manuel Carrasco Moñino

unread,
Sep 5, 2014, 2:42:45 PM9/5/14
to google-web-tool...@googlegroups.com
Brandon, the argument is considered in both: the legacy jar and  2.7.0, and it's set after the SDM port has been computed.

I have already tested it and works fine, even with the -noserver set since it's done in the SuperDevModeListener.


- Manolo




--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/51d5f8bf-a881-4583-9ec8-b532e7b2ad01%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Brandon Donnelson

unread,
Sep 5, 2014, 2:57:25 PM9/5/14
to google-web-tool...@googlegroups.com
Thanks Manolo. I wanted double check to make sure before things were finishing baking. 

Thanks for your help,
Brandon


On Friday, September 5, 2014 11:42:45 AM UTC-7, Manuel Carrasco Moñino wrote:
Brandon, the argument is considered in both: the legacy jar and  2.7.0, and it's set after the SDM port has been computed.

I have already tested it and works fine, even with the -noserver set since it's done in the SuperDevModeListener.


- Manolo


On Fri, Sep 5, 2014 at 7:04 PM, Brandon Donnelson <branfl...@gmail.com> wrote:
Hi Manolo, 

I wanted to confirm something just to make the jvm rpc serialization arg is taken into account when working with the legacy jar, which is going to be embedded in Eclipse. And if not, I could bake it in to the Eclipse the jvm args if needed when SDM is turned on. I'm going to do some testing tonight to verify if this path could be a end user issue. I'm wrapping up the GPE PR requests, but could add this if we thought it was a benefit to the end user development workflow. 

The rpc tests I did didn't show a problem so far, but I suspect thats because thats because its ok. It's probably only an issue when people use -noserver. I'll verify.

Thanks for the Help Jens,

Brandon

On Friday, September 5, 2014 9:55:55 AM UTC-7, Jens wrote:
It is only required for GWT-RPC with SDM because SDM might produce new *.gwt.rpc policy files that the server must know. 

As it is a server side property and you don't know which server a developer will use I don't think the IDE can help to add that parameter. However if a developer uses "DevMode -superDevMode" then the embedded Jetty server spawned by GWT should be configured with GWT-RPC in mind.

-- J.

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages