When using a Carbon product, you can use a remotely deployed registry instead of an embedded registry.
You can find the following entry in the carbon.xml, which is inside conf directory.
<Registry>
<ReadOnly>false</ReadOnly>
<Type>embedded</Type>
<SystemUserName>carbon</SystemUserName>
<!--
<Url>http://remote-ip:port/registry/</Url>
<Chroot>/prefix</Chroot>
<Username>username</Username>
<Password>password</Password>
-->
</Registry>
You have to change the value of "Type" tag to "remote". Then uncomment the commented portion and give the URL of the remote registry as the value of Url tag. As the value of chroot tag, you have to give the path to the directory you are going to use as the root. Then change the username and password by providing the credentials of the user.