tinymce Editor

if you use tinyMCE  in ajax you will use mce api to get content and set content  this example show how can use it  function loadComplete(entity){        if(tinyMCE.get('editor')!=null)              tinyMCE.get('editor').setContent(entity.informationText);  } function beforeSave(entity){         tinyMCE.triggerSave();         entity.informationText=$('#txt_editor').val();... [Read More]

remote debug in tomcat

add this line jvm args -agentlib:jdwp=transport=dt_socket,address=1499,server=y,suspend=n"

create jndi in tomcat

Create META-INF/context.xml <Context  docBase="appName" path="/" reloadable="true" >    <Resource name="develop" auth="Container" type="javax.sql.DataSource" maxActive="50                   maxIdle="30" maxWait="10000" username="test"    password="test"        driverClassName="oracle.jdbc.OracleDriver" url="jdbc:oracle:thin:@192.168.36.250:1521:XE" /></Context>   web.xml configuration   <resource-ref>        <description>jdbc Datasource example</description>        <res-ref-name>develop</res-ref-name>        <res-type>javax.sql.DataSource</res-type>        <res-auth>Container</res-auth>      </resource-ref> [Read More]

send email after commit using spring transaction

Sometimes you want a little more control over transaction but at the same time you don't want to switch to programmatic transaction management. I'm talking about cases when you want to execute some activities only when transaction was completed successfully. For example: send an email with registration details, update a... [Read More]