[OFBiz] Users - Spring versus Ofbiz?
Si Chen
schen at graciousstyle.com
Fri Mar 4 11:13:47 EST 2005
David,
From a quick look here, it seems that Spring uses EJBs and JSPs?
(1) OFBiz doesn't use EJBs. We use a
GenericValue/GenericEntity/GenericDelegator where the data model is
defined in xml files. There are generic methods to retrieve and persist
data. You do not have to create accessors and persistent methods for
each data model object.
(2) We try to use form/screen widgets so standard UI elements can be
made faster and also re-used across platforms (HTML, PDF, etc. etc.)
(3) Business logic is created as "services" rather than Java classes
with APIs, so that they can be re-used directly as servlets, workflow
events, web services, rmi services without additional code.
(4) Data model, business logic, and UI can be set up to reference each
automatically, causing changes to filter down stream without any code
changes.
(5) Much of the business logic can be developed with scripting
languages, such as Beanshell, Jython, JRuby, or the Open for Business
simple-method XML language.
That's my take in a nutshell. These differences make it much faster to
develop in Open for Business.
I'll try to get the hello world example started at some point. If
anybody else wants to try to write one, I can post directions for doing
it on the JIRA tracker so you can try it yourself...
Si
David wrote:
> Dear Si Chen,
>
> On the following link:
>
> http://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step-Part-1.html
>
> You will find an explanation of a Hello Spring Application.
>
> Regards,
>
> David Leal
>
> */Si Chen <schen at graciousstyle.com>/* wrote:
>
> Can you point me to where Spring has such a "Hello World" example,
> so I
> can take a look at it? Si
>
> David wrote:
>
> > Hello Si Chen,
> >
> > Yust to say that on Spring it is documented how to make a Hello
> World
> > example, I am interesting about both frameworks, so for me (and for
> > many other people) could be interesting to at least have a simple
> > example like this. You can think it is not a real application,
> but it
> > is a starting point for makeing a more complicated example. For
> example:
> >
> > Iteration 1. Just to say a Wello World on the web browser.
> > Iteration 2. To fill a form with you name, then the system say
> Hello
> > World to you.
> > Iteration 3: You fill you name and also you language, and the
> systema
> > says to you Hello World in your language.
> > Iteration 4: Having two fo! rm for testing transaction, the
> first one,
> > with you name, the second one with your language.
> > Iteration 5: Consider additional staff like security,
> certificate, a
> > simple rule, or just a simple workflow, etc.
> >
> > So a simple "Hello World" example could be the starting point for
> > showing a minimal Ofbiz application and also some Ofbiz features
> and
> > tools. So a simple example like this could be a good tutorial for
> > learning Ofbiz from a deductive point of view.
> >
> > Please if you finally get in to Hello World example and
> documentated,
> > please let me know. Thanks.
> >
> > Regards,
> >
> > David
> >
> > */Si Chen /* wrote:
> >
> > Hey there--
> >
> > This is a pretty interesting thread. I've been trying to follow
> it on
> > and off.
> >
> > How about this? If you are talking about a "hello world" example,
> > write
> > i! t in the Spring Framework. As long as it is a bona fide "hello
> > world"
> > example and not a big real life application, I'll try to pitch
> in and
> > write a comparable version in OFBiz. Then maybe somebody else can
> > do it
> > in their favorite J2EE or JBoss/Struts/Hibernate framework. We can
> > post
> > it on all a web page somewhere as a "code shootout"?
> >
> > Si
> >
> > A. Zeneski wrote:
> >
> > > David,
> > >
> > > I agree with you. Now that the framework has been separated from
> > the
> > > application components, we intend to push the OFBiz Framework to
> > more
> > > users. This would include users like yourself who plan to use a
> > > completely different datamodel.
> > >
> > > I! will begin work on a "Getting started developing applications
> > using
> > > the OFBiz Framework guide". This will run down the basics of
> > creating
> > > components, defining entities, services. Implementing some basic
> > > services; adding a web UI and talking with the services.
> > >
> > > This will take a little time to write, so I doubt it will be
> > ready in
> > > time for you to get your proof of concept finished, however I
> agree
> > > that it is something we will need in order to bring a larger
> > user base
> > > to the framework.
> > >
> > > -Andy
> > >
> > > On Mar 2, 2005, at 9:32 AM, David wrote:
> > >
> > >> >What do you want to do with it? What kind of docs are you
> looking
> > >> for..
> > >>
> > >> I asked for a typical Hello World example in order to see at
> least
> > >> how to configurate and work with the Entity Engine and Service
> > >> Engine. I asked to the mailing list for that, and people
> > recomend to
> > >> me some seminar, where such stu! ff is explained. So in order
> to see
> > >> the most simplest example I have to page an expensive seminar,
> > there
> > >> is no book, no tutorial, nothing, for something theoretically
> > simple.
> > >> On any new tecnology there is a such simple example.
> > >>
> > >> I wanted to show to my boss the benefit of using ofbiz, but
> > with the
> > >> information on the web, for me it is impossible to make a simple
> > >> particular demostrative example, let say, reading some
> information
> > >> from database and showing it on the web browser.
> > >>
> >
> >------------------------------------------------------------------------
> > >
> > >
> > >_______________________________________________
> > >Users mailing list
> > >Users at lists.ofbiz.org
> > >http://lists.ofbiz.org/mailman/listinfo/users
> > >
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.ofbiz.org
> > http://lists.ofbiz.org/mailman/listinfo/users
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >------------------------------------------------------------------------
> >
> >
> >_______________________________________________
> >Users mailing list
> >Users at lists.ofbiz.org
> >http://lists.ofbiz.org/mailman/listinfo/users
> >
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
> ------------------------------------------------------------------------
> Celebrate Yahoo!'s 10th Birthday!
> Yahoo! Netrospective: 100 Moments of the Web
> <http://birthday.yahoo.com/netrospective/>
>
>------------------------------------------------------------------------
>
>
>_______________________________________________
>Users mailing list
>Users at lists.ofbiz.org
>http://lists.ofbiz.org/mailman/listinfo/users
>
More information about the Users
mailing list