Hi All, If we provide necessary scripts, wouldn't that be enough. When you are setting up a deployment, users anyway populate tables using our DB scripts. -Dsetup is good enough only during the development period.
When you are setting up production deployments, I don't think users utilize the -Dsetup option that much. Its much easier to populate the required schemas using the scripts. Thanks, Sameera. On Fri, Apr 29, 2016 at 4:21 PM, Isuru Perera <isu...@wso2.com> wrote: > Hi Sameera, > > As Thilini mentioned, most of the products need a database to keep data. > With -Dsetup we could execute scripts based on the vendor. We need some way > of setting up the database in C5 as well. > > I'm sorry I couldn't create a JIRA for $subject yet. > > In C5, what is the recommended way to setup a database (by creating > required tables) for a WSO2 product? > > On Fri, Apr 29, 2016 at 3:45 PM, Thilini Cooray <thili...@wso2.com> wrote: > >> Hi, >> >> In many of our carbon 4.x.x based products, we use -Dsetup option >> allowing users to create databases on their preferred vendor (instead of >> our inbuilt H2 database). >> Without this option, users will have to run database scripts against each >> of the databases by themselves prior to server startup. >> >> Therefor I think it is a useful option to have in C5. >> >> Thanks. >> >> On Fri, Apr 29, 2016 at 3:24 PM, Sameera Jayasoma <same...@wso2.com> >> wrote: >> >>> Hi Isuru, >>> >>> Can you explain the need to have a -Dsetup option? Can we simply remove >>> this in C5? >>> >>> Thanks, >>> Sameera. >>> >>> >>> On Fri, Mar 25, 2016 at 1:45 PM, Isuru Perera <isu...@wso2.com> wrote: >>> >>>> Hi, >>>> >>>> In Carbon 4.x.x, we extend [1] >>>> org.wso2.carbon.utils.dbcreator.DatabaseCreator [2]. How can we do the same >>>> in Carbon 5? >>>> >>>> Thanks! >>>> >>>> [1] >>>> https://github.com/search?l=&q=DatabaseCreator++user%3Awso2&ref=advsearch&type=Code&utf8=%E2%9C%93 >>>> [2] >>>> https://github.com/wso2/carbon-kernel/blob/4.4.x/core/org.wso2.carbon.utils/src/main/java/org/wso2/carbon/utils/dbcreator/DatabaseCreator.java >>>> >>>> -- >>>> Isuru Perera >>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/ >>>> Lean . Enterprise . Middleware >>>> >>>> about.me/chrishantha >>>> Contact: +IsuruPereraWSO2 >>>> <https://www.google.com/+IsuruPereraWSO2/about> >>>> >>>> _______________________________________________ >>>> Dev mailing list >>>> Dev@wso2.org >>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>> >>>> >>> >>> >>> -- >>> Sameera Jayasoma, >>> Software Architect, >>> >>> WSO2, Inc. (http://wso2.com) >>> email: same...@wso2.com >>> blog: http://blog.sameera.org >>> twitter: https://twitter.com/sameerajayasoma >>> flickr: http://www.flickr.com/photos/sameera-jayasoma/collections >>> Mobile: 0094776364456 >>> >>> Lean . Enterprise . Middleware >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> Best Regards, >> >> *Thilini Cooray* >> Software Engineer >> Mobile : +94 (0) 774 570 112 <%2B94%20%280%29%20773%20451194> >> E-mail : thili...@wso2.com >> >> WSO2 Inc. www.wso2.com >> lean.enterprise.middleware >> > > > > -- > Isuru Perera > Associate Technical Lead | WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > about.me/chrishantha > Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about> > -- Sameera Jayasoma, Software Architect, WSO2, Inc. (http://wso2.com) email: same...@wso2.com blog: http://blog.sameera.org twitter: https://twitter.com/sameerajayasoma flickr: http://www.flickr.com/photos/sameera-jayasoma/collections Mobile: 0094776364456 Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev