[ 
https://issues.apache.org/jira/browse/TAP5-1616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091443#comment-13091443
 ] 

ag commented on TAP5-1616:
--------------------------

Ok guys while this issue is being addressed, we need some workaround(s). I 
tried to use the service override piece of codes on GAEJ, but it seems like the 
method is not invoked at all in AppModule. Any tips/suggestion would be highly 
appreciated -

In web.xml: 

 <param-name>tapestry.app-package</param-name>
 <param-value>tapp</param-value>

The following methods are called in AppModule - 

        public static void bind(ServiceBinder binder) { 

        public static void 
contributeApplicationDefaults(MappedConfiguration<String, Object> 
configuration) { 

Service override codes -

        @Contribute(ServiceOverride.class)
        public static void 
setupApplicationServiceOverrides(MappedConfiguration<Class,Object> 
configuration) {
                System.out.println("AppModule 
setupApplicationServiceOverrides() ...");
        configuration.add(PeriodicExecutor.class, new PeriodicExecutor() { 
            public PeriodicJob addJob(Schedule schedule, String name, Runnable 
job) { 
                        System.out.println("AppModule 
createNOOPPeriodicExecutor() returning null.");
                return null;
            } 
        }); 
    } 

Is this related or I should open another ticket?



> PeriodicExecutor service prevents running T5.3 on GAE
> -----------------------------------------------------
>
>                 Key: TAP5-1616
>                 URL: https://issues.apache.org/jira/browse/TAP5-1616
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Kalle Korhonen
>
> Since GAE doesn't allow user-created threads, constructing PeriodicExecutor 
> service fails on GAE, preventing running the whole application on it.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to