Integration of ofbiz with rest service

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Integration of ofbiz with rest service

snehil27492@gmail.com
Hi  All ,

I want to make an application for which i want to use ofbiz as our 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
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

Deepak Dixit-5
Hi Snehil,

Your email has been moderated, Please subscribe mailing list.
http://ofbiz.apache.org/mailing-lists.html

Thanks & Regards
--
Deepak Dixit
ofbiz.apache.org


On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
[hidden email]> wrote:

> Hi  All ,
>
> I want to make an application for which i want to use ofbiz as our 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
>
grv
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

grv
In reply to this post by snehil27492@gmail.com
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 API
development?

Best,
Girish

On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
[hidden email]> wrote:

> Hi  All ,
>
> I want to make an application for which i want to use ofbiz as our 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
>
grv
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

grv
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 <[hidden email]> 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 <
> [hidden email]> 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 API
>> development?
>>
>> Best,
>> Girish
>>
>> On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
>> [hidden email]> wrote:
>>
>>> Hi  All ,
>>>
>>> I want to make an application for which i want to use ofbiz as our
>>> 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
>>>
>>
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

snehil27492@gmail.com
Yes i am planning to launch the springboot app in a separate container.

On Mon, 18 Feb 2019 at 5:58 PM, Girish Vasmatkar <
[hidden email]> 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 <[hidden email]>
> 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 <
>> [hidden email]> 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 API
>>> development?
>>>
>>> Best,
>>> Girish
>>>
>>> On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
>>> [hidden email]> wrote:
>>>
>>>> Hi  All ,
>>>>
>>>> I want to make an application for which i want to use ofbiz as our
>>>> 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
>>>>
>>>
grv
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

grv
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 <[hidden email]> 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 <
> [hidden email]> 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 <[hidden email]>
>> 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 <
>>> [hidden email]> 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 API
>>>> development?
>>>>
>>>> Best,
>>>> Girish
>>>>
>>>> On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
>>>> [hidden email]> wrote:
>>>>
>>>>> Hi  All ,
>>>>>
>>>>> I want to make an application for which i want to use ofbiz as our
>>>>> 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
>>>>>
>>>>
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

Deepak Dixit-5
In reply to this post by snehil27492@gmail.com
Hi Snehil,

Your email has been moderated, Please subscribe mailing list for better
communication
http://ofbiz.apache.org/mailing-lists.html


Thanks & Regards
--
Deepak Dixit
ofbiz.apache.org


On Mon, Feb 18, 2019 at 6:23 PM snehil maurya <[hidden email]> 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 <
> [hidden email]> 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 <[hidden email]>
> > 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 <
> >> [hidden email]> 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 API
> >>> development?
> >>>
> >>> Best,
> >>> Girish
> >>>
> >>> On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
> >>> [hidden email]> wrote:
> >>>
> >>>> Hi  All ,
> >>>>
> >>>> I want to make an application for which i want to use ofbiz as our
> >>>> 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
> >>>>
> >>>
>
grv
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

grv
In reply to this post by grv
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.

Best,
Girish

On Mon, Feb 18, 2019 at 8:12 PM snehil maurya <[hidden email]> 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 <
> [hidden email]> 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 <[hidden email]>
>> 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 <
>>> [hidden email]> 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 <[hidden email]>
>>>> 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 <
>>>>> [hidden email]> 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 API
>>>>>> development?
>>>>>>
>>>>>> Best,
>>>>>> Girish
>>>>>>
>>>>>> On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
>>>>>> [hidden email]> wrote:
>>>>>>
>>>>>>> Hi  All ,
>>>>>>>
>>>>>>> I want to make an application for which i want to use ofbiz as our
>>>>>>> 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
>>>>>>>
>>>>>>
grv
Reply | Threaded
Open this post in threaded view
|

Re: Integration of ofbiz with rest service

grv
I see couple issues -

   - You have not configured any JAX-RS implementation here. I would expect
   some configuration in web.xml for the JAX-RS runtime system to kick in and
   pick your requests.
   - You have to bypass controller servlet and filter. No need for control
   servlet here. Just get rid of it. This is a separate web module and you do
   not need your requests to go through control servlet.

Since no JAX-RS interceptor or filter or any servlet mapping is
found, @Path annotations won't work.

Best,
Girish

On Wed, Feb 20, 2019 at 12:31 PM snehil maurya <[hidden email]>
wrote:

> Hi,
>
> This is a demo plugin we created and we were trying to do some testing in
> this.
> If you can find, in 'OfbizDemoServices' class I have tried to give @Path
> annotations for creating a rest endpoint and using the web.xml I was
> hitting the URL: https://localhost:8443/ofbizDemo/control/ofbizDemoTest/1
> .
>
> But it always returns with an error that the request cannot be found.
> Also, I have not used any request mapping in the controller for this
> endpoint.
>
> Please let us know what we are doing wrong in this case.
>
> Also, as I checked the version of javax.ws.rs-api version is 2.0.1.
>
> Thanks,
> Snehil
>
>
> On Tue, Feb 19, 2019 at 10:43 AM Girish Vasmatkar <
> [hidden email]> wrote:
>
>> 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.
>>
>> Best,
>> Girish
>>
>> On Mon, Feb 18, 2019 at 8:12 PM snehil maurya <[hidden email]>
>> 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 <
>>> [hidden email]> 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 <[hidden email]>
>>>> 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 <
>>>>> [hidden email]> 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 <[hidden email]>
>>>>>> 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 <
>>>>>>> [hidden email]> 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 API
>>>>>>>> development?
>>>>>>>>
>>>>>>>> Best,
>>>>>>>> Girish
>>>>>>>>
>>>>>>>> On Mon, Feb 18, 2019 at 10:54 AM [hidden email] <
>>>>>>>> [hidden email]> wrote:
>>>>>>>>
>>>>>>>>> Hi  All ,
>>>>>>>>>
>>>>>>>>> I want to make an application for which i want to use ofbiz as our
>>>>>>>>> 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
>>>>>>>>>
>>>>>>>>