Re: Spring 2.0 and XBean

2007-02-17 Thread Terry Cox
 why is there a spring 1.2.4 version in the classpath ?
 You need to remove it somehow.

It appears to be coming in via the maven-xbean-plugin, which seems to
import xbean-spring. I have tried over-riding the dependency on xbean
spring in the plugin reference and excluding Spring, but that doesnt work


  plugin
groupIdorg.apache.xbean/groupId
artifactIdmaven-xbean-plugin/artifactId
version${xbean-version}/version
dependencies
dependency
groupIdorg.apache.xbean/groupId
artifactIdxbean-spring/artifactId
version${xbean-version}/version
exclusions
  exclusion
groupIdorg.springframework/groupId
artifactIdspring/artifactId
  /exclusion
/exclusions
/dependency
/dependencies
executions
  execution
goals
  goalmapping/goal
/goals
configuration
  namespacehttp://com.metaconcepts.ball/1.0/namespace
/configuration
  /execution
/executions
  /plugin


Terry


Re: Spring 2.0 and XBean

2007-02-17 Thread Bruce Snyder

On Sat, 17 Feb 2007 12:09 + (GMT Standard Time), Terry Cox
[EMAIL PROTECTED] wrote:

 why is there a spring 1.2.4 version in the classpath ?
 You need to remove it somehow.

It appears to be coming in via the maven-xbean-plugin, which seems to
import xbean-spring. I have tried over-riding the dependency on xbean
spring in the plugin reference and excluding Spring, but that doesnt work


  plugin
groupIdorg.apache.xbean/groupId
artifactIdmaven-xbean-plugin/artifactId
version${xbean-version}/version
dependencies
dependency
groupIdorg.apache.xbean/groupId
artifactIdxbean-spring/artifactId
version${xbean-version}/version
exclusions
  exclusion
groupIdorg.springframework/groupId
artifactIdspring/artifactId
  /exclusion
/exclusions
/dependency
/dependencies
executions
  execution
goals
  goalmapping/goal
/goals
configuration
  namespacehttp://com.metaconcepts.ball/1.0/namespace
/configuration
  /execution
/executions
  /plugin


Terry, what is the $xbean.version is used in the pom.xml?

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/


Re: Attachment in form of byte[]

2007-02-17 Thread Bruce Snyder

On 1/30/07, Nirav [EMAIL PROTECTED] wrote:


Hello,

In my project I added message content in normalize message as message
property but I think it is better to add as attachment,

So, Can you help me how can I add byte[] (byte array) as attachment in
Normalize message!


Now about the NormalizedMessage.addAttachment() method? Below is an
example of adding a byte[]:

// Grab the attachment from somewhere
byte[] attachment = getAttachment();

// Create a NormalizedMessage using the MessageExchange
NormalizedMessage msg = me.createMessage();
msg.setContent(new StringSource(helloHello World! Message/hello));
msg.addAttachment(anAttachment, new DataHandler(new
StreamDataSource(new ByteArrayInputStream(attachment;

// Set the message on the MessageExchange
me.setMessage(msg, in);

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/


Re: Spring 2.0 and XBean

2007-02-17 Thread Bruce Snyder

On Sat, 17 Feb 2007 16:07 + (GMT Standard Time), Terry Cox
[EMAIL PROTECTED] wrote:

 Terry, what is the $xbean.version is used in the pom.xml?

2.8

My code is built against the 3.1 release of ServiceMix.

As an experiment, I just deleted all the 1.2.x versions of Spring from my
repository and built ServiceMix 3.1 from source. Spring versions 1.2.4
and 1.2.6 both re-appeared in the repository during the phase 1 build.
Servicemix-core uses 1.2.4 and the xfire-maven-plugin uses 1.2.6.

If you then check the build, you can see that the JSR-181 component build
is over-riding the dependency management and substituting 1.2.6 instead
of 2.0.1 so it looks as though there is some cross-contamination of
Spring classes within ServiceMix.


Well evidently XBean 2.8 depends on Spring 1.2.4 which I don't
understand. I seem to recall that XBean used Spring 2.x so I'm rather
perplexed as to why a dep on Spring 1.2.4 is defined in the POM. I'm
sure Guillaume can shed some light on it, so let's wait for his
response.

Bruce
--
perl -e 'print unpack(u30,D0G)[EMAIL 
PROTECTED]5R\F)R=6-E+G-N61ED\!G;6%I;\YC;VT*
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/


Re: Spring 2.0 and XBean

2007-02-17 Thread Terry Cox
 Well evidently XBean 2.8 depends on Spring 1.2.4 which I don't
 understand. I seem to recall that XBean used Spring 2.x so I'm 
 rather
 perplexed as to why a dep on Spring 1.2.4 is defined in the POM. I'm
 sure Guillaume can shed some light on it, so let's wait for his
 response.

XBean contains a series of parallel projects that seem to build support
for various specific versions of Spring, however because of this you
can't just switch the root dependency to 2.0.x as the 1.x sub-projects
won't build.

Terry