ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BJ Freeman <bjf...@free-man.net>
Subject Re: Mutl-tenant and delegator in web.xml: webtools issue
Date Tue, 11 Oct 2011 16:16:07 GMT
I was addressing how to carry the component(app name) so you selecting
the correct delegator. Don't have time to cover this at this time.

Jacques Le Roux sent the following on 10/5/2011 7:40 AM:
> BJ Freeman wrote:
>> This is a interesting modeling question.
>> when ofbiz started the idea was to have reusable code.
>> then some code started calling code in other components.
> Not sure what you mean: services are components independent, and you may
> call a service from another service...
>> So we have session an context passed between calls
>> so based on this it seems the Context should carry enough info to
>> determine which delegator an dispatcher to use.
>> unless I am missing something.
> Not for dispatcher, BTW I made a mistake in previous messages. I wanted
> to speak about dispatcher and not delegator.
> In a service async call, the DispatchContext returns "default" as
> dispatcher name. Same when a service is called from webtools (uses
> async underneath). I don't see other solutions than passing a service
> parameter to dynamically define/override the dispatcher name
> depending on where the service  is called).
> I agree a delegator issue may also exists in multi-tenants mode. It's
> just another unrelated issue (at 1st glance, maybe related
> since both are defined in web.xml, so what is the delegator value in
> async mode, did you try?)
> Jacques
>> Jacques Le Roux sent the following on 10/4/2011 9:22 AM:
>>> Actually the delegator may depend not on where the service is defined
>>> but where it's used; or intendedt to be used (from webtools).
>>> I see no other ways than passing a IN(OUT) parameter (I use
>>> _application_name_) , ugly for now...
>>> Jacques
>>> From: "BJ Freeman" <bjfree@free-man.net>
>>>> Yes, webtools as such has not been re-factored to use the delegator in
>>>> the web.xml of the component, I am guessing it will look in the
>>>> webtools
>>>> web.xml.
>>>> this means looking up the component the service comes from then get the
>>>> delegator for that component.
>>>> in the best situation this should be done in the dispatcher that has
>>>> been assigned to the service.
>>>> then pass the component to the delegator to look it up.
>>>> Just a thought at this point.
>>>> Jacques Le Roux sent the following on 10/3/2011 1:10 PM:
>>>>> About mutl-tenant and delegator in web.xml: what when you are
>>>>> running a
>>>>> service from webtools...? (the dispatcher either can't help...)
>>>>> The only hack I found so far was to pass an optionnal
>>>>> _application_name_
>>>>> String parameter (with the delegator name in), ugly...
>>>>> Jacques
>>>>> From: "BJ Freeman" <bjfree@free-man.net>
>>>>>> currently minilang is only able to use log for debug.
>>>>>> Since we re-factored to multitenant, you need to get the delegator
>>>>>> from
>>>>>> web.xml
>>>>>> Daniel McAllister sent the following on 10/3/2011 10:04 AM:
>>>>>>> On 2011. okt.  3., hétfő, 18.52.15 CEST, kiran@objectedge.com
>>>>>>>> Here are two features that I would like in the plugin:
>>>>>>>> 1. Find references/implementers of services (both in Java
>>>>>>>> minilang)
>>>>>>>> 2. Put break point in minilang.
>>>>>>>> Regards,
>>>>>>>> Kiran Gawde
>>>>>>>> Senior Software Architect
>>>>>>>> Object Edge Inc
>>>>>>>> (925) 943 5558 x108
>>>>>>>> "There are two kind of people: Those who do the work and
those who
>>>>>>>> take
>>>>>>>> the credit. Try to be in the first group because there is
>>>>>>>> competition
>>>>>>>> there."
>>>>>>>> "Never give up on what you really want to do. The person
with big
>>>>>>>> dreams
>>>>>>>> is more powerful than one with all the facts".
>>>>>>>> From:   Daniel McAllister<rasztasd@gmail.com>
>>>>>>>> To:     user@ofbiz.apache.org
>>>>>>>> Date:   10/03/2011 05:33 AM
>>>>>>>> Subject:        Re: ecllipse/standalone ofbiz developer app
>>>>>>>> On 2011. okt.  3., hétfő, 14.29.28 CEST, BJ Freeman wrote:
>>>>>>>>> thanks
>>>>>>>>> I am using the Webtools Artifact Code mostly, you might
look at
>>>>>>>>> that.
>>>>>>>>> I scanned the code but not much there, compared to the
>>>>>>>>> classes.
>>>>>>>>> my goal is to be able to create widgets and services
as drag and
>>>>>>>>> drop.
>>>>>>>>> have a entity drag and drop relationship and graphic
>>>>>>>>> I have the Standalone Gui built, once done will look
at Plugin
>>>>>>>>> for Eclipse.
>>>>>>>>> Daniel McAllister sent the following on 10/3/2011 5:04
>>>>>>>>>> On 2011. okt.  1., szombat, 04.23.39 CEST, BJ Freeman
>>>>>>>>>>> also found this one
>>>>>>>> http://www.itu.dk/people/hessellund/smartemf/index.php?page=sourcecode
>>>>>>>>>>> BJ Freeman sent the following on 9/30/2011 7:03
>>>>>>>>>>>> I have looked at chatree google project.
>>>>>>>>>>>> I use eclipse now.
>>>>>>>>>>>> What I want to develope is a ofbiz specific
development app.
>>>>>>>>>>>> so the WYSISYG uses the Artifact as well
as the view handlers.
>>>>>>>>>>>> some of the feature would include showing
a State machine
>>>>>>>>>>>> graph tythou
>>>>>>>>>>>> can expand with a click, will show the Relationships
>>>>>>>>>>>> entities using
>>>>>>>>>>>> the webtools already developed.
>>>>>>>>>>>> Eventually be able to define a project processes
and and have
>>>>>>>>>>>> the app
>>>>>>>>>>>> fillin what processes an data is not already
>>>>>>>>>>>> are they any efforts in this direction?
>>>>>>>>>> Hello
>>>>>>>>>> I have forked this one
>>>>>>>>>> http://www.itu.dk/people/hessellund/smartemf/index.php?page=sourcecode
>>>>>>>>>> and added some custom changes, like parsing controller.xml
>>>>>>>>>> added
>>>>>>>>>> some custom iconds.
>>>>>>>>>> The modifications are not full feature ready, I need
to add much
>>>>>>>>>> more
>>>>>>>>>> things like parsing<preprocessor>   tags and
>>>>>>>>>> Please look at the source code if you are interested.
>>>>>>>>>> https://github.com/rasztasd/ofbiz-eclipse-project-explorer
>>>>>>>>>> You can use the eclipse update site also:
>>>>>>>>>> http://rasztasd.github.com/ofbiz-eclipse-project-explorer/update_site
>>>>>>>>>> Please give me some feedback about this. As I have
some more
>>>>>>>>>> time I will
>>>>>>>>>> continue to develop this. Any patches are welcome.
>>>>>>>>>> Daniel.
>>>>>>>> Can you give me any url please? Your tool sounds promising
>>>>>>> Hi
>>>>>>> I have started to implement the find references of services but
>>>>>>> current implementation is very slow. If there are some experienced
>>>>>>> eclipse developers who can help me with incremental project
>>>>>>> building I
>>>>>>> would appreciate a little help, so I can put the feature back.
>>>>>>> Currently it find java code references and controller.xml <event>
>>>>>>> references of services.
>>>>>>> The java part only finds that if you use a string literal for
>>>>>>> reference like dispatcher.runSync("service_name")
>>>>>>> The second thing debugging Minilang (and Beanshell) is possible
>>>>>>> think
>>>>>>> by debugging the Minilang or Beanshell interpreter.
>>>>>>> I'm planning to do a Beanshell debugger anyway.
>>>>>>> If there are anyone who can help me about how to write a custom
>>>>>>> debugger
>>>>>>> for eclipse that can behave like a Java debugging then help me
>>>>>>> please.

View raw message