This file contains hidden or 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
http://amit7oracledba.blogspot.com/2013/02/ora-01157-cannot-identifylock-data-file.html |
This file contains hidden or 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
Write proxy settings | |
npm config set proxy http://192.168.20.20:3128 | |
npm config set https-proxy http://192.168.20.20:3128 | |
Delete Proxy | |
npm config delete http-proxy | |
npm config delete https-proxy |
This file contains hidden or 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 or replace | |
PROCEDURE ELR_XCN_EMP_IMPORT | |
AS | |
-- constants declaration | |
c_interface_name CONSTANT integrator.tbl_interface_inbound.iinb_object_type%TYPE := 'PersonnelEMEA'; | |
c_process_name CONSTANT el_intstpee.process_name%TYPE := 'ELR_XCN_EMP_IMPORT'; | |
-- constants for error type | |
c_middleware CONSTANT el_intstsee.job_err_type%TYPE := 'MIDDLEWARE'; | |
c_setup CONSTANT el_intstsee.job_err_type%TYPE := 'SETUP'; |
This file contains hidden or 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
protoc --proto_path=F:\MyProjects\GRPC_Demo_MVN\src\main\java\main --java_out=F:\MyProjects\GRPC_Demo_MVN\src\main\java F:\MyProjects\GRPC_Demo_MVN\src\main\java\main\*.proto | |
protoc --grpc-java_out=lite:F:/MyProjects/GRPC_Demo_MVN/src/main/java --proto_path="F:/MyProjects/GRPC_Demo_MVN/src/main/java/main" "hello.proto" |
This file contains hidden or 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.io.*; | |
import java.lang.*; | |
class MultiThreadedFileRead extends Thread | |
{ | |
InputStream in; | |
MultiThreadedFileRead(String fname) throws Exception | |
{ | |
in=new FileInputStream(fname); | |
this.start(); | |
} |
This file contains hidden or 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
public static Order getOrder(String orderxml) throws GdiSomException | |
{ | |
try { | |
JAXBContext jaxbContext; | |
jaxbContext = JAXBContext.newInstance(Order.class); | |
Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); | |
StringReader reader = new StringReader(orderxml); | |
Order order= (Order) jaxbUnmarshaller.unmarshal(reader); | |
return order; |
This file contains hidden or 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
/** | |
*We use this process listener if we want to process the items before inserting into the database. | |
*Only used for custom processing. | |
*/ | |
public class OrderItemProcessListener implements ItemProcessListener<Object,Object> { | |
private OrderDao orderDao; | |
private static final Logger logger = Logger.getLogger(OrderItemProcessListener.class); |
This file contains hidden or 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.xyz.batch.listener; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.text.DateFormat; |
This file contains hidden or 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
@Configuration | |
public class PropertiesConfugurer implements WebApplicationInitializer, ApplicationContextAware, | |
ApplicationContextInitializer<ConfigurableApplicationContext> { | |
private static final Logger logger = Logger.getLogger(XmlFormatter.class); | |
private static ApplicationContext context; | |
private static String relativePath; | |
@Override |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- File: web-app/WEB-INF/jetty-web.xml --> | |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> | |
<Configure class="org.eclipse.jetty.webapp.WebAppContext"> | |
<!-- Application name is 'gdi_som' --> | |
<Set name="contextPath">/gdi_som</Set> | |
</Configure> |
NewerOlder