Muhannad wrote:
> Hi,
> 
> I'm about to build a GWT application, communicating with the server
> using RPC, and get access to MySQL database. Actually, I don't want to
> hard-code the database connection parameters, instead I want to put
> them in web.xml and get the values at runtime. Would you please tell
> me how could I do that? How could I get access to web.xml parameters?

What is your runtime environment?  Under Tomcat, the common way to 
handle database connections is to create connection pools as a resource, 
then in your code just obtain a connection from the pool.  Your code 
doesn't need to know the actual pool configuration, nor should it care.

-- 
Guy Rouillier

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to