# Obtaing a Database Connection object from Servlet Context

**URL:** <https://forum.kirupa.com/t/obtaing-a-database-connection-object-from-servlet-context/281533>\
**Category:** programming\
**Created:** [February 10, 2009, 12:22pm UTC](https://forum.kirupa.com/t/obtaing-a-database-connection-object-from-servlet-context/281533 "2009-02-10T12:22:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Limping\_Twerp](https://avatars.discourse-cdn.com/v4/letter/l/85e7bf/32.png) [@Limping\_Twerp](https://forum.kirupa.com/u/Limping_Twerp)\
**Post date:** [February 10, 2009, 12:22pm UTC](https://forum.kirupa.com/t/obtaing-a-database-connection-object-from-servlet-context/281533/1 "2009-02-10T12:22:39Z")

</div>

Hi Guys’n’Gals,

i asked myself: Is there a possibility for AS3 to obtain data from a ServletContext? For example i would like to create a database connection as an attribute of the ServletContext, and be able to access a MySQL database per AS3 using this attribute. Or is it easier to make a connection to the DB using just as3?

Greets, TWERP
