Sambhashanam
तकनीकी संभाषणम्
Navigation
  • Microsoft Technologies
  • Java Technologies
  • LAMP Technologies
  • Opensource
    • Microsoft Opensource
    • LAMP Opensource
    • Java Opensource
You are here: Home › Random Java, JEE Tips & Tricks & News
Currently browsing category

Random Java, JEE Tips & Tricks & News

Merge multiple PDF files in one PDF file

June 5, 2016 | Filed under: Java Opensource, Java Technologies, Opensource, Random, Random Java, JEE Tips & Tricks & News

Hello Sambhashanam readers – I had written an article a long back Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II. Some of you asked – how can I get a single merged PDF file out of many PDF output – and …

Enable Response compression in Tomcat 7

May 23, 2013 | Filed under: Java Opensource, Java Technologies, Opensource, Random Java, JEE Tips & Tricks & News

Modify connector definition as below in $TOMCAT7_HOME/conf/server.xml <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" compression="force" compressableMimeType="text/html,text/xml,text/plain,application/javascript,application/json,text/javascript,text/json" redirectPort="8443" /><Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" compression="force" compressableMimeType="text/html,text/xml,text/plain,application/javascript,application/json,text/javascript,text/json" redirectPort="8443" />

why varargs in java should be last parameter?

October 28, 2012 | Filed under: Random Java, JEE Tips & Tricks & News

Ever wondered why varargs should be the last parameter? Found the solution at stackoverflow. Excerpt from the post is below It follows the C convention. The C convention in turn is based on CPU architectures which pass arguments on the stack. The first non-vararg arguments end up at a fixed …

Enable Logging for JpaTransactionManager for logback

October 23, 2012 | Filed under: Random, Random Java, JEE Tips & Tricks & News

Just add below line in your logback.xml

August 10, 2012 | Filed under: Random Java, JEE Tips & Tricks & News

Few days back I was struggling with below exception. And solution? Just include the spring-aop-3.1.1.RELEASE.jar in your classpath. WARNING: Ignored XML validation warning org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document ‘http://www.springframework.org/schema/aop/spring-aop-3.0.xsd’, because 1) could not find the document; 2) the document could not be read; 3) the root element of …

WS-I compliant JAX-WS document/literal wrapped with custom SOAP header part

May 30, 2012 | Filed under: architecture, Java Opensource, Java Technologies, Opensource, Random Java, JEE Tips & Tricks & News, Web Service

I have discussed WS-I compl iant JAX-WS Document/Literal wrapped web service in my previous post. Let us modify the previous WSDL to add a header.     <?xml version="1.0" encoding="UTF-8" ?> <definitions targetNamespace="http://www.bataahmaithil.in/techie/article/wsdoclitwrapped" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.bataahmaithil.in/techie/article/wsdoclitwrapped" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:header="http://www.bataahmaithil.in/techie/common/header">   <!–Part 1 of WSDL = types –> <types>   …

jax-ws document/literal wrapped unleashed (WS-I compliant)

May 28, 2012 | Filed under: architecture, Java Technologies, Random Java, JEE Tips & Tricks & News, Web Service

Following rules should be applied strictly to develop a WS-I compliant document/literal wrapped web service. The input message must have a single part only. The part must be an element (beware it should not be a type). The element has the same name as the operation. The element has the …

Create and run new domain on Glassfish server

February 15, 2012 | Filed under: Random Java, JEE Tips & Tricks & News

Glassfish server is shipped with default domain (domain1). For most of our development purposes default domain is sufficient. But there are cases when you need additional domain and even run the application simultaneously on multiple domains. While creating a new domain we should be cautious about ports. Use following command …

Configure Glassfish Server 3.3.1 to print the SOAP request and response messages for each web service invocation

February 14, 2012 | Filed under: Random Java, JEE Tips & Tricks & News

Add the below in domain.xml config file in <java-config> tag to print soap mesaage in domain log <jvm-options>-Dcom.sun.metro.soap.dump=true</jvm-options>

JBPM5 setup on Oracle or MySql

December 28, 2011 | Filed under: Java Opensource, Java Technologies, Opensource, Random, Random Java, JEE Tips & Tricks & News

Change/configure following files post JBPM5 installation as per Oracle or MySql: 1. $JBPM_INSTALL_DIR/db/hibernate.cfg.xml 2. $JBPM_INSTALL_DIR/db/persistence.xml 3. $JBPM_INSTALL_DIR/db/testDS1-ds.xml 4. $JBPM_INSTALL_DIR/runtime/jbpm-bam-5.1.0.Final.jar!hibernate.cfg.xml 5. $JBPM_INSTALL_DIR/runtime/jbpm-human-task-5.1.0.Final.jar!META-INF/persistence.xml 6. $JBPM_INSTALL_DIR/jboss-5.1.0.GA/server/default/deploy/testDS1-ds.xml 7. $JBPM_INSTALL_DIR/jboss-5.1.0.GA/server/default/deploy/jbpm-gwt-console-server.war!WEB-INFclasseshibernate.cfg.xml 8. $JBPM_INSTALL_DIR/jboss-5.1.0.GA/server/default/deploy/jbpm-gwt-console-server.war!WEB-INF/classes/META-INF/hibernate.cfg.xml 9. $JBPM_INSTALL_DIR/jboss-5.1.0.GA/server/default/deploy/jbpm-gwt-console-server.war!WEB-INF/classes/META-INF/persistence.xml Make sure that none of the files are left unchanged (whether dialect, driver or connection URL), otherwise the system will not …

Next Page →

Authors

  • Dhananjay Jha
  • Manish Kumar
  • Sushil Pandey

Recent Comments

  • muhammad on Mail merge in java for Microsoft Word document – Part I
  • muhammad on Mail merge in java for Microsoft Word document – Part I
  • Dhananjay Jha on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II
  • Clyde Symonette on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II
  • Dhananjay Kumar Jha on Mail merge in java for Microsoft Word document and convert to PDF without iText – Part II

Tag Cloud

.net activiti activiti-spring activiti bpmn C# change sender mail id in wordpress class classloader Conver MS Word to PDF disable user wordpress dox4j glassfish http response compression java Java Mail Merge MS Word javascript confirmation link on image jax-ws on tomcat jax-ws webservice Jee JTS junit junit-spring Link on Image with hidden URL link load spring configuration load spring configuration xml junit maven maven build Merge MS Word using Java Merge Word Document using XdocReport OOPS oracle weblogic PDF conversion using docx4j php mail function sample activiti process with human task and service task sending mail with attachment spring-orm spring framework spring hibernate spring hibernate integration spring jpa spring jpa hibernate integration tomcat jax-ws web service wordpress wordpress sender email

Looking for old post?

© 2021 Sambhashanam