Showing entries tagged as: springframework

Simpleblogger: Added Bootstrap image carousel support.

By isendev.

 Posted on 2016/12/23 22:51.

 Tagged as: programming, java, springframework, bootstrap.

Hello.

I've just added Bootstrap image carousel support to SimpleBlogger engine. Now, the BBCode engine supports the carousel tag to add carousel image elements to blog entries and static pages. Feel free to browse SimpleBlogger source code on GitHub.

And enjoy this image carousel courtesy of NASA... :)


New SimpleBlogger engine with Bootstrap responsive design.

By isendev.

 Posted on 2016/08/16 20:35.

 Tagged as: programming, java, springframework, bootstrap.

I've been really busy last months, but recently found some time to spend on this project.

As web traffic moves massively to mobile browsing, it becomes clear that my old blog design do not find any usability on this devices. So I've refreshed my Spring Framework blog engine and replaced the old CSS based frontend with a responsive Twitter Bootstrap design. A lot of changes have been done to integrate the new responsive frontend, and as Bootstrap is JQuery based, I had to get rid of my Mootools code and rewrite with JQuery accordingly. Mixing Javascript frameworks makes me uncomfortable :)

Now, the new www.isendev.com using the revamped SimpleBlogger engine is live. I hope you like it!

Feel free to browse the source code on GitHub.


SimpleBlogger Engine updated.

By isendev.

 Posted on 2015/02/07 22:41.

 Tagged as: programming, java, springframework, mootools.

Still here... :)

Lately I do not have much time available and this blog is a bit outdated. I hope that soon I can share some lines and photos about my current projects. Meanwhile I've updated the SimpleBlogger Engine that runs this site to use the latest versions of Spring Framework, Spring Security, EclipseLink and Mootools.

Ah! And I have just received my new Raspberry Pi 2 Model B. My precious quad-core little beast...


Programming notes: Using Tomcat connection pool on Spring Framework.

By isendev.

 Posted on 2012/02/02 22:47.

 Tagged as: programming, java, springframework.

Recently, I switched from the outdated (but reliable) c3p0 connection pool I was using in my blogging software to the more recent Tomcat 7 integrated connection pool. This is a code snippet from my Spring Framework bean configuration file that shows you how to configure a Tomcat connection pool with a MySQL database:

<!--
  Deploy a in-memory MySQL configured datasource using the Tomcat's integrated
  connection pool (DBCP). IMPORTANT! It's necessary to copy the MySQL JDBC library
  (.jar) to Tomcat's library folder ($CATALINA_HOME/lib).
-->

<bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource" destroy-method="close">
 
  <!-- Database driver class name -->
  <property name="driverClassName" value="com.mysql.jdbc.Driver" />      

  <!-- DEV database -->
  <property name="url" value="jdbc:mysql://127.0.0.1:3306/dblog" />

  <!-- PROD database -->
  <!-- <property name="url" value="jdbc:mysql://127.0.0.1:3306/pblog" /> -->

  <!-- Credentials -->
  <property name="username" value="myuser" />
  <property name="password" value="mypassword" />
      
  <!-- TOMCAT connection pool parameters -->      
  <property name="initialSize" value="0" />
  <property name="initSQL" value="SELECT * FROM USER" />      
  <property name="minIdle" value="10" />
  <property name="maxIdle" value="100" />
  <property name="maxActive" value="100" />
  <property name="maxWait" value="6000" />
  <property name="jmxEnabled" value="true" />
  <property name="jdbcInterceptors"
    value="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;
    org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer" />
  <property name="removeAbandoned" value="true" />
  <property name="removeAbandonedTimeout" value="60" />
  <property name="logAbandoned" value="true" />
  <property name="testOnBorrow" value="true" />
  <property name="testOnReturn" value="false" />
  <property name="testWhileIdle" value="false" />
  <property name="useEquals" value="false" />
  <property name="fairQueue" value="false" />
  <property name="timeBetweenEvictionRunsMillis" value="30000" />
  <property name="minEvictableIdleTimeMillis" value="30000" />
  <property name="validationInterval" value="1800000" />
  <property name="validationQuery" value="SELECT * FROM USER" />

</bean>


Tags
Archives