# Is toEmbedded deprecated

**URL:** https://community.stardog.com/t/is-toembedded-deprecated/1326
**Category:** Support
**Created:** [October 8, 2018, 5:04pm UTC](https://community.stardog.com/t/is-toembedded-deprecated/1326 "2018-10-08T17:04:28Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)
#### Post date: [October 8, 2018, 5:04pm UTC](https://community.stardog.com/t/is-toembedded-deprecated/1326/1 "2018-10-08T17:04:29Z")

</div>

Ok, I can't figure this out. I thought I had things working but then I started getting an error "No driver was found which supports the connection string: 'embed://system/' . Am I missing some dependency or something?. I'm a little confused about using the toEmbedded call. Is there any reason why I'd rather use that than just toServer("localhost:5820")?

Ok I think I figured out my own problem but I'm still curios why you would prefer toEmbedded to toServer

---

<div class="post-metadata">

### Author: ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)
#### Post date: [October 8, 2018, 5:11pm UTC](https://community.stardog.com/t/is-toembedded-deprecated/1326/2 "2018-10-08T17:11:42Z")

</div>

Are you talking about `AdminConnectionConfiguration.toEmbeddedServer()`?

The embedded server works without a TCP connection.

---

<div class="post-metadata">

### Author: ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)
#### Post date: [October 8, 2018, 5:13pm UTC](https://community.stardog.com/t/is-toembedded-deprecated/1326/3 "2018-10-08T17:13:23Z")

</div>

Does it just ignore what you pass to the bind in STARDOG.newServer().bind()? There used to be a SNARLProtocolConstants.EMBEDDED\_ADDRESS but there doesn't seem to be an equivalent for http

---

<div class="post-metadata">

### Author: ![jess](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/jess/32/10_2.png) [@jess](https://community.stardog.com/u/jess)
#### Post date: [October 8, 2018, 5:17pm UTC](https://community.stardog.com/t/is-toembedded-deprecated/1326/4 "2018-10-08T17:17:28Z")

</div>

I'm not sure what you're asking. The connection configuration is about making a connection but `Stardog.newServer()` is an internal API that creates a server instance. If you want an embedded server you don't need to depend on internal APIs.

The constant URL for the embedded server is a constant because it's not parameterizable. There's only one embedded server accessible at a time. With an HTTP connection, you can connect to any HTTP server, including localhost on 5820, a different port, or a different machine.

---

<div class="post-metadata">

### Author: ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)
#### Post date: [October 8, 2018, 5:25pm UTC](https://community.stardog.com/t/is-toembedded-deprecated/1326/5 "2018-10-08T17:25:18Z")

</div>

Ok, I think I get it now. I don't think I quite understood the difference between creating "Stardog" and then creating "Server'". I think I had always just seen it that way in the examples and money see, monkey do. That clears things up and I've got it all working now. Thanks.

---

<div class="post-metadata">

### Author: ![zachary.whitley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/zachary.whitley/32/94_2.png) [@zachary.whitley](https://community.stardog.com/u/zachary.whitley)
#### Post date: [October 22, 2018, 5:25pm UTC](https://community.stardog.com/t/is-toembedded-deprecated/1326/6 "2018-10-22T17:25:21Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
