This may not be something that bothers you but for me why can IBM not create a new development environment, which does not contain every starter store. Do I really need consumer direct these days, should the default should be to just put the Aurora versions in, and this also applies to FEP8. It is mentioned at the bottom of the enabling starter store feature, but IBM don’t even provide a link to their own content, so here are some steps to tidy that development environment.
The image that follows shows the file setup after installing a new FEP8 Enterprise Commerce workspace using the IBM Install Manager. What a load of junk is in there, just to confuse what a new developer might see for example 3 versions of Dojo supporting the various stores.
What we need to do is tidy this up so that all we have the relevant store models that we want to work with, those that contain all the new functionality in FEP8.
Some of steps are listed on the IBM Knowledge Base for Commerce V7. The first step is quite strange because when you read it’s output (below) then you would think some of the following steps have been completed (it says the database and workspace have been restored). But you must run each step in turn, to get the environment to a cleaner level.
When you get to the point of enabling the features from the feature pack on the environment, enable the store-features first because that will also enable the foundation and management centre options. Removing the need to do each one individually these three are the main components that I would be enabling. It is worth noting in the dev environment you will get some very long pauses where nothing seems to happen, the environment we were using spent 30 minutes appearing to do nothing. We could see it had started the application server in headless mode then it sat there not much processor usage with the JVM creeping up memory wise, then finally it started deploying assets into the RAD workspace.
Now when we restart the workspace for the RAD environment we see far fewer directories, we will be getting rid of some of the Dojo directories as we only need dojo18.
When the workspace restarts you first need to rebuild the OpenLazlo project for Management Centre, right click it and select build the project, it will take a little while to rebuild.
Next start the application server and then access the admin console (useful links) so that the the new store model can be published the default password will be wcsadmin/wcsadmin. Go into store archives and because this is on FEP8 under B2B direct we can see the new Aurora option, this is what we want to work with. If you are on FEP7 or using the professional environment or don’t want the B2B functionality enabled then look under Consumer Direct for Aurora. IBM could do with updating the titles in this area, it might make more sense than it does now.
You then need to set the options you want to publish with. In this case we have changed the name to AuroraB2B and also set it so it is stand alone rather than published as an eSite.
Once published you should see this, while it publishes you will see the console changing in the RAD environment.
Now there are two things to do first tidy Dojo up, we only need one version in the dev environment. To do this you need to do a file search within the dojo18 folder for references to ‘dojo131’. Amazing as it seems there are several, and this issue has been there quite a long time, we had a PMR in May 2013 so it’s still not fixed. Edit each of the files found that references transparent.gif in dojo131 so its dojo18. Then you can remove the old dojo folders for 131 and 15.
In order to see your store folder you might need to do a refresh of the file system right click on WebContent and click Refresh or hit F5.
You should now have a much cleaner environment, you don’t have all the sample stores and code deployed in the database. The file system has fewer directories and you know what you are working with you can see the AuroraB2B store we have deployed.
The next step is to restart the server otherwise you will get some errors on the home page and then access the site. Then we can access my developer AuroraB2B store that has been deployed on store http://localhost/webapp/wcs/stores/servlet/en/aurorab2b, exciting a clean environment and the new FEP8 starter store.