This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component-plugin> | |
<name>PortalRequestHandler</name> | |
<set-method>register</set-method> | |
<!-- Disable the default handler | |
<type>org.exoplatform.portal.application.PortalRequestHandler</type> | |
--> | |
<type>org.exoplatform.portal.application.CustomPortalRequestHandler</type> | |
</component-plugin> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<route path="/error/404.html"> | |
<route-param qname="gtn:handler"> | |
<value>staticResource</value> | |
</route-param> | |
</route> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<error-page> | |
<error-code>404</error-code> | |
<location>/error/404.html</location> | |
</error-page> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javaee.insight; | |
import java.net.URL; | |
import java.net.URLClassLoader; | |
public class ClasspathPrinter { | |
public static void main(String[] args) { | |
ClassLoader cl = ClassLoader.getSystemClassLoader(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javaee.insight; | |
import java.io.File; | |
import java.io.IOException; | |
public class CreateTempFileTest { | |
public static void main(String[] args) { | |
try { | |
// create a temp file | |
File temp = File.createTempFile("sample", ".tmp"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javaee.insight; | |
import java.io.File; | |
import java.io.IOException; | |
public class CreateFileTest { | |
public static void main(String[] args) { | |
try { | |
File file = new File("c:\\sample.txt"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE SEQUENCE EMPID_SEQ | |
INCREMENT BY 1 | |
START WITH 1 | |
MINVALUE 1 | |
MAXVALUE 999999999999999999 | |
NOORDER | |
CACHE 20 | |
CYCLE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Id | |
@Column(name="EMP_ID") | |
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator = "MYGEN") | |
@SequenceGenerator(name="MYGEN", sequenceName = "EMPID_SEQ") | |
private Integer empId; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.beans.XMLDecoder; | |
import java.beans.XMLEncoder; | |
import java.io.BufferedOutputStream; | |
import java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.InputStream; | |
import java.io.UnsupportedEncodingException; | |
public class BeanXMLUtil { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sachinhandiekar.example.webservice; | |
import javax.jws.WebParam; | |
import javax.jws.WebService; | |
@WebService | |
public interface HelloWorld { | |
String sayHello(@WebParam(name = "name") String name) throws Exception; | |