# Creating services for external Java Functions

**URL:** <https://community.dreamfactory.com/t/creating-services-for-external-java-functions/482>\
**Category:** REST API\
**Created:** [October 20, 2014, 3:42pm UTC](https://community.dreamfactory.com/t/creating-services-for-external-java-functions/482 "2014-10-20T15:42:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jabbey](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jabbey/32/151_2.png) [@jabbey](https://community.dreamfactory.com/u/jabbey)\
**Post date:** [October 20, 2014, 3:42pm UTC](https://community.dreamfactory.com/t/creating-services-for-external-java-functions/482/1 "2014-10-20T15:42:08Z")

</div>

I have a collection of services (business logic functions) that go beyond simple CRUD that I would like to expose as DreamFactory REST services. Is there currently support for this, or is there some direction you could provide to me on where to start implementing such logic? This would allow me to make use of all the platform services (security, API hosting, etc…) of DreamFactory without having to re-implement complex business logic that we’ve already developed in Java components.

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [October 20, 2014, 3:53pm UTC](https://community.dreamfactory.com/t/creating-services-for-external-java-functions/482/2 "2014-10-20T15:53:12Z")

</div>

When you say “a collection of services”, do you mean REST APIs that already exist? If so, you can use DreamFactory to consume these “remote web services” and use all of DreamFactory’s platform services.

---

<div class="post-metadata">

**Author:** ![jabbey](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/jabbey/32/151_2.png) [@jabbey](https://community.dreamfactory.com/u/jabbey)\
**Post date:** [October 20, 2014, 3:59pm UTC](https://community.dreamfactory.com/t/creating-services-for-external-java-functions/482/3 "2014-10-20T15:59:43Z")

</div>

Ben, a little reading and looking at your response may be what I’m looking for. Apologize for not diving into the documentation on remote services. The existing services aren’t currently exposed for external calls. Assume I have a classic web application inside a Java container. Interactions are JSP/Servlet to my POJO services. If I want to persist with Java-based component logic, I believe the answer is to expose those components via REST and host them in the Java container (perhaps Jersey as a mechanism to do that). Then as you said, create a remote web service in DreamFactory and configure the params as required. This would also open up the aperture with regards to create DreamFactory proxies to infrastructure services that aren’t natively supported by DreamFactory (e.g, Neo4J/Titan graph databases). I think I know where to go with this. Thanks for the swift response.

---

<div class="post-metadata">

**Author:** ![benbusse](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/benbusse/32/4_2.png) [@benbusse](https://community.dreamfactory.com/u/benbusse)\
**Post date:** [October 20, 2014, 4:18pm UTC](https://community.dreamfactory.com/t/creating-services-for-external-java-functions/482/4 "2014-10-20T16:18:03Z")

</div>

Yes, that’s the approach…expose your components via REST and use DreamFactory to consume those APIs.
