Hiram,
Thanks for this; xbean is able to find the mapping. This will allow me
to build the adaptor independently of the activemq tree.
I definitely intend to submit this code for the project as soon as we're
done. Hopefully it will be useful.
Regards,
Prashanth
Hiram Chirino wrote:
>
> Hi Prashanth,
>
> That's awesome. Hi hope you will be contributing that back to the
> project? :D
>
> Add a section like this to your pom.xml. It will generate the xbean
> mappings in the 'http://activemq.org/bdb/1.0' namespace. Also make
> sure you use the @xbean javadoc tags on your persistence adapter.
>
> <build>
> <plugins>
> <plugin>
> <groupId>org.apache.xbean</groupId>
> <artifactId>maven-xbean-plugin</artifactId>
> <executions>
> <execution>
> <configuration>
> <namespace>http://activemq.org/bdb/1.0</namespace>
> </configuration>
> <goals>
> <goal>mapping</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
>
> On 4/25/07, Anthrope <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>> I am in the process of building a SleepyCat adaptor for ActiveMQ.
>> The
>> package under which I am putting the code is
>> org/apache/activemq/store/bdb .
>> I started out by creating a separate Maven project, and was able to build
>> the project successfully. I configured the persistenceAdapter entry
>> (called
>> bdbPersistenceAdaptor) in my activemq.xml appropriately, and copied the
>> jar
>> file (called activemq-bdb-adaptor.jar) to $ACTIVEMQ_HOME/lib. However, I
>> couldn't run activemq, the reason being that xbean was not able to find
>> its
>> mapping for the bdbPersistenceAdaptor. I am guessing that xbean was
>> unable
>> to find the xbean mapping file in the classpath.
>>
>> I got around this by copying my code tree into the activemq-core
>> source
>> tree and building from there. I think this has the benefit of actually
>> allowing the XSD for activemq.xml to reflect the possibility of an
>> element
>> called bdbPersistenceAdaptor (instead of the xs:any I would have to use
>> if I
>> compiled the project separately). However, I'd like to see if I can build
>> my
>> adaptor separately and add it as a separate jar file for activemq. Any
>> ideas
>> on how I can get my xbean class mapping file to be found on the
>> classpath?
>>
>> Thanks much in advance,
>> Prashanth
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Creating-New-Persistence-Adaptor-tf3648647s2354.html#a10191457
>> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Regards,
> Hiram
>
> Blog: http://hiramchirino.com
>
>
--
View this message in context:
http://www.nabble.com/Creating-New-Persistence-Adaptor-tf3648647s2354.html#a10225388
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.