# Questions about Feeder and Session

**URL:** <https://community.gatling.io/t/questions-about-feeder-and-session/3256>\
**Category:** Gatling (Open-Source)\
**Created:** [September 8, 2016, 9:53pm UTC](https://community.gatling.io/t/questions-about-feeder-and-session/3256 "2016-09-08T21:53:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shayne](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Shayne](https://community.gatling.io/u/Shayne)\
**Post date:** [September 8, 2016, 9:53pm UTC](https://community.gatling.io/t/questions-about-feeder-and-session/3256/1 "2016-09-08T21:53:51Z")

</div>

You might try restructuring the scenario like below, see if it gives you a different result. I wonder if the first .feed() is consumed by the .exec() so it isn’t available to the second exec()

```auto
val scn = scenario("TGT_AddTrip")
  .repeat(1){
    feed(usernames)
    .feed(jdbcFeeder(conn_str,
        "xxxx", "xxxx",
        "SELECT [t.id](http://t.id/) as trip_id FROM trip t where username='${username}'").queue)
      .exec((s:Session)=>{
        println("Current Trip ID is "+s.attributes("trip_id"))

```

```auto
        println("username is " + s.attributes('username"))
        s})
  }

```
