<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5099908301022888400.post5452761593782606346..comments</id><updated>2011-03-30T19:25:06.732+02:00</updated><category term='linux'/><category term='hyderabad'/><category term='suiza'/><category term='facility management'/><category term='samaná'/><category term='web'/><category term='riviera maya'/><category term='mendoza'/><category term='bilbao'/><category term='caribe'/><category term='india'/><category term='curiosidades'/><category term='sicilia'/><category term='dublin'/><category term='irlanda'/><category term='sap'/><category term='citas'/><category term='fotografía'/><category term='catalunya'/><category term='análisis'/><category term='android'/><category term='programación'/><category term='genève'/><category term='león'/><category term='software'/><category term='astorga'/><category term='informática'/><category term='ubuntu'/><category term='london'/><category term='milano'/><category term='maravillas'/><category term='vídeos'/><category term='jamaica'/><title type='text'>Comments on David Maestre: SAP Java Connector</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://davidmaestre.com/feeds/5452761593782606346/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html'/><author><name>DAVID MAESTRE</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5099908301022888400.post-1998873251124169826</id><published>2011-03-30T19:25:06.732+02:00</published><updated>2011-03-30T19:25:06.732+02:00</updated><title type='text'>Hola David,

Felicitaciones por el ejemplo. Tengo ...</title><content type='html'>Hola David,&lt;br /&gt;&lt;br /&gt;Felicitaciones por el ejemplo. Tengo una duda, ya cuento con una aplicación Java usando jco para interactuar con SAP. Pero sucede que ahora tengo otra aplicación que también debe interactuar con SAP, y cuando las publico ambas en el mismo servidor, solo puede funcionar una a la vez la que inicio primero. Me queda la duda si el uso de la libreria jco hace que solo un sistema la pueda usar? Por favor podrias ayudarme a saber si varios sistemas pueden usar la libreria a la vez?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/1998873251124169826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/1998873251124169826'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html?showComment=1301505906732#c1998873251124169826' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://davidmaestre.com/2008/09/sap-java-connector.html' ref='tag:blogger.com,1999:blog-5099908301022888400.post-5452761593782606346' source='http://www.blogger.com/feeds/5099908301022888400/posts/default/5452761593782606346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-153703986'/></entry><entry><id>tag:blogger.com,1999:blog-5099908301022888400.post-8583949986498373133</id><published>2009-03-16T20:36:00.000+01:00</published><updated>2009-03-16T20:36:00.000+01:00</updated><title type='text'>hola david!! mi pregunta es sobre la conexion esta...</title><content type='html'>hola david!! mi pregunta es sobre la conexion estatica, el ejemplo de la documentacion, me muestra solo cuando obtengo los atributos de la pestaña export, como se debe de recibir las estructuras que estan en la pestaña tablas en java a traves del metodo addInfo</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/8583949986498373133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/8583949986498373133'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html?showComment=1237232160000#c8583949986498373133' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://davidmaestre.com/2008/09/sap-java-connector.html' ref='tag:blogger.com,1999:blog-5099908301022888400.post-5452761593782606346' source='http://www.blogger.com/feeds/5099908301022888400/posts/default/5452761593782606346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-982058170'/></entry><entry><id>tag:blogger.com,1999:blog-5099908301022888400.post-8692399852663906303</id><published>2009-03-08T08:07:00.000+01:00</published><updated>2009-03-08T08:07:00.000+01:00</updated><title type='text'>Hola,&lt;br&gt;&lt;br&gt;Realmente no se puede prescindir del ...</title><content type='html'>Hola,&lt;BR/&gt;&lt;BR/&gt;Realmente no se puede prescindir del fichero de propiedades, entre otras cosas, porque nos sirve para configurar la conexión, lo que sí se puede conseguir es independizar el fichero de propiedades del código desarrollado.&lt;BR/&gt;&lt;BR/&gt;Podrías crearte un DestinationManager que a partir de un fichero de propiedades ubicado donde consideres, añada y registre una DESTINATION.&lt;BR/&gt;&lt;BR/&gt;public class DestinationManager {&lt;BR/&gt;public static JCoDestination getDestination(String configFile) throws JCoException, FileNotFoundException, IOException {&lt;BR/&gt; ClassPathResource resource = new ClassPathResource(configFile); &lt;BR/&gt; FileInputStream fis = new FileInputStream(resource.getFile());&lt;BR/&gt; Properties prop = new Properties();&lt;BR/&gt; prop.load(fis);&lt;BR/&gt; DestinationProvider provider = new DestinationProvider();&lt;BR/&gt; provider.addDestination(&amp;quot;DESTINATION&amp;quot;, prop);&lt;BR/&gt; com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(provider); &lt;BR/&gt; registered = true;&lt;BR/&gt; return JCoDestinationManager.getDestination(&amp;quot;DESTINATION&amp;quot;);&lt;BR/&gt;}&lt;BR/&gt;}&lt;BR/&gt;&lt;BR/&gt;Necesitarás también un DestinationProvider:&lt;BR/&gt;&lt;BR/&gt;public class DestinationProvider implements DestinationDataProvider {&lt;BR/&gt; Map&amp;lt;String, Properties&amp;gt; propertiesForDestinationName = new HashMap&amp;lt;String, Properties&amp;gt;();&lt;BR/&gt;&lt;BR/&gt; public void addDestination(String destinationName, Properties properties) {&lt;BR/&gt;  propertiesForDestinationName.put(destinationName, properties);&lt;BR/&gt; }&lt;BR/&gt;&lt;BR/&gt; public Properties getDestinationProperties(String destinationName) {&lt;BR/&gt;  if (propertiesForDestinationName.containsKey(destinationName)) {&lt;BR/&gt;   return propertiesForDestinationName.get(destinationName);&lt;BR/&gt;  } else {&lt;BR/&gt;   throw new RuntimeException(&amp;quot;JCo destination not found: &amp;quot; + destinationName);&lt;BR/&gt;  }&lt;BR/&gt; }&lt;BR/&gt;&lt;BR/&gt; public void setDestinationDataEventListener(DestinationDataEventListener eventListener) {&lt;BR/&gt;  // nothing to do&lt;BR/&gt; }&lt;BR/&gt;&lt;BR/&gt; public boolean supportsEvents() {&lt;BR/&gt;  return false;&lt;BR/&gt; }&lt;BR/&gt;}&lt;BR/&gt;&lt;BR/&gt;Desde tú código podrás hacer simplemente la llamada:&lt;BR/&gt;&lt;BR/&gt;JCoDestination destination = DestinationManager.getDestination(connectionConfigurationFile);&lt;BR/&gt;&lt;BR/&gt;Indicando el fichero de configuración de la conexión.&lt;BR/&gt;&lt;BR/&gt;Saludos.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/8692399852663906303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/8692399852663906303'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html?showComment=1236496020000#c8692399852663906303' title=''/><author><name>DAVID MAESTRE</name><uri>http://www.blogger.com/profile/14007326831409099103</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://davidmaestre.com/2008/09/sap-java-connector.html' ref='tag:blogger.com,1999:blog-5099908301022888400.post-5452761593782606346' source='http://www.blogger.com/feeds/5099908301022888400/posts/default/5452761593782606346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-936729263'/></entry><entry><id>tag:blogger.com,1999:blog-5099908301022888400.post-1739962767944335911</id><published>2009-03-08T02:05:00.000+01:00</published><updated>2009-03-08T02:05:00.000+01:00</updated><title type='text'>Hola David&lt;br&gt;&lt;br&gt;Aunque tomaste el ejemplo de la ...</title><content type='html'>Hola David&lt;BR/&gt;&lt;BR/&gt;Aunque tomaste el ejemplo de la documentación y transcribiste el párrafo que me llama la atención, quisiera saber si Tú conoces la forma de hacerlo. El párrafo se lee: &lt;BR/&gt;&lt;BR/&gt;"En el ejemplo, la configuración de acceso al servidor SAP se almacena en un archivo que es utilizado por el programa. Por razones de seguridad, es recomendable evitar esta práctica."&lt;BR/&gt;&lt;BR/&gt;Sin embargo, no he encontrado la forma de evitar la creacion del archivo de propiedades, ya que el DestinationManager sólo recibe, precísamente, el nombre del archivo creado.&lt;BR/&gt;&lt;BR/&gt;Te agradeceré si puedes comentar algo, ya que no he encontrado por la Internet la respuesta.&lt;BR/&gt;&lt;BR/&gt;Saludos.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/1739962767944335911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/1739962767944335911'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html?showComment=1236474300000#c1739962767944335911' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://davidmaestre.com/2008/09/sap-java-connector.html' ref='tag:blogger.com,1999:blog-5099908301022888400.post-5452761593782606346' source='http://www.blogger.com/feeds/5099908301022888400/posts/default/5452761593782606346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-529888749'/></entry><entry><id>tag:blogger.com,1999:blog-5099908301022888400.post-1154617069194236035</id><published>2008-12-01T19:28:00.000+01:00</published><updated>2008-12-01T19:28:00.000+01:00</updated><title type='text'>Hola David,&lt;br&gt;¡Excelente Ejemplo!, pero tengo una...</title><content type='html'>Hola David,&lt;BR/&gt;¡Excelente Ejemplo!, pero tengo una duda, si yo quisiera en vez de obtener datos de SAP enviarlos, via JCO, sin XI. ¿Como tendría que configurar tanto SAP como JAVA para realizar la transferencia?&lt;BR/&gt;&lt;BR/&gt;Si pudieras ayudarme, Muchas gracias!&lt;BR/&gt;&lt;BR/&gt;Bea.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/1154617069194236035'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/1154617069194236035'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html?showComment=1228156080000#c1154617069194236035' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://davidmaestre.com/2008/09/sap-java-connector.html' ref='tag:blogger.com,1999:blog-5099908301022888400.post-5452761593782606346' source='http://www.blogger.com/feeds/5099908301022888400/posts/default/5452761593782606346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-141155523'/></entry><entry><id>tag:blogger.com,1999:blog-5099908301022888400.post-3991574660831925098</id><published>2008-10-21T16:27:00.000+02:00</published><updated>2008-10-21T16:27:00.000+02:00</updated><title type='text'>Hola David.&lt;br&gt;&lt;br&gt;Yo era usuario de JCo 2.x y aho...</title><content type='html'>Hola David.&lt;BR/&gt;&lt;BR/&gt;Yo era usuario de JCo 2.x y ahora tengo que usar el 3.0 y no soy capaz de adecuarme a esta nueva librería.&lt;BR/&gt;&lt;BR/&gt;Te importaría si te fusilo con unas cuantas preguntas a ver si logro hacerme a esto?? Es que siguiendo el manual de SAP no llego a ninguna parte y ya no sé si es problema de sistemas, de mi desarrollo o de qué...&lt;BR/&gt;&lt;BR/&gt;cferreira at integra-soluciones dot net</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/3991574660831925098'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/3991574660831925098'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html?showComment=1224599220000#c3991574660831925098' title=''/><author><name>zlinx</name><uri>http://zlinxlair.wordpress.com/</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/openid16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://davidmaestre.com/2008/09/sap-java-connector.html' ref='tag:blogger.com,1999:blog-5099908301022888400.post-5452761593782606346' source='http://www.blogger.com/feeds/5099908301022888400/posts/default/5452761593782606346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-380422853'/></entry><entry><id>tag:blogger.com,1999:blog-5099908301022888400.post-7078461489128460020</id><published>2008-10-15T18:11:00.000+02:00</published><updated>2008-10-15T18:11:00.000+02:00</updated><title type='text'>Excelente ejemplo David!.&lt;br&gt;Podrías mostrarnos un...</title><content type='html'>Excelente ejemplo David!.&lt;BR/&gt;Podrías mostrarnos un ejemplo de commit a sap con JCO a través de una bapi sencilla?&lt;BR/&gt;&lt;BR/&gt;Muchas gracias.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/7078461489128460020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5099908301022888400/5452761593782606346/comments/default/7078461489128460020'/><link rel='alternate' type='text/html' href='http://davidmaestre.com/2008/09/sap-java-connector.html?showComment=1224087060000#c7078461489128460020' title=''/><author><name>Rafael</name><uri>http://www.blogger.com/profile/05854029599428402286</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://davidmaestre.com/2008/09/sap-java-connector.html' ref='tag:blogger.com,1999:blog-5099908301022888400.post-5452761593782606346' source='http://www.blogger.com/feeds/5099908301022888400/posts/default/5452761593782606346' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1477691603'/></entry></feed>
