Hi Jason Thanks for the quick reply .. About GWT-Dispatch i will surely look into it from my project point of view i dont want to have one more framework over and above GWT now on server side ... But yes we are using spring.
As i understand this issue.. we cannot connect to database using Hosted Mode. Then in projects where you need database support is everyone developing just the client part using the GWT Plugin and enable the database support when they deploy it on to tomcat ? This seems too long a process to follow. Please let me know Thanks On Apr 19, 9:10 pm, Jason Hatton <[email protected]> wrote: > keyboard-samurai I would highly recommend you check out the Google I/O GWT > Best Practices <http://www.youtube.com/watch?v=PDuhR18-EdM> video. It talks > about gwt-dispatch and MVP. > > You will want to implement your connections to Oracle/Hibernate in the > GWT-RPC servlets. The project I am on we are using our own extension of the > gwt-dispatch project's servlet to initialize a Spring context. > > Our web.xml looks like this: > > <context-param> > <param-name>contextConfigLocation</param-name> > <param-value>classpath:applicationContext.xml</param-value> > </context-param> > <listener> > <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> > </listener> > > <!-- Servlets --> > <servlet> > <servlet-name>dispatchServlet</servlet-name> > <servlet-class>com.own.custom.extended.server.StandardDispatchServiceServlet</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>dispatchServlet</servlet-name> > <url-pattern>/client/dispatch</url-pattern> > </servlet-mapping> > > Our applicationContext.xml sits in the WEB-INF/classes directory. Nothing > but standard Spring stuff there including the necessary things to get > Hibernate working. If you want to skip Spring I am not going to be of much > help there but, I am sure it can be done. > > Jas > > > > On Mon, Apr 19, 2010 at 10:53 AM, keyboard_samurai <[email protected]> wrote: > > awesome do we have a article how to get this done ??? > > > and also does it gets integrated with eclipse ? > > > Regards, > > -Yogesh > > > On Apr 19, 8:45 pm, Jason Hatton <[email protected]> wrote: > > > You will get that with just GWT. > > > > On Mon, Apr 19, 2010 at 9:55 AM, keyboard_samurai <[email protected]> > > wrote: > > > > Then do you replace tomcat with GAE ? i want to have the benefits of > > > > Hosted mode i.e auto compile and debug ??? > > > > > On Apr 19, 5:32 pm, Sripathi Krishnan <[email protected]> > > > > wrote: > > > > > Disable Google App Engine in your eclipse settings. GAE does not > > allow > > > > you > > > > > to use databases or open network connections. > > > > > > --Sri > > > > > > On 19 April 2010 17:59, keyboard_samurai <[email protected]> wrote: > > > > > > > Hello, > > > > > > > I need to know if anyone is able to query the database for fetching > > > > > > data. This is a common requirement for most of the applications to > > use > > > > > > database.If Hosted Mode doesnt support it then how are the users of > > > > > > GWT developing ? > > > > > > > Do let me know !! > > > > > > > I get an exception while connecting to database using JDBC below is > > > > > > the trace of it. > > > > > > > java.lang.NoClassDefFoundError: > > java.lang.management.ManagementFactory > > > > > > is a restricted class. Please see the Google App Engine > > developer's > > > > > > guide for more details. > > > > > > at > > > com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: > > > > > > 51) > > > > > > at > > > oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:270) > > > > > > at > > oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:213) > > > > > > at java.security.AccessController.doPrivileged(Native Method) > > > > > > > Thanks! > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > > > "Google Web Toolkit" group. > > > > > > To post to this group, send email to > > > > [email protected]. > > > > > > To unsubscribe from this group, send email to > > > > > > [email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google Web Toolkit" group. > > > > > To post to this group, send email to > > [email protected] > > > > . > > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > . > > > > > For more options, visit this group athttp:// > > > > groups.google.com/group/google-web-toolkit?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > [email protected]. > > > > To unsubscribe from this group, send email to > > > > [email protected]<google-web-toolkit%[email protected]> > > <google-web-toolkit%[email protected]<google-web-toolkit%[email protected]> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > > To post to this group, send email to [email protected] > > . > > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%[email protected]> > > . > > > For more options, visit this group athttp:// > > groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<google-web-toolkit%[email protected]> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
