google.com, pub-5747754088801811, DIRECT, f08c47fec0942fa0 Skip to main content

Posts

Get Portlet Id from the Database

Get Portlet Id from the database liferay. We can easily get the portlet Id from the database with the below query on portlet table, SELECT * FROM portlet;
Recent posts

Disable cache content of browser access on back button after logout liferay dxp

Some time we have requirement where we do not want to allow back button after logout and show cached browser content. Liferay provide properties which with we are able to restrict to see content on back button after logout. If user click back button after logout it will show the login page. We require to provide below properties in portal-ext.properties. Restart the server once applying below properties browser.cache.signed.in.disabled=true

Java Interview Question

What is JVM,JDK,JRE, JIT? Java Development Kit(JDK) The Java Development Kit (JDK) is a software development environment used for developing Java applications and applets. It includes the Java Runtime Environment (JRE), an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (javadoc) and other tools needed in Java development. JVM JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed. JVMs are available for many hardware and software platforms. JVM, JRE and JDK are platform dependent because configuration of each OS differs. But, Java is platform independent. The JVM performs following main tasks: Loads code Verifies code Executes code Provides runtime environment JRE JRE is an acronym for Java Runtime Environment.It is used to provide runtime environment.It is the implementation of JVM. It physically exists. It contains set of libraries + other files

Start open office in linux through command for liferay

Some time liferay not generate preview and not allow conversion from word to pdf etc. The reason can be it is not started with root access. Please fire below command to start soffice with the root access. First Kill the soffice proccess. pkill -9 soffice Execute below command to run it sudo soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard &

MYSQL Import and export database through command line

Update environment variable path upto mysql bin e.g. C:\Program Files\MySQL\MySQL Server 5.7\bin Check whether mysql path set up correctly just execute mysql command Go to command line  Fire below command to export db mysqldump -u root -p mydb > exportedmydb.sql Fire below command to import db mysqldump -u root -p importeddb < exportedmydb.sql It will ask password once you execute command provide mysql password.  

Gmail Configuration Liferay Through ext properties file

Put below property in portal-ext.properties file. mail.session.mail.transport.protocol=smtp mail.session.mail.smtp.host=smtp.gmail.com mail.session.mail.smtp.password= mail.session.mail.smtp.user= mail.session.mail.smtp.port=465 mail.session.mail.smtp.auth=true mail.session.mail.smtp.starttls.enable=true mail.session.mail.smtp.socketFactory.class=javax.net.ssl.SSLSocketFactory Provide your Gmail account mail and Password in above properties. Restart the liferay server. Some time google not allow to use above configuration in that case go to below url https://www.google.com/settings/security/lesssecureapps Click on Turn On Checkbox.