1,get_started
2,preventing data loss after reboot tomcate
3,effect immediatly after modifing in admin, installing a Stand Alone Solr
4,tomcat stop
5,JRebel
6,config email
7,send emails in admin
8,writing some resting api(add payment, checkout)
-------------------------------------------------------------------------------------------------------------------------------------------------------
1,get_started
follow the url : http://www.broadleafcommerce.com/docs/c ... ng-started
something important:
"maven java ee Intergration" disable "JPA Configurator"
java installed jres "use your jdk"
build.xml of site and admin: add the line: <jvmarg value="-Dmaven.multiModuleProjectDirectory=${maven.home}" />
delete the file: C:\{............}\solrhome-4.10.3\cores\primary\data\index
2,preventing data loss after reboot tomcate
modify two lines:
core-->runtime-properties-->common-shared.properties-->blPU.hibernate.hbm2ddl.auto=update
site-->build.xml--><property name="runtime.environment" value="production"/>
3,effect immediatly after modifing in admin, installing a Stand Alone Solr
3.1,http://www.broadleafcommerce.com/docs/core/current/broadleaf-concepts/catalog-and-search/deployment-models/stand-alone
3.2,http://forum.broadleafcommerce.org/viewtopic.php?f=11&t=4496&p=13000&hilit=solr#p13000
3.3,http://www.codeweblog.com/broadleaf%E9%A1%B9%E7%9B%AE%E6%90%9C%E7%B4%A2%E5%8A%9F%E8%83%BD%E6%94%B9%E8%BF%9B/
something important:modify MDSolrSearchServiceImpl to ExtSolrSearchServiceImpl
delete the line, <constructor-arg name="adminServer" ref="${solr.source.admin}" />
modify AdminIndexingInvoker.java
try {
String str;
URL url = new URL(
"http://localhost:8983/solr/admin/cores?action=SWAP&core=primary&other=reindex");
URLConnection urlcon = url.openConnection();
InputStream is = urlcon.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
BufferedReader br = new BufferedReader(isr);
while ((str = br.readLine()) != null)
System.out.println(str);
br.close();
} catch (IOException e) {
System.out.println(e);
}
4,tomcat stop
kill the process.....
5,JRebel
follow the url, https://zeroturnaround.com/software/jre ... rt/eclipse
find the path of jrebel64.dll, and modify jrebel.path in build.properties
modify build.xml in site and admin, add one line , like this:
<target name="tomcat-jrebel" >
<delete dir="war/WEB-INF/lib"/>
<artifact:mvn mavenHome="${maven.home}" fork="true">
<jvmarg value="-Dmaven.multiModuleProjectDirectory=${maven.home}" />
6,config email
follow the url: http://www.broadleafcommerce.com/docs/c ... figuration , broadleaf has configured mostly.
modify applicationContext-emai.xml like this:
<bean id="blMailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host">
<value>smtp addr</value>
</property>
<property name="port">
<value>465</value>
</property>
<property name="protocol">
<value>smtp</value>
</property>
<property name="username">
<value>your email</value>
</property>
<property name="password">
<value>your password</value>
</property>
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.starttls.enable">true</prop>
<prop key="mail.smtp.timeout">25000</prop>
<prop key="mail.smtp.auth">true</prop>
<prop key="mail.smtp.port">465</prop>
<prop key="mail.smtp.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop>
<prop key="mail.smtp.socketFactory.fallback">false</prop>
</props>
</property>
</bean>
something important: some email can not work well. i use the server email :smtp.exmail.qq.com
7,send emails in admin
like configuring email in site, you can do it~.
8,writing some resting api(add payment, checkout)
too much content need to be writen, sorry for my pool english,
this part will coming next time.
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.