Spring Integration Http Outbound Gateway and variable url

I've recently had to deal with spring integration and in particular the http outbound gateway component. One possible use case for it would be to have to send the message out to an arbitrary url. In order to accomplish this, we can insert the final url in a custom header (here X-CUSTOM-HTTP-REQUEST-URL) and use the Spring expression language (SpEL) to extract the header value and pass that as a variable to the url property. Sweet! In the world of dietary supplements, the line between genuine solutions and marketing exaggeration can be thin. Flow Force Max is no exception, with its extravagant claims and glowing reviews. In this article, we will expose the deceptive hype surrounding FlowForce Max by digging into the science behind its ingredients and the credibility of its reviews. ...

jdk tools.jar under Snow leopard

Se usando maven-antrun-plugin sotto MacOsX Snow Leopard ottenete [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact. Missing: sun.jdk:tools🫙1.6.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=sun.jdk -DartifactId=tools -Dversion=1.6.0 -Dpackaging=jar -Dfile=/path/to/file Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=sun.jdk -DartifactId=tools -Dversion=1.6.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] Path to dependency: org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.4 sun.jdk:tools🫙1.6.0 La soluzione veloce è : cd /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/ sudo mkdir lib cd lib sudo ln -s ../Classes/classes.jar tools.jar Purtroppo non ho ancora trovato un modo elegante dentro maven usando i profile.

October 17, 2010 · 1 min · 99 words ·  Yoghi

Google App Engine introduce Java

E’ un dato di fatto che spesso, la piattaforma di sviluppo che scegliamo è collegata con i servizi di hosting che esistono. Le preferenze personali semplicemente passano in secondo piano. LAMP è un successo mondiale sopratutto perche esistono migliaia siti di hosting pronti e a basso costo. .Net è un “fallimento” lato server perche i server non sono gratis e aperti. Java ha i server gratis e aperti, ma presenta i problemi. Se un host provider mette a disposizione un application/servlet container, come dare un servizio che scala e contemporaneamente proibire ai sviluppatori di fare idiozie che potrebbero mettere in ginocchio il sistema o lasciarlo meno sicuro, alla fine avete a disposizione tutte le API del JDK. Aggiungiamo anche il fatto che i requisiti neccessari sono più esigenti in termini di RAM e CPU messi a confronto con LAMP. Un problema non da poco che gli ingegneri della Google hanno deciso di affrontare e offrire una soluzione tutta loro. Google App Engine, che fin’ora offriva Python come piattaforma di sviluppo, ora offre anche Java. Per il momento, è in fase di “prova” e limitato ai primi 10'000 sviluppatori che faranno la richiesta (10 siti a testa). Chi sarà il fortunato, vedrà che la Java VM è stata modificata, le modifiche principali sono ...

Maven: usare la cartella "lib" di un project

Se uno per praticità vuole tenere le library all’interno del project o cmq. usare java-library che nel maven-repository non ci sono e non vuole sporcare il repository può mettere nel pom del progetto in alto : <repositories> <repository> <id>project</id> <name>Project Maven Repository</name> <layout>default</layout> <url>file:///./lib</url> </repository> </repositories> In questo modo maven cercherà nella lib le java-library necessarie. [Fonte]

December 3, 2008 · 1 min · 57 words ·  Yoghi

Obtain Multiaddress IP with java

If you have many address, you can obtain all : InetAddress[] e = InetAddress.getAllByName(InetAddress.getLocalHost().getCanonicalHostName());

October 16, 2008 · 1 min · 14 words ·  Yoghi

JBuilder 2008 and Windows Vista problems

So let’s say you try to install JBuilder 2008 under Windows Vista (32bit). Did all went smoothly? A friend of mine got a nice JVM terminated Exit code=-1 error. It would seem that if you modify the JBuilder.ini -Xmx parameter (initially over 800M) to 700M or 600M and if you run reset_JBuilder.bat it might finish the installation. An alternative is to modify JBuilder.ini the moment it gets created so you don’t have to wait twice. Also it would seem sometimes class diagrams won’t show classes. My friend deleted all com.ibm.icu* packages and jars under JBuilder and put com.ibm.icu_3.8.1.v20080530.jar from eclipse 3.4 to the jbuilder 2088 plugins directory. For the moment things seem to function.

Eclipse RCP on MacOSx 10.5

Se vi avventurate nello sviluppare plugin RCP con eclipse sotto MacOsX 10.5 Leopard sappiate che avrete degli errori tipo java.lang.UnsatisfiedLinkError: no swt-carbon-3349 or swt-carbon in swt.library.path, java.library.path or the jar file l’unica soluzione che avete è quella mostrata in figura, ossia andare in Run Dialog e nelle opzioni della VM aggiungere -Djava.library.path=/Application/eclipse/plugin

April 2, 2008 · 1 min · 52 words ·  Yoghi