OfBiz in IntelliJ and JRebel

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

OfBiz in IntelliJ and JRebel

Thomas Deniffel
Hello everybody,

I honestly hope that I do this right with the mail. If not: forgive me,
it's my first time :)

I just started with OfBiz. I use IntelliJ and JRebel. I imported the
project into IntelliJ, as suggested and it runs directly in the IDE (over
the run config with a gradle run).

But now I change a class, and I want do redeploy it and directly load it
into the running application (with JRebel). I can't do it because JRebel is
disabled and Strg+Shift+9 does not work too.

Now my question: How can I redeploy a class without restart the whole
application (what takes a while).

Is the same possible with all the XML-Definitions in the project?

Thank you,

Tom
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Jacques Le Roux
Administrator
Hi Thomas,

Welcome, right place to post.

I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer you on this point, but you might find this interesting

https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-HowTo-WhenAndWhenNotRecompiling

HTH

Jacques


Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :

> Hello everybody,
>
> I honestly hope that I do this right with the mail. If not: forgive me,
> it's my first time :)
>
> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
> project into IntelliJ, as suggested and it runs directly in the IDE (over
> the run config with a gradle run).
>
> But now I change a class, and I want do redeploy it and directly load it
> into the running application (with JRebel). I can't do it because JRebel is
> disabled and Strg+Shift+9 does not work too.
>
> Now my question: How can I redeploy a class without restart the whole
> application (what takes a while).
>
> Is the same possible with all the XML-Definitions in the project?
>
> Thank you,
>
> Tom
>

Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Thomas Deniffel
Hello Jacques,

Thank you for your answer. Eclipse would be fine for me as well. I like
both IDEs.

By the way: Is there a possibility to create entities as Java-Classes?

Best,

Thomas

2017-04-15 13:42 GMT+02:00 Jacques Le Roux <[hidden email]>:

> Hi Thomas,
>
> Welcome, right place to post.
>
> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer you on
> this point, but you might find this interesting
>
> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
> HowTo-WhenAndWhenNotRecompiling
>
> HTH
>
> Jacques
>
>
>
> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
>
>> Hello everybody,
>>
>> I honestly hope that I do this right with the mail. If not: forgive me,
>> it's my first time :)
>>
>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>> project into IntelliJ, as suggested and it runs directly in the IDE (over
>> the run config with a gradle run).
>>
>> But now I change a class, and I want do redeploy it and directly load it
>> into the running application (with JRebel). I can't do it because JRebel
>> is
>> disabled and Strg+Shift+9 does not work too.
>>
>> Now my question: How can I redeploy a class without restart the whole
>> application (what takes a while).
>>
>> Is the same possible with all the XML-Definitions in the project?
>>
>> Thank you,
>>
>> Tom
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Jacques Le Roux
Administrator
Le 15/04/2017 à 15:37, Thomas Deniffel a écrit :
> Hello Jacques,
>
> Thank you for your answer. Eclipse would be fine for me as well. I like
> both IDEs.
>
> By the way: Is there a possibility to create entities as Java-Classes?

Why would you like to do that?

Jacques

>
> Best,
>
> Thomas
>
> 2017-04-15 13:42 GMT+02:00 Jacques Le Roux <[hidden email]>:
>
>> Hi Thomas,
>>
>> Welcome, right place to post.
>>
>> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer you on
>> this point, but you might find this interesting
>>
>> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
>> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
>> HowTo-WhenAndWhenNotRecompiling
>>
>> HTH
>>
>> Jacques
>>
>>
>>
>> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
>>
>>> Hello everybody,
>>>
>>> I honestly hope that I do this right with the mail. If not: forgive me,
>>> it's my first time :)
>>>
>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>>> project into IntelliJ, as suggested and it runs directly in the IDE (over
>>> the run config with a gradle run).
>>>
>>> But now I change a class, and I want do redeploy it and directly load it
>>> into the running application (with JRebel). I can't do it because JRebel
>>> is
>>> disabled and Strg+Shift+9 does not work too.
>>>
>>> Now my question: How can I redeploy a class without restart the whole
>>> application (what takes a while).
>>>
>>> Is the same possible with all the XML-Definitions in the project?
>>>
>>> Thank you,
>>>
>>> Tom
>>>
>>>

Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Thomas Deniffel
Because I want to design my domain model independent to the database model
and place logic in the entities. So the entities are not only data
structures. Like it is in ddd. Is there a way to achieve this in the XML
approach?



Am 15.04.2017 8:13 nachm. schrieb "Jacques Le Roux" <
[hidden email]>:

> Le 15/04/2017 à 15:37, Thomas Deniffel a écrit :
>
>> Hello Jacques,
>>
>> Thank you for your answer. Eclipse would be fine for me as well. I like
>> both IDEs.
>>
>> By the way: Is there a possibility to create entities as Java-Classes?
>>
>
> Why would you like to do that?
>
> Jacques
>
>
>> Best,
>>
>> Thomas
>>
>> 2017-04-15 13:42 GMT+02:00 Jacques Le Roux <[hidden email]>
>> :
>>
>> Hi Thomas,
>>>
>>> Welcome, right place to post.
>>>
>>> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer you on
>>> this point, but you might find this interesting
>>>
>>> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
>>> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
>>> HowTo-WhenAndWhenNotRecompiling
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
>>>
>>> Hello everybody,
>>>>
>>>> I honestly hope that I do this right with the mail. If not: forgive me,
>>>> it's my first time :)
>>>>
>>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>>>> project into IntelliJ, as suggested and it runs directly in the IDE
>>>> (over
>>>> the run config with a gradle run).
>>>>
>>>> But now I change a class, and I want do redeploy it and directly load it
>>>> into the running application (with JRebel). I can't do it because JRebel
>>>> is
>>>> disabled and Strg+Shift+9 does not work too.
>>>>
>>>> Now my question: How can I redeploy a class without restart the whole
>>>> application (what takes a while).
>>>>
>>>> Is the same possible with all the XML-Definitions in the project?
>>>>
>>>> Thank you,
>>>>
>>>> Tom
>>>>
>>>>
>>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

taher
Hi Thomas,

Welcome aboard, I hope you enjoy learning OFBiz

What you are trying to achive is an object oriented approach to domain
modeling which perhaps is not supported in OFBiz in this fashion. In my
opinion (perhaps others might disagree) it is probably simpler to code that
way because you don't have to maintain the mapping between your objects and
the relational model underneath.

ORM could be (again my opinion) a painful approach to coding not only due
to an explosion of classes in your domain model but also fragility in
mapping. I think that is why OFBiz embraces the relational model and builds
the logic on top of it in terms of services which might be different from
what you are used to.

Finally, I recommend avoiding mixing topics in one thread. So if you have
unrelated questions perhaps start a new thread so others can search the
mail archives by topic.

Cheers,

Taher Alkhateeb

On Apr 15, 2017 11:24 PM, "Thomas Deniffel" <[hidden email]> wrote:

Because I want to design my domain model independent to the database model
and place logic in the entities. So the entities are not only data
structures. Like it is in ddd. Is there a way to achieve this in the XML
approach?



Am 15.04.2017 8:13 nachm. schrieb "Jacques Le Roux" <
[hidden email]>:

> Le 15/04/2017 à 15:37, Thomas Deniffel a écrit :
>
>> Hello Jacques,
>>
>> Thank you for your answer. Eclipse would be fine for me as well. I like
>> both IDEs.
>>
>> By the way: Is there a possibility to create entities as Java-Classes?
>>
>
> Why would you like to do that?
>
> Jacques
>
>
>> Best,
>>
>> Thomas
>>
>> 2017-04-15 13:42 GMT+02:00 Jacques Le Roux <[hidden email]>
>> :
>>
>> Hi Thomas,
>>>
>>> Welcome, right place to post.
>>>
>>> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer you
on

>>> this point, but you might find this interesting
>>>
>>> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
>>> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
>>> HowTo-WhenAndWhenNotRecompiling
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
>>>
>>> Hello everybody,
>>>>
>>>> I honestly hope that I do this right with the mail. If not: forgive me,
>>>> it's my first time :)
>>>>
>>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>>>> project into IntelliJ, as suggested and it runs directly in the IDE
>>>> (over
>>>> the run config with a gradle run).
>>>>
>>>> But now I change a class, and I want do redeploy it and directly load
it
>>>> into the running application (with JRebel). I can't do it because
JRebel

>>>> is
>>>> disabled and Strg+Shift+9 does not work too.
>>>>
>>>> Now my question: How can I redeploy a class without restart the whole
>>>> application (what takes a while).
>>>>
>>>> Is the same possible with all the XML-Definitions in the project?
>>>>
>>>> Thank you,
>>>>
>>>> Tom
>>>>
>>>>
>>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Thomas Deniffel
Hello Taher,

thank you for your very good response! I will evaluate it and test if this
approach does fit to my projects. May be it results in a fork or in ofbiz
or a completely different approach. The test data will show.

I am sure that your approach worked well for you, otherwise you wouldn't
came to this status of the project. Im am excited to evaluate your approach
- may be it is much better as mine - only data can show it. I will share my
results you :)

Best,

T

Am 15.04.2017 10:50 nachm. schrieb "Taher Alkhateeb" <
[hidden email]>:

> Hi Thomas,
>
> Welcome aboard, I hope you enjoy learning OFBiz
>
> What you are trying to achive is an object oriented approach to domain
> modeling which perhaps is not supported in OFBiz in this fashion. In my
> opinion (perhaps others might disagree) it is probably simpler to code that
> way because you don't have to maintain the mapping between your objects and
> the relational model underneath.
>
> ORM could be (again my opinion) a painful approach to coding not only due
> to an explosion of classes in your domain model but also fragility in
> mapping. I think that is why OFBiz embraces the relational model and builds
> the logic on top of it in terms of services which might be different from
> what you are used to.
>
> Finally, I recommend avoiding mixing topics in one thread. So if you have
> unrelated questions perhaps start a new thread so others can search the
> mail archives by topic.
>
> Cheers,
>
> Taher Alkhateeb
>
> On Apr 15, 2017 11:24 PM, "Thomas Deniffel" <[hidden email]> wrote:
>
> Because I want to design my domain model independent to the database model
> and place logic in the entities. So the entities are not only data
> structures. Like it is in ddd. Is there a way to achieve this in the XML
> approach?
>
>
>
> Am 15.04.2017 8:13 nachm. schrieb "Jacques Le Roux" <
> [hidden email]>:
>
> > Le 15/04/2017 à 15:37, Thomas Deniffel a écrit :
> >
> >> Hello Jacques,
> >>
> >> Thank you for your answer. Eclipse would be fine for me as well. I like
> >> both IDEs.
> >>
> >> By the way: Is there a possibility to create entities as Java-Classes?
> >>
> >
> > Why would you like to do that?
> >
> > Jacques
> >
> >
> >> Best,
> >>
> >> Thomas
> >>
> >> 2017-04-15 13:42 GMT+02:00 Jacques Le Roux <
> [hidden email]>
> >> :
> >>
> >> Hi Thomas,
> >>>
> >>> Welcome, right place to post.
> >>>
> >>> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer you
> on
> >>> this point, but you might find this interesting
> >>>
> >>> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
> >>> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
> >>> HowTo-WhenAndWhenNotRecompiling
> >>>
> >>> HTH
> >>>
> >>> Jacques
> >>>
> >>>
> >>>
> >>> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
> >>>
> >>> Hello everybody,
> >>>>
> >>>> I honestly hope that I do this right with the mail. If not: forgive
> me,
> >>>> it's my first time :)
> >>>>
> >>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
> >>>> project into IntelliJ, as suggested and it runs directly in the IDE
> >>>> (over
> >>>> the run config with a gradle run).
> >>>>
> >>>> But now I change a class, and I want do redeploy it and directly load
> it
> >>>> into the running application (with JRebel). I can't do it because
> JRebel
> >>>> is
> >>>> disabled and Strg+Shift+9 does not work too.
> >>>>
> >>>> Now my question: How can I redeploy a class without restart the whole
> >>>> application (what takes a while).
> >>>>
> >>>> Is the same possible with all the XML-Definitions in the project?
> >>>>
> >>>> Thank you,
> >>>>
> >>>> Tom
> >>>>
> >>>>
> >>>>
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Jacques Le Roux
Administrator
Hi Thomas,

When OFBiz was still young (in 2033-2004), a French fork, Neogia, tried what you want to do.
Finally it was more complicated and the team behind it, Nereide, is now using plain OFBiz.

Like Taher I prefer OFBiz way than using an ORM.

YMMV

Jacques


Le 15/04/2017 à 23:59, Thomas Deniffel a écrit :

> Hello Taher,
>
> thank you for your very good response! I will evaluate it and test if this
> approach does fit to my projects. May be it results in a fork or in ofbiz
> or a completely different approach. The test data will show.
>
> I am sure that your approach worked well for you, otherwise you wouldn't
> came to this status of the project. Im am excited to evaluate your approach
> - may be it is much better as mine - only data can show it. I will share my
> results you :)
>
> Best,
>
> T
>
> Am 15.04.2017 10:50 nachm. schrieb "Taher Alkhateeb" <
> [hidden email]>:
>
>> Hi Thomas,
>>
>> Welcome aboard, I hope you enjoy learning OFBiz
>>
>> What you are trying to achive is an object oriented approach to domain
>> modeling which perhaps is not supported in OFBiz in this fashion. In my
>> opinion (perhaps others might disagree) it is probably simpler to code that
>> way because you don't have to maintain the mapping between your objects and
>> the relational model underneath.
>>
>> ORM could be (again my opinion) a painful approach to coding not only due
>> to an explosion of classes in your domain model but also fragility in
>> mapping. I think that is why OFBiz embraces the relational model and builds
>> the logic on top of it in terms of services which might be different from
>> what you are used to.
>>
>> Finally, I recommend avoiding mixing topics in one thread. So if you have
>> unrelated questions perhaps start a new thread so others can search the
>> mail archives by topic.
>>
>> Cheers,
>>
>> Taher Alkhateeb
>>
>> On Apr 15, 2017 11:24 PM, "Thomas Deniffel" <[hidden email]> wrote:
>>
>> Because I want to design my domain model independent to the database model
>> and place logic in the entities. So the entities are not only data
>> structures. Like it is in ddd. Is there a way to achieve this in the XML
>> approach?
>>
>>
>>
>> Am 15.04.2017 8:13 nachm. schrieb "Jacques Le Roux" <
>> [hidden email]>:
>>
>>> Le 15/04/2017 à 15:37, Thomas Deniffel a écrit :
>>>
>>>> Hello Jacques,
>>>>
>>>> Thank you for your answer. Eclipse would be fine for me as well. I like
>>>> both IDEs.
>>>>
>>>> By the way: Is there a possibility to create entities as Java-Classes?
>>>>
>>> Why would you like to do that?
>>>
>>> Jacques
>>>
>>>
>>>> Best,
>>>>
>>>> Thomas
>>>>
>>>> 2017-04-15 13:42 GMT+02:00 Jacques Le Roux <
>> [hidden email]>
>>>> :
>>>>
>>>> Hi Thomas,
>>>>> Welcome, right place to post.
>>>>>
>>>>> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer you
>> on
>>>>> this point, but you might find this interesting
>>>>>
>>>>> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
>>>>> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
>>>>> HowTo-WhenAndWhenNotRecompiling
>>>>>
>>>>> HTH
>>>>>
>>>>> Jacques
>>>>>
>>>>>
>>>>>
>>>>> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
>>>>>
>>>>> Hello everybody,
>>>>>> I honestly hope that I do this right with the mail. If not: forgive
>> me,
>>>>>> it's my first time :)
>>>>>>
>>>>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>>>>>> project into IntelliJ, as suggested and it runs directly in the IDE
>>>>>> (over
>>>>>> the run config with a gradle run).
>>>>>>
>>>>>> But now I change a class, and I want do redeploy it and directly load
>> it
>>>>>> into the running application (with JRebel). I can't do it because
>> JRebel
>>>>>> is
>>>>>> disabled and Strg+Shift+9 does not work too.
>>>>>>
>>>>>> Now my question: How can I redeploy a class without restart the whole
>>>>>> application (what takes a while).
>>>>>>
>>>>>> Is the same possible with all the XML-Definitions in the project?
>>>>>>
>>>>>> Thank you,
>>>>>>
>>>>>> Tom
>>>>>>
>>>>>>
>>>>>>

Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Shi Jinghai-3
In reply to this post by Thomas Deniffel
Hi Thomas,

As you mentioned domain model, perhaps you'd like to check whether Apache ISIS works for you:
http://isis.apache.org/

Kind Regards,

Shi Jinghai

-----邮件原件-----
发件人: Thomas Deniffel [mailto:[hidden email]]
发送时间: 2017年4月16日 4:24
收件人: [hidden email]
主题: Re: OfBiz in IntelliJ and JRebel

Because I want to design my domain model independent to the database model and place logic in the entities. So the entities are not only data structures. Like it is in ddd. Is there a way to achieve this in the XML approach?



Am 15.04.2017 8:13 nachm. schrieb "Jacques Le Roux" <
[hidden email]>:

> Le 15/04/2017 à 15:37, Thomas Deniffel a écrit :
>
>> Hello Jacques,
>>
>> Thank you for your answer. Eclipse would be fine for me as well. I
>> like both IDEs.
>>
>> By the way: Is there a possibility to create entities as Java-Classes?
>>
>
> Why would you like to do that?
>
> Jacques
>
>
>> Best,
>>
>> Thomas
>>
>> 2017-04-15 13:42 GMT+02:00 Jacques Le Roux
>> <[hidden email]>
>> :
>>
>> Hi Thomas,
>>>
>>> Welcome, right place to post.
>>>
>>> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer
>>> you on this point, but you might find this interesting
>>>
>>> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
>>> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
>>> HowTo-WhenAndWhenNotRecompiling
>>>
>>> HTH
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
>>>
>>> Hello everybody,
>>>>
>>>> I honestly hope that I do this right with the mail. If not: forgive
>>>> me, it's my first time :)
>>>>
>>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported
>>>> the project into IntelliJ, as suggested and it runs directly in the
>>>> IDE (over the run config with a gradle run).
>>>>
>>>> But now I change a class, and I want do redeploy it and directly
>>>> load it into the running application (with JRebel). I can't do it
>>>> because JRebel is disabled and Strg+Shift+9 does not work too.
>>>>
>>>> Now my question: How can I redeploy a class without restart the
>>>> whole application (what takes a while).
>>>>
>>>> Is the same possible with all the XML-Definitions in the project?
>>>>
>>>> Thank you,
>>>>
>>>> Tom
>>>>
>>>>
>>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Thomas Deniffel
Thank you, Shi,

This framework looks good. I test it a little bit. Is there a guide how to
integrate it in OfBiz. I am new in this system.

I also have trouble to do this tutorial:
https://cwiki.apache.org/confluence/display/OFBIZ/Export+service+using+REST
I get a 404 when I load the page when I have done Step 3. I think that the
integration of org.apache.wink.server.internal.servlet.RestServlet did not
work. I believe this tutorial is old now and may be only possible with a
previous version?

Best,

Thomas

2017-04-17 8:20 GMT+02:00 Shi Jinghai <[hidden email]>:

> Hi Thomas,
>
> As you mentioned domain model, perhaps you'd like to check whether Apache
> ISIS works for you:
> http://isis.apache.org/
>
> Kind Regards,
>
> Shi Jinghai
>
> -----邮件原件-----
> 发件人: Thomas Deniffel [mailto:[hidden email]]
> 发送时间: 2017年4月16日 4:24
> 收件人: [hidden email]
> 主题: Re: OfBiz in IntelliJ and JRebel
>
> Because I want to design my domain model independent to the database model
> and place logic in the entities. So the entities are not only data
> structures. Like it is in ddd. Is there a way to achieve this in the XML
> approach?
>
>
>
> Am 15.04.2017 8:13 nachm. schrieb "Jacques Le Roux" <
> [hidden email]>:
>
> > Le 15/04/2017 à 15:37, Thomas Deniffel a écrit :
> >
> >> Hello Jacques,
> >>
> >> Thank you for your answer. Eclipse would be fine for me as well. I
> >> like both IDEs.
> >>
> >> By the way: Is there a possibility to create entities as Java-Classes?
> >>
> >
> > Why would you like to do that?
> >
> > Jacques
> >
> >
> >> Best,
> >>
> >> Thomas
> >>
> >> 2017-04-15 13:42 GMT+02:00 Jacques Le Roux
> >> <[hidden email]>
> >> :
> >>
> >> Hi Thomas,
> >>>
> >>> Welcome, right place to post.
> >>>
> >>> I don't use JRebel (nor IntelliJ, I use Eclipse) so I can't answer
> >>> you on this point, but you might find this interesting
> >>>
> >>> https://cwiki.apache.org/confluence/display/OFBIZ/FAQ+-+
> >>> Tips+-+Tricks+-+Cookbook+-+HowTo#FAQ-Tips-Tricks-Cookbook-
> >>> HowTo-WhenAndWhenNotRecompiling
> >>>
> >>> HTH
> >>>
> >>> Jacques
> >>>
> >>>
> >>>
> >>> Le 15/04/2017 à 13:10, Thomas Deniffel a écrit :
> >>>
> >>> Hello everybody,
> >>>>
> >>>> I honestly hope that I do this right with the mail. If not: forgive
> >>>> me, it's my first time :)
> >>>>
> >>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported
> >>>> the project into IntelliJ, as suggested and it runs directly in the
> >>>> IDE (over the run config with a gradle run).
> >>>>
> >>>> But now I change a class, and I want do redeploy it and directly
> >>>> load it into the running application (with JRebel). I can't do it
> >>>> because JRebel is disabled and Strg+Shift+9 does not work too.
> >>>>
> >>>> Now my question: How can I redeploy a class without restart the
> >>>> whole application (what takes a while).
> >>>>
> >>>> Is the same possible with all the XML-Definitions in the project?
> >>>>
> >>>> Thank you,
> >>>>
> >>>> Tom
> >>>>
> >>>>
> >>>>
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

james yong
In reply to this post by Thomas Deniffel
Hi Thomas,

Have you look at https://dcevm.github.io/?
It should do what you wanted, i.e. to redeploy a class without restart the whole
application.

Regards,
James Yong

Thomas Deniffel wrote
Hello everybody,

I honestly hope that I do this right with the mail. If not: forgive me,
it's my first time :)

I just started with OfBiz. I use IntelliJ and JRebel. I imported the
project into IntelliJ, as suggested and it runs directly in the IDE (over
the run config with a gradle run).

But now I change a class, and I want do redeploy it and directly load it
into the running application (with JRebel). I can't do it because JRebel is
disabled and Strg+Shift+9 does not work too.

Now my question: How can I redeploy a class without restart the whole
application (what takes a while).

Is the same possible with all the XML-Definitions in the project?

Thank you,

Tom
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Jacques Le Roux
Administrator
Thanks James,

I confirm it works, but I found it delicate to put in place when you have several JDKs and versions of them already installed, not a big deal, just
beware :)

Jacques


Le 19/04/2017 à 09:12, james yong a écrit :

> Hi Thomas,
>
> Have you look at https://dcevm.github.io/?
> It should do what you wanted, i.e. to redeploy a class without restart the
> whole
> application.
>
> Regards,
> James Yong
>
>
> Thomas Deniffel wrote
>> Hello everybody,
>>
>> I honestly hope that I do this right with the mail. If not: forgive me,
>> it's my first time :)
>>
>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>> project into IntelliJ, as suggested and it runs directly in the IDE (over
>> the run config with a gradle run).
>>
>> But now I change a class, and I want do redeploy it and directly load it
>> into the running application (with JRebel). I can't do it because JRebel
>> is
>> disabled and Strg+Shift+9 does not work too.
>>
>> Now my question: How can I redeploy a class without restart the whole
>> application (what takes a while).
>>
>> Is the same possible with all the XML-Definitions in the project?
>>
>> Thank you,
>>
>> Tom
>
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/OfBiz-in-IntelliJ-and-JRebel-tp4704817p4705007.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

james yong
Hi Jacques,

Yes, we need to track which JDK is modified by DCEVM. In my case, I installed a separated version of JDK meant to be modified by DCEVM, and run Java applications using this version during development.
My Eclipse IDE runs on unmodified JDK.

Regards,
James

Jacques Le Roux wrote
Thanks James,

I confirm it works, but I found it delicate to put in place when you have several JDKs and versions of them already installed, not a big deal, just
beware :)

Jacques


Le 19/04/2017 à 09:12, james yong a écrit :
> Hi Thomas,
>
> Have you look at https://dcevm.github.io/?
> It should do what you wanted, i.e. to redeploy a class without restart the
> whole
> application.
>
> Regards,
> James Yong
>
>
> Thomas Deniffel wrote
>> Hello everybody,
>>
>> I honestly hope that I do this right with the mail. If not: forgive me,
>> it's my first time :)
>>
>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>> project into IntelliJ, as suggested and it runs directly in the IDE (over
>> the run config with a gradle run).
>>
>> But now I change a class, and I want do redeploy it and directly load it
>> into the running application (with JRebel). I can't do it because JRebel
>> is
>> disabled and Strg+Shift+9 does not work too.
>>
>> Now my question: How can I redeploy a class without restart the whole
>> application (what takes a while).
>>
>> Is the same possible with all the XML-Definitions in the project?
>>
>> Thank you,
>>
>> Tom
>
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/OfBiz-in-IntelliJ-and-JRebel-tp4704817p4705007.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Jacques Le Roux
Administrator
That's wise, good how-to, thanks James!

Jacques


Le 19/04/2017 à 09:37, james yong a écrit :

> Hi Jacques,
>
> Yes, we need to track which JDK is modified by DCEVM. In my case, I
> installed a separated version of JDK meant to be modified by DCEVM, and run
> Java applications using this version during development.
> My Eclipse IDE runs on unmodified JDK.
>
> Regards,
> James
>
>
> Jacques Le Roux wrote
>> Thanks James,
>>
>> I confirm it works, but I found it delicate to put in place when you have
>> several JDKs and versions of them already installed, not a big deal, just
>> beware :)
>>
>> Jacques
>>
>>
>> Le 19/04/2017 à 09:12, james yong a écrit :
>>> Hi Thomas,
>>>
>>> Have you look at https://dcevm.github.io/?
>>> It should do what you wanted, i.e. to redeploy a class without restart
>>> the
>>> whole
>>> application.
>>>
>>> Regards,
>>> James Yong
>>>
>>>
>>> Thomas Deniffel wrote
>>>> Hello everybody,
>>>>
>>>> I honestly hope that I do this right with the mail. If not: forgive me,
>>>> it's my first time :)
>>>>
>>>> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
>>>> project into IntelliJ, as suggested and it runs directly in the IDE
>>>> (over
>>>> the run config with a gradle run).
>>>>
>>>> But now I change a class, and I want do redeploy it and directly load it
>>>> into the running application (with JRebel). I can't do it because JRebel
>>>> is
>>>> disabled and Strg+Shift+9 does not work too.
>>>>
>>>> Now my question: How can I redeploy a class without restart the whole
>>>> application (what takes a while).
>>>>
>>>> Is the same possible with all the XML-Definitions in the project?
>>>>
>>>> Thank you,
>>>>
>>>> Tom
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://ofbiz.135035.n4.nabble.com/OfBiz-in-IntelliJ-and-JRebel-tp4704817p4705007.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/OfBiz-in-IntelliJ-and-JRebel-tp4704817p4705011.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: OfBiz in IntelliJ and JRebel

Yash Sharma
In reply to this post by Thomas Deniffel
Hello Thomas,
I think JRebel uses a deployment environment like Tomcat to hot swap code,
but in our case, Catalina Container is called from inside OFbiz start.jar
which will obstruct swapping of code.

On Sat, Apr 15, 2017 at 4:41 PM Thomas Deniffel <[hidden email]> wrote:

> Hello everybody,
>
> I honestly hope that I do this right with the mail. If not: forgive me,
> it's my first time :)
>
> I just started with OfBiz. I use IntelliJ and JRebel. I imported the
> project into IntelliJ, as suggested and it runs directly in the IDE (over
> the run config with a gradle run).
>
> But now I change a class, and I want do redeploy it and directly load it
> into the running application (with JRebel). I can't do it because JRebel is
> disabled and Strg+Shift+9 does not work too.
>
> Now my question: How can I redeploy a class without restart the whole
> application (what takes a while).
>
> Is the same possible with all the XML-Definitions in the project?
>
> Thank you,
>
> Tom
>
--
Thanks & Regards,

*Pradhan Yash Sharma*
*HotWax Systems* | www.hotwaxsystems.com