-
1. Re: Avoiding Dynamic-Import *?
davsclaus Feb 26, 2011 2:04 AM (in response to jecalvert)I think I have heard somewhere the bundle plugin would be / or is capable of scanning the Spring XML files and detect usages of 's. I may be mistaking.
In terms of JDBC drivers, you can attach those as a OSGi bundle fragment to your bundle, which means the JDBC driver would be fully available to your bundle.
-
2. Re: Avoiding Dynamic-Import *?
jecalvert Mar 4, 2011 11:15 AM (in response to davsclaus)The bundle plugin mostly gets it right, but there are inevitably some secondary and tertiary type dependencies that get missed. Then again, to be an apologist, the reason is because for so long there have been so many developers which have used "Stupid ClassLoader Tricks" (I am guilty of this sin myself).
Regardless, I feel as if there is some piece of the puzzle that I am missing.
For instance, I have a service, exposed via JAX-RS on CXF. It has an 'operations' class that wraps some entity business logic. The operations class imports a DAO from a bundle that contains Hibernate entities. The DAO exposes a way for you to pass in a string which is executed as HQL. Sounds pretty straightforward! However, running it, BAM there is a ClassNotFound on org.hibernate.hql.ast.somethingorother. Well that doesn't make sense, Hibernate is imported...I get the error to go away by doing dev:dynamic on the CXF bundle. That seems terribly terribly wrong.