If I build a Spring app on App Engine, will it use multithreading by default or can it be configured to?

According to the latest App Engine news, Java apps can minimize the number of instance hours they use by enabling multi-threading - which will allow them to use more resources per instance-hour.

If I build a Spring app on App Engine, will it use multithreading by default to optimize its resource use?

Or is there something I need to do to configure it to take advantage of this App Engine feature?

-------------Problems Reply------------

Servlet multithreading on AppEngine is off by default. You can simply enable it by adding a <threadsafe>true</threadsafe> element to appengine-web.xml.

In this case your servlets must be thread safe: basically this means that they should not have internal state (fields) or access to the state data must be synchronized.

About Spring: I'm not familiar with Spring internals, so I could not say if it's thread safe.

Category:java Views:0 Time:2011-05-11

Related post

  • How can one determine page render time in Spring (on Google App Engine/Java)? 2009-07-29

    We are building an application on Google App Engine in Java using Spring 2.5. I would like to put something in the footer that displays page render time. Where are the best code hooks in either Spring or GAE/J to calculate render time and put it into

  • Building a database driven web app 2010-07-06

    Need some pointers in choosing the technologies for building a database driven web app. (preferably open source) Here are the options. Database: MySQL. Any other option? Platform: Java Technology: JavaServer Faces JSF? EJB? Servlets? This is where m

  • Is it possible to bind/convert the items in a list of a form to a specific type in a Spring Web MVC app? 2010-07-15

    I'm building a Spring MVC app with Spring 3.0.3. I have data binding of my form working just fine, but one of the form fields is a list of items. Hypothetically speaking, my form object looks like this: public class MyForm { private String name; priv

  • How much do experienced Cocoa programmers rely on Interface Builder for wiring up their apps? 2010-10-12

    In IB one can instantiate controllers, build up references to UI elements, and define action targets. It is also possible to do that programmatically. I wonder what (most) seasoned Cocoa developers prefer? In many other environments, I would not both

  • Any idea how to build a php string manipulation app using forms? 2010-12-23

    I want to build an string/text manipulation app that: An app consists of a form User inputs text there as a string using Click a button - which usues $_POST method to manipulate a string using oop method to : Example method assigned to a button: publ

  • Spring Hibernate & Console App Integration 2011-04-14

    Hi I'm looking for a sample Spring Hibernate Console App. I've been reading the Spring Documentation but there's too much technical detail. I understand that 1 Hibernate Session is roughly equivalent to 1 JDBC Transaction. Now I decided to implement

  • Multiple .debug and .cod files generated while building and signing my blackebrry app 2011-04-26

    I am facing a peculiar problem when trying to build and sign my blackberry app with signing keys .The problem is its creating 2 debug files(sibling files) and also showing sibling .cod files when i am trying to sign the application with the keys but

  • How to configure Eclipse for building external libs-requiring Java apps? 2011-05-27

    I want to use several standard third-party libs (e.g. Apache's log4j) for a small Java project I'm working on. I know how to configure my IDE, Eclipse, so that these libraries are available during my development work, but I don't know how to build th

  • Building URLs in for MVC apps *and* supporting apps 2011-06-17

    MVC has great tools for building urls inside an MVC app by using routing. Routing by controller and action lets us avoid hard coding urls in markup. But we have a bunch of ancillary services that need to create urls for marketing emails. For instance

  • How to build web forum in android app 2011-06-26

    I am studying android app. and I am thinking to study about building web forum in my app. (it's like forum in open feints). Is there any resource that i can reference for building web forum in my app ? thanks --------------Solutions------------- I'm

  • How do you trace the entry into and exit from all functions in Spring-based web app? 2011-08-25

    On the Spring-based web app project I'm on now, the developers have written two logging statements into every function. One logging the entry into the function, the other logging the exit. The idea is to trace the execution path -- at least a functio

  • spring mvc + desktop app = best protocol and gui framework 2011-11-09

    I wanna create spring app which will consists of 2 parts : spring backend + spring mvc (server + web app) desktop app which need to acces to backend Whats best protocol to comunicate between spring and desktop app? Can i use SOAP for this? Can someon

  • How do I add .jsp headers and footers to my Spring MVC web app? 2012-02-23

    How do I add .jsp headers and footers to my Spring MVC web app? I know there's many different answers, but I would like to know (them all really but more importantly) what is the proper way to do this? I'm just learning Spring and I have a hint the a

  • Basic Spring MVC web app causes "ContextLoaderListener" error 2012-03-29

    I'm trying to create my first Spring MVC web app. I've downloaded Spring Tool Suite and followed these instructions: To setup a new project in STS: Click File -> New -> Spring Template Project -> Spring MVC Project To pull in dependencies an

  • Will the build in antivirus scan the apps before they download?? 2014-08-28

    Original Title: apps scan Will the build in antivirus scan the apps before they download?? --------------Solutions------------- Hi, Thank you for posting your query in Microsoft Community. Yes, Windows Defender (built in antivirus) will scan the appl

  • Google apps / Google app engine relations 2010-09-03

    I've got a question concerning the two "products" Google provides : google apps (dedicated gmail, docs, calendar...) and google app engine (application in the cloud). If I want to develop an application inside google apps, is it necessarily on google

  • How do I make a Mac App Store app that validates receipts? 2010-12-22

    I've made an app that validates its receipt using the ValidateStoreReceipt code on GitHub according to the Apple documentation. The docs say to sign your app, make a package (with signing), and then install it via command line. Then run the app, see

  • iOS App-to-App Trasnmission of Data using new Document Support API 2011-01-26

    Problem: Building Enterprise Applications of a Suite Nature, and need to be able to pass data from one application to another. Example: App1 is a barcode reader that produces and inventory list. App2 needs a "fresh" copy of the same inventory list in

  • (IOS / Android) app to app push notifications (without using server) 2011-11-04

    I'm looking to build a set of apps that would utilise push notifications to other users in the vicinity. had a look at urbanairship and xtify but am not sure if its possible to do app to app push notificitions without use of an intermediary server? t

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.116 (s). 11 q(s)