Custom namespaces are supported by the blueprint implementation, however, those are not compatible with the spring ones. Custom namespaces will certainly be standardized in the near future fwiw.
On Wed, Dec 23, 2009 at 19:56, Ivanhoe Abrahams <[email protected]> wrote: > Hi > > I was wondering if it is at all possible to add custom namespace handlers to > the blueprint config file > What I would like to do is port an existing spring-osgi configuration file > to blueprint, but at th emoment I am stuck. > > Below is the xml configuration file which I ported to blueprint > > > <?xml version="1.0" encoding="UTF-8" standalone="no"?> > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:tx="http://www.springframework.org/schema/tx" > xmlns:context="http://www.springframework.org/schema/context" > xmlns:aop="http://www.springframework.org/schema/aop" > xsi:schemaLocation="http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://www.springframework.org/schema/tx > http://www.springframework.org/schema/tx/spring-tx-2.5.xsd > http://www.springframework.org/schema/context > http://www.springframework.org/schema/context/spring-context-2.5.xsd > http://www.springframework.org/schema/aop > http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> > > > <service ref="rules-service" > interface="com.nebulasoft.rulesservice.RulesServices" /> > <reference id="referencecodes-service" > interface="com.nebulasoft.referencecodes.ReferenceCodesService" /> > <bean id="rules-service" > class="com.nebulasoft.rulesservice.drools.DroolsRuleServicesImplementation" > init-method="init"> > <property name="referenceCodeService" ref="referencecodes-service" /> > </bean> > <bean > class="org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor" > /> > <bean id="entityManagerFactory" > class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean"> > <property name="persistenceUnitName" value="test" /> > </bean> > <bean id="transactionManager" > class="org.springframework.orm.jpa.JpaTransactionManager"> > <property name="entityManagerFactory" ref="entityManagerFactory" /> > </bean> > <context:load-time-weaver > weaver-class="org.springframework.instrument.classloading.InstrumentationLoadTimeWeaver" > /> > <tx:advice id="txAdvice" transaction-manager="transactionManager"> > <tx:attributes> > <tx:method name="*" propagation="REQUIRED" /> > </tx:attributes> > </tx:advice> > </blueprint> > > > > However, when I deploy my bundle into Karaf/Felix. I see the following DEBUG > log, which seems like it cannot resolve the namespace handlers which are in > the spring bundlesin the spring bundles. Thereafter nothing seems to > happen....in other words my service is not started > > > 20:30:27,828 | DEBUG | pool-2-thread-2 | BlueprintEventDispatcher | > ntainer.BlueprintEventDispatcher 97 | Sending blueprint container event > BlueprintEvent[type=GRACE_PERIOD, > dependencies=[(&(objectClass=org.apache.geronimo.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace= > http://www.springframework.org/schema/context)), > (&(objectClass=org.apache.geronimo.blueprint.NamespaceHandler)(osgi.service.blueprint.namespace= > http://www.springframework.org/schema/tx))]] for bundle rules-service-drools > 20:30:27,828 | DEBUG | pool-1-thread-1 | BlueprintListener | > raf.shell.osgi.BlueprintListener 85 | Blueprint app state changed to > GracePeriod for bundle 68 > > > > Thank you in advance > Ivanhoe > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

