[OFBiz] Dev - Devolopment IDE / editing Classes at runtime

Danny Gaethofs dgaethofs at yahoo.com
Fri Apr 1 14:00:04 EST 2005


Michael,

I tried out OFBIZ half a year ago with a lot of
difficulties to get it working. Since then I have been
looking at other applications written in Java and
deployed on Tomcat.

I have been reading this and other threads about
Tomcat for the last hour. Now I begin to understand a
lot of things I did not captured before. As I was  new
(still am) to using all of this stuff, Tomcat, Java,
OFBIZ.

I have some experience with one of the upcoming
commercial ERP application build on an object oriented
IDE. I am not saying OFBIZ should work the same but
this environment has some strong features for a
developer. 

My idea is to have:
1. Separation between the application and the IDE and
the container/application server (whatever it is
called)

2. Ability to modify and compile classes, data
definition from within the IDE without having to log
out of the application.


Regards,
Danny 

--- mpf at zentric.com wrote:
> 
> 
> 
> 
> 
> 
> Hallo Michael and other
> correct me if Im wrong but I think the classical
> approach is: In one
> sentence:
> Have the files modified in your favorit ide and then
> compile with ant and
> run outside the ide via a script that starts in
> debug mode so you can
> connect with your ide for step-debugging...
> 
> However debugging is also done mostly via
> log-analysis..
> I found editing the debug.properties very helpfull
> since I didnt know the
> features of log4j until lately this could have saved
> a lot of time.
> Find my hints on improving the logging readability
> in the wiki on this...
> 
> > Does everybody restart the servlet engine if you
> have changed
> > a java class for example a service?
> I do.
> However if I would be payed per "ofbiz restart" I
> would be millionair... I
> would love (not kill) to have a ofbiz system that
> could be devloped in
> tomcat so realtime editing of classes would be
> possible without a restart.
> This would save so much time and lost nerves ....
> All people who stand in line for this feature
> registered at
>
http://ofbizwiki.go-integral.com/Wiki.jsp?page=Tomcat
> However I send a mail to those registered latly to
> get things going but
> NOBODY responded...
> 
> Regards Michael
> 
> dev-bounces at lists.ofbiz.org wrote on 08.12.2004
> 10:29:11:
> 
> > Hi David and others,
> 
> > On Tue, Dec 07, 2004 at 04:15:41PM -0700, David E.
> Jones wrote:
> 
> > > There is a difference between the webapp
> classpath context and the
> > > global context.
> 
> > You mean that the ofbiz.jar loads the tomcat
> server with all libraries
> > (including some src in ecommerce component)
> globally for all web-apps?
> 
> > That would explain, why a touch of web.xml did not
> force a reload
> > of the libs.
> 
> >
> > The main thing I would like to reload would be a
> java-class referenced
> > as service in controller.xml.
> 
> > The restart of the whole tomcat takes about 1-2
> Minutes.
> 
> >
> > The primary question I wanted to ask in this
> thread is:
> > How do others develop with ofbiz.
> 
> > Does everybody restart the servlet engine if you
> have changed
> > a java class for example a service?
> 
> > And are there special "tricks" with a setup of
> your IDE?
> 
> > I heard of a mechanism, to be able to change the
> bytecode of a class
> > at runtime directly in the java-vm.
> 
> >
> > > Some things are reloadable, but it's always a
> bit of a trick.
> 
> > I would be very lucky if you could explain the
> "tricks" you've fond ;)
> 
> >
> > Altough I think an automated update system and
> some kind of
> > version control of classes would be nice, for a
> productive environment
> > i guess it's better to have a complete startup.
> > Not only to mention side-effects of the change.
> 
> > Currently I have a staging-environment for a
> customer, on whom
> > everybody can test the changes.
> 
> > After the test, the whole application is stoped,
> the updates are
> > copied and the server is restarted. With
> automation this takes
> > about 2-3 minutes, which is no problem at 4 am.
> 
> >
> > Michael
> 
> > --
> > Michael Küfner                         
> Meisterbohne eLösungen
> > Söflinger Strasse 100
> > Tel: +49-(0)731-399 499 0               D-89077
> Ulm
> > http://www.meisterbohne.de
> 
> > _______________________________________________
> > Dev mailing list
> > Dev at lists.ofbiz.org
> > http://lists.ofbiz.org/mailman/listinfo/dev>  
> _______________________________________________
> Dev mailing list
> Dev at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/dev


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com



More information about the Dev mailing list