I find simple-method easier not so much for coding
convenience (which is definitely a plus) but for the
ability to quickly make corrections if a value isn't
being returned correctly, especially when tossing
things into a black box of sorts.

simple-method would be equally as "easy" if we could
just figure out why the
org.ofbiz.base.util.ObjectType.loadClass will only
return the cached classes as being valid.

The non cached methods work when using call-bsh, but
not when using call-*-method.  Both operations return
the same value for methodContext.getLoader() which is 
WebappClassLoader.  But, beanshell does something with
the loader itself while call-*-method searches the
loader itself for the class.

If this gets figured out it will be so much easier to
incorporate mondrian, asterisk, and to straighten out
the cart/order helper.

Any tips on how to debug this further would be greatly
appreciated.

,Chris


--- "David E. Jones" <[EMAIL PROTECTED]> wrote:

> 
> I wouldn't worry too much about the simple-method
> (minilang) option.  
> That is definitely the "best practice" for writing
> logic in OFBiz,  
> but the secondary best practice (as shown in the
> best practices  
> guide) is better for certain circumstances, like
> writing a service  
> wrapper around an existing Java API. That is much
> easier in Java.
> 
> -David
> 
> 
> On Jan 18, 2007, at 8:42 PM, Jonathon -- Improov
> wrote:
> 
> > Chris,
> >
> > Oh, ok. I'd be able to do it quickly for Java.
> Yeah, probably for  
> > minilang as well, the classpath thing. But someone
> will have to  
> > test out the call from Minilang for me. I'm
> testing only in Java  
> > (easiest).
> >
> > I'll look into it some time next week. Anymore
> heads up for me  
> > before I dive in? Thanks.
> >
> > Jonathon
> >
> > Chris Howe wrote:
> >> This may be helpful as well:
> >> http://asterisk-java.org/development/index.html
> >> If we can get the class path issue resolved in
> >> minilang for the call-*-method elements, this
> should
> >> be rather quick work. ( or we could just make a
> beefy
> >> cached class loader )
> >> --- Jonathon -- Improov <[EMAIL PROTECTED]> wrote:
> >>> Chris,
> >>>
> >>> That's nice. I'm volunteering myself for
> recruitment
> >>> in this effort. So there's not been any module
> in OFBiz that  
> >>> deals with phone calls or
> >>> faxing?
> >>>
> >>> For some programming examples with Asterisk,
> perhaps
> >>> see http://home.cogeco.ca/~camstuff/agi.html ?
> >>>
> >>> Jonathon
> >>>
> >>> Chris Howe wrote:
> >>>> I'm thinking the enhancement for the OFBiz side
> of
> >>>> things is to simply add support so that upon
> >>> clicking
> >>>> a phone number link asterisk will call the user
> >>> and
> >>>> the intended contact much the same as Sugar
> does. This should be  
> >>>> rather straight forward, though I
> >>> don't
> >>>> know exactly how to accomplish this at the
> moment.
> >>>>
> >>>> >From there you'd likely want to add a function
> in
> >>> your
> >>>> asterisk call plans to run a function that will
> >>> send
> >>>> call log information to OFBiz for processing. 
> Is
> >>>> there anyone with much experience with Asterisk
> or
> >>>> TrixBox?
> >>>>
> >>>>
> >>>> --- Chandresh Turakhia
> >>>> <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>> Thumps up for idea. :)
> >>>>>
> >>>>> Can work with ashish & anil if required. some
> >>> mail
> >>>>> did point to work regarding customer_support.
> Wish it can be  
> >>>>> called
> >>>>> from MiniLang
> >>>>>
> >>>>> Container for Trixbox .. anyone.
> >>>>>
> >>>>> ----- Original Message ----- From: "Eric
> Crawford"  
> >>>>> <[EMAIL PROTECTED]>
> >>>>> To: <dev@ofbiz.apache.org>
> >>>>> Sent: Saturday, January 13, 2007 6:10 AM
> >>>>> Subject: Re: Ubuntu Live CD with Ofbiz
> >>>>>
> >>>>>
> >>>>>> I think bundling with Trixbox is a great idea
> as
> >>>>> well. I often wished
> >>>>>> that the SugarCRM was replaced with Opentaps
> CRM
> >>>>> on the Trixbox
> >>>>>> install.
> >>>>>>
> >>>>>> On 1/13/07, Alex D. Fleming
> >>>>> <[EMAIL PROTECTED]> wrote:
> >>>>>>> Hey Anil,
> >>>>>>>
> >>>>>>> It's was really very good for me to see the
> >>> ofbiz
> >>>>> Live CD.
> >>>>>>> Excellent peace of contribution that you
> have
> >>>>> provided in the community.
> >>>>>>> The processing speed is also excellent in
> Live
> >>>>> CD.
> >>>>>>> Long time back I have seen the Live CD of
> >>>>> Compiere ERP and I was thinking
> >>>>>>> about the same for ofbiz since last few
> days.
> >>>>>>>
> >>>>>>> Thanks Anil for a nice contribution.  :-)
> >>>>>>> Our team of developer likes your efforts.
> >>>>>>>
> >>>>>>>
> >>>>>>> On 1/13/07, Anil Patel
> <[EMAIL PROTECTED]>
> >>>>> wrote:
> >>>>>>>> We have remastered Ubuntu Live CD with
> Ofbiz
> >>>>> installed. If anybody is
> >>>>>>>> interested its available at following link
> >>>>>>>>
> >>>>>>>>
> >>>>>
> http://www.adititechlabs.com/images/OfbizLive.iso
> >>>>>>>> Very soon we'll also share script
> automating
> >>>>> most of the process.
> >>>>>>>> Comments for Improvement are welcome.
> >>>>>>>>
> >>>>>>>> Regards
> >>>>>>>> Anil Patel
> >>>>>>>>
> >>>>>>>>
> >>>>>>> --
> >>>>>>> Regards
> >>>>>>> Alex D. Fleming
> >>>>>>>
> >>>>>>>
> >>>>>
> >>>>
> >>>
> >
> 
> 

Reply via email to