I think we should definitively introduce a token (+x) to pass from the command 
line for this stuff, or a property in general.properties or both (flexible).

Jacques
  ----- Original Message ----- 
  From: [email protected] 
  To: [email protected] 
  Sent: Monday, October 12, 2009 9:26 PM
  Subject: Re: Running multiple ofbiz code on different ports of tomcat


  Vanita,
  If you want to run multiple OFBiz code on different ports then use the 
attached patch.
  I Hope it would work.



  On Sun, Oct 4, 2009 at 6:31 PM, Deyan Tsvetanov 
<[email protected]> wrote:

    Here all the files you need to change:


    framework/base/config/ofbiz-containers.xml

    framework/base/config/jndi.properties
    framework/base/config/jndiservers.xml
    framework/base/config/rmi-containers.xml
    framework/service/config/serviceengine.xml

    framework/webapp/config/url.properties


    In branch 9.04 you are not able to change the bind interface of JNDI
    ( done in ofbiz-containers.xml ).
    There is a patch that fixes that isue:
    
https://issues.apache.org/jira/browse/OFBIZ-2559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

    You need to checkout ofbiz from trunk.

    Cheers,
    Deyan




    -----Original Message-----
    From: farouk alhassan <[email protected]>
    Reply-to: [email protected]
    To: [email protected]
    Subject: Re: Running multiple ofbiz code on different ports of tomcat

    Date: Sun, 4 Oct 2009 05:52:42 -0700 (PDT)


    I remember listing all the files that needed modifying with regards to 
ofbiz earlier this year. if you search the forum using this email, you may find 
the post.

    Farouk Alhassan
    Java Enterprise Developer
    www.faroukalhassan.com | [email protected]
    www.bespokecode.co.uk
    Contact Me

    --- @ WiseStamp Signature. Get it now

    --- On Sat, 3/10/09, James McGill <[email protected]> wrote:

    From: James McGill <[email protected]>
    Subject: Re: Running multiple ofbiz code on different ports of tomcat
    To: [email protected]
    Date: Saturday, 3 October, 2009, 23:05

    On Sat, Oct 3, 2009 at 4:01 AM, Vanita <[email protected]> wrote:

    >
    > It didn't solved my problem.
    > Kindly,tell me where else i need to make changes?
    >
    >

    You will have to change various ports in framework/base/config

    You may want to change the bind address from 0.0.0.0 to the address of a
    particular interface in ofbiz-containers.xml
    and then change various ports for the connectors in that file.  (For
    instance, ajp/8009, bsh 9999-9990, and http/https (8080, 8443).)

    I think there's also a JNDI port (1099) and a change here probably requires
    corresponding changes elsewhere.

    Personally, I think it's a better bet to use Apache as the front-end and
    redirect on a per-URL basis to a single appserver config.
    There are many benefits from using mod-proxy+mod-rewrite or  AJP.

    We have several test / devel configurations of OFBiz, and use Xen VM's on
    CentOS to manage them.  Then it's just a simple
    ProxyPass / Location config in Apache to give them outside names, and we can
    do stuff like host-based authentication, and it's easy to move things
    around.


    --
    James McGill
    Phoenix AZ








  -- 
  Anil Soni
  +91-9930302283cell

Reply via email to