# Do Child graphs share same connections object

**URL:** <https://forum.cloverdx.com/t/do-child-graphs-share-same-connections-object/1271>\
**Category:** CloverDX Platform\
**Created:** [September 11, 2013, 12:00am UTC](https://forum.cloverdx.com/t/do-child-graphs-share-same-connections-object/1271 "2013-09-11T00:00:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![varkashy](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@varkashy](https://forum.cloverdx.com/u/varkashy)\
**Post date:** [September 11, 2013, 12:00am UTC](https://forum.cloverdx.com/t/do-child-graphs-share-same-connections-object/1271/1 "2013-09-11T00:00:00Z")

</div>

Hi

I have a concern on how db connection is created for child graphs. I have a central sandbox, the db connection is created in this based on jndi lookup, and is externalized for others to use.  
The other sandboxes use this connection, and invoke certain components of central sandbox.  
Now my question is, if threadsafeconnection=false, is the same connection shared between parent and child graph? As is the case between different phases of same graph?

---

<div class="post-metadata">

**Author:** ![imriskal](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@imriskal](https://forum.cloverdx.com/u/imriskal)\
**Post date:** [September 16, 2013, 8:21am UTC](https://forum.cloverdx.com/t/do-child-graphs-share-same-connections-object/1271/2 "2013-09-16T08:21:49Z")

</div>

Hi varkashy,

Parent graph and child graph both have their own connection, connection is not shared between them.

Regarding the phases, one connection is shared among all phases of the same graph. (for threadsafeconnection=false)

Kind regards,

---

<div class="post-metadata">

**Author:** ![varkashy](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@varkashy](https://forum.cloverdx.com/u/varkashy)\
**Post date:** [September 17, 2013, 6:45am UTC](https://forum.cloverdx.com/t/do-child-graphs-share-same-connections-object/1271/3 "2013-09-17T06:45:02Z")

</div>

Thank you , that clarifies, my confusion was between phases and child graphs.  
One more question, if i run the graphs as a transaction component how does it work with respect to connections?

---

<div class="post-metadata">

**Author:** ![imriskal](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@imriskal](https://forum.cloverdx.com/u/imriskal)\
**Post date:** [September 17, 2013, 2:12pm UTC](https://forum.cloverdx.com/t/do-child-graphs-share-same-connections-object/1271/4 "2013-09-17T14:12:50Z")

</div>

Hello varkashy,

What do you mean by “run the graphs as a transaction component”, please? Could you share more details about your goal? Thank you.

Kind regards,
