ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Girish Vasmatkar <girish.vasmat...@hotwaxsystems.com>
Subject Re: Integration of ofbiz with rest service
Date Tue, 19 Feb 2019 05:12:36 GMT
What you tried to do (creating a wrapper around ofbiz to delegate the REST
requests to ofbiz) is the way forward. This makes more sense. It needs some
tweaking because ofbiz does come up (inadvertently) with JAX-RS 1.0
dependency and if you try to use a JAX-RS implementation that bundles
JAX-RS 2.0, then you are in for some tough times.

I presume that is the case with you. I am sure you'd have gotten some
exceptions during start-up as you try to register JAX-RS servlet with the
web application. It'd help if you can just paste here the exception
stacktrace and we'd be in a better position to help you out.


On Mon, Feb 18, 2019 at 8:12 PM snehil maurya <snehil27492@gmail.com> wrote:

> We tried to create a rest endpoint using JAX-RS, in one of the class in
> framework module but then when we ran the ofbiz application that endpoint
> was not found. if he can give more insight on how to do it it will help us
> greatly
> we were thinking to create a wrapper on top of ofbiz which will act as a
> endpoint, and that in turn will communicate with ofbiz code. Resulting both
> being on one server, and lesser network traffic.
> Will this help
> On Mon, 18 Feb 2019 at 6:45 PM, Girish Vasmatkar <
> girish.vasmatkar@hotwaxsystems.com> wrote:
>> This is going to be tricky and in my opinion will introduce overhead.
>> Possible design decisions (High Level) -
>> 1. JMS - Have springboot app send JMS messages to a queue/topic and let
>> ofbiz subscribe to them. This creates dependency on message broker's
>> availability and if the broker is unavailable then your api can not serve
>> requests.
>> 2. RMI - This is not a recommended way of doing the things. Too much
>> complexity for a REST client.
>> 3. SOAP - Let ofbiz expose it's services through SOAP and springboot as
>> SOAP client. That's just not a good approach.
>> I can't think of any other way around this.
>> On Mon, Feb 18, 2019 at 6:17 PM snehil maurya <snehil27492@gmail.com>
>> wrote:
>>> Yes i am planning to launch the springboot app in a separate container.
>>> On Mon, 18 Feb 2019 at 5:58 PM, Girish Vasmatkar <
>>> girish.vasmatkar@hotwaxsystems.com> wrote:
>>>> WINK is retired, but there're other frameworks too. Anyway, if you do
>>>> decide to take this approach, then you can consider Jersey/CXF/RESTEasy.
>>>> You can just use any JAX-RS compliant implementation instead of WINK.
>>>> Coming to you specific requirement - You want to create a (REST)
>>>> springboot app to be able to communicate with ofbiz. Do you plan to launch
>>>> spring boot app in a separate container?
>>>> Best,
>>>> Girish
>>>> On Mon, Feb 18, 2019 at 3:31 PM snehil maurya <snehil27492@gmail.com>
>>>> wrote:
>>>>> Hi,
>>>>> I guess the component/ plugin for REST has been decommissioned, as I
>>>>> check on ofbiz official site. Earlier it used wink to do all the rest
>>>>> endpoint generation but it has been retired since april 2017
>>>>> My ask is : i want to develop a rest endpoint in springboot which can
>>>>> communicate with ofbiz
>>>>> I want to know a way to do it .
>>>>> Thanks,
>>>>> Snehil
>>>>> On Mon, 18 Feb 2019 at 2:32 PM, Girish Vasmatkar <
>>>>> girish.vasmatkar@hotwaxsystems.com> wrote:
>>>>>> Hey Snehil
>>>>>> You can have a new component/plugin that could act as a REST web
>>>>>> application. Have you figured out the framework to use to aid the
>>>>>> development?
>>>>>> Best,
>>>>>> Girish
>>>>>> On Mon, Feb 18, 2019 at 10:54 AM snehil27492@gmail.com <
>>>>>> snehil27492@gmail.com> wrote:
>>>>>>> Hi  All ,
>>>>>>> I want to make an application for which i want to use ofbiz as
>>>>>>> backend framework
>>>>>>> Basically we want to make rest endpoints so that we can hit ofbiz
>>>>>>> and do whatever we want to do with it .
>>>>>>> does anybody have idea how to do it

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message