[JBoss Microcontainer Development] New message: "Trivial vfs-3.0.x manifest access fails"
by Thomas Diesler
JBoss development,
A new message was posted in the thread "Trivial vfs-3.0.x manifest access fails":
http://community.jboss.org/message/529834#529834
Author : Thomas Diesler
Profile : http://community.jboss.org/people/thomas.diesler@jboss.com
Message:
--------------------------------------------------------------
When trying to access the manifest from a jar, I get
Caused by: java.io.FileNotFoundException: /home/tdiesler/svn/jboss-osgi/trunk/testsuite/example/target/test-libs/example-simple.jar/META-INF/MANIFEST.MF (Not a directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.jboss.vfs.spi.RealFileSystem.openInputStream(RealFileSystem.java:67)
at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:225)
at org.jboss.osgi.vfs30.VirtualFileAdaptor30.openStream(VirtualFileAdaptor30.java:106)
at org.jboss.osgi.vfs.VFSUtils.getManifest(VFSUtils.java:49)
at org.jboss.osgi.spi.util.BundleInfo.<init>(BundleInfo.java:109)
Essentially I do
VirtualFile root = VFS.getChild(url);
VirtualFile manifest = root.getChild(JarFile.MANIFEST_NAME);
InputStream stream = manifest.openStream();
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529834#529834
16 years, 1 month
[JBoss ESB Development] New message: "Re: Camel integration input requested"
by Edgar Silva
JBoss development,
A new message was posted in the thread "Camel integration input requested":
http://community.jboss.org/message/529672#529672
Author : Edgar Silva
Email : edgarsilva(a)gmail.com
Profile : http://community.jboss.org/people/edgar.silva
Message:
--------------------------------------------------------------
Hi David,
This is very interesting, and I also vote for this idea. I've been doing some initial working on this at http://code.google.com/p/breakingwoods. What we have done for awhile is basically to listen some routes (URIs) from Apache Camel. I believe some components can be just "Event Producers", but several others can be even the final destinations, for instance, I am figuring out an way to create a kind of "CamelNotifier", that can use the ready Camel infrastructure.
Looking from a developer perspective, downloading or building the actual Apache Camel Suppor for JBoss ESB 4.7 hosted at breakingwoods, anybody can just add the "Apache Camel Gateway/Listener" according the following XML config in jboss-esb.xml service section:
{code:xml}
<listener name="ApacheCamel" busidref="ApacheCamel" is-gateway="true">
<property name="gatewayClass" value="org.jboss.soa.esb.listeners.gateway.camel.ApacheCamelListener" />
<property name="protocol-uri" value="irc:mailto:breakingwoods@irc.freenode.net/#esbtest" />
<property name="destination-category" value="sample-apachecamelESBService" />
<property name="destination-name" value="sample-apachecamelESBServiceListener" />
</listener>
{code}
The class http://code.google.com/p/breakingwoods/source/browse/trunk/jbossesb-apach... , is the listener based on +AbstractThreadedManagedLifecycle+, which is responsible to interact with Camel, the other properties are useful for the following purposes:
* protocol-uri - This is the Apache Camel URI that will receive the Events and the message itself, this message will be forwarded to JBoss ESB Services pipelines. +
+
* destination-category - Service Category that will receive the message arrived from Camel layer
* destination-service - The Service that will handle the message arrived from Camel, this service for instance can be a simple Smooks CBR, or anyother able to marshal or unmarshal the message.
As David said, Camel is not an ESB, but I consider it a valuable piece for any solution that aims to promote integration in any kind of architecture.
Cheers
Edgar
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/529672#529672
16 years, 1 month