Ir al contenido principal

Entradas

Mostrando las entradas etiquetadas como Spring

Primer CodeLab de Web Services con Mule ESB, JAX WS, SOAP, WSDL, Spring

Primer CodeLab de Web Services usando [ Mule ESB , JAX WS , SOAP , WSDL , Spring ]. en este post no hablaré nada teórico sobre Mule , ya que ello lo pueden encontrar Googleando, será un lab totalmente práctico. Requisitos: - JDK  1.6 - MuleStudio - soapUI Paso a Paso para crear Web Services con Mule : 1. Crear proyecto Mule ( MuleStudio ):  Next > Next > Next > Finish 2.- Crear el Objeto Producto.java package com.dmotta.mule.labuno.mulelabuno.bo; import java.io.Serializable; public class Producto implements Serializable { private String id; private String nombre; private String marca; private String descripcion; public Producto() { } public Producto(String id, String nombre, String marca, String descripcion) { this.id=id; this.nombre=nombre; this.marca=marca; this.descripcion=descripcion; } //getters/setters } 3.- Crear la Interface que publicará los métodos listarProductos() y getDetalleProdu...

Spring JDBC - Store Procedure

IMPLEMENTACION BASICA DE STORE PROCEDURE CON Spring JDBC CONFIGURACION DE DATASOURCE: OBTENER EL DATASOURCE DE WEBSHERE jdbc.datasource. WebSphereDataSourceAdapter"> jndi.JndiObjectFactoryBean"> EN LA CLASE : LA INJECTION DEL DATASOURCE private DataSource dataSource; private JdbcTemplate jdbcTemplate; public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; this.jdbcTemplate = new JdbcTemplate(this.dataSource); } METODO GENERICO QUE EJECUTA STORE DE UPDATE,INSERT private void registroArchivo(final List parameters,final String SP){ jdbcTemplate.execute( new CallableStatementCreator(){ public CallableStatement createCallableStatement( Connection con)throws SQLException { CallableStatement cs = con.prepareCall("{call "+SP+"}"); for (int i = 0; i if(parameters.get(i) instanceof Integer){ cs.setInt((i+1), Integer.parseInt(parameters. get(i).toString())); }else if(paramete...

Job scheduling con Spring Quartz

Libreria requerida: com.springsource.org.quartz-1.6.2.jar spring.jar Configuracion en applicationContext.xml bean> La Clase BeanProcess package com.mycompany.project.process; /** * @author David * */ public class BeanProcess { public void startProcess(){ System.out.println("Proceso ejecutandose"); } } Simple y rapido de como automatizar tareas en Java. usando Spring.