Hello all, I'm doing a container project for my company,(which we need to do container is we just need something, not the whole javaEE stack for the company, and control over application and smooth upgrade). The container needs to register Which we now do, a core(just several lines of code starts OSGi container, and then have many bundles on top of it scanner + DSDeployer + WarDeployer, looks like this: core-->OSGi container --> (scanner + DSDeployer + WarDeployer) the problem now is, have many classloader problems, first I need to enable the datasource access, register a JBoss-JNDI like datasource to our environment in order for other War/Ear to use it(of course, all our company other applications is War/Ear, so this containers needs to support War/Ear). but while I register the datasource and cast it to javax.sql.DataSource, it reports Linkage Error to javax.sql.DataSource (the datasource implementation is ported from jboss connection pool, because we all before use it, is verified and stable, the company policy won't allow use to use apache DBCP). I also split the jndi provider into a bundle, (otherwise it won't be usable to other bundle?), and the datasource project into a bundle. So this is the problem. And other problem is, the deployers bundle will register them to scanner(one collection varible in scanner bundle), but how does scanner knows all deployers are registered? There may be some time missing that some deployer don't register, I don't see OSGi can support that?
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
