Page 1 of 1

How do I create multiple storefronts

Posted: Sun Dec 13, 2009 3:15 am
by paul
I was trying to load up about 5 webapps of the demo by giving them a unique name to test memory constraints of this application... But it says that an instance of this name has already been started exception ... JMX on blCartService...

Seems this is specified at bean level... Whats the workaround for this?

Thanks

Re: How do I create multiple storefronts

Posted: Thu Dec 24, 2009 8:45 am
by jefffischer
This is the same as defect #72 (http://broadleafcommerce.org/trac/ticket/72), which has been fixed. There was a hardcoded JMX value that was causing problems when 2 or more instances of Broadleaf Commerce were deployed in the same web container. Do you have the latest codebase?

Re: How do I create multiple storefronts

Posted: Fri Jan 01, 2010 6:38 pm
by jefffischer
Also, another item I forgot to mention - you'll need to specify a unique "appName" parameter for each store you want to install inside the same app container (basically, each separate war or ear that is using the Broadleaf Commerce framework). Please review the web.xml from the Broadleaf Commerce demo source so see an example of how this parameter is specified. It is specified as an env-entry element.