I am struggling to get my custom DAO for handling binaries to get invoked. I have taken MOST steps mentioned in various posts, but no luck so far. I have created the bundle XML as follows:
<StorageDAOBundles> <StorageDAOBundle type="persistence"> <StorageDAO typeMapping="Binary" class="com.tridion.storage.extension.JPABinaryDAOExtensionImpl" /> </StorageDAOBundle> </StorageDAOBundles>
I see in the server log that my DAO bundle, as added to the cd_storage_conf.xml, gets found:
Executing configuration step: BundleLoader Custom storage bindings defined, loading binary_dao_bundle.xml Replaced 'Binary' for storage 'persistence' with .com.tridion.storage.extension.JPABinaryDAOExtensionImpl'.
What I am unsure of is if something still needs to be done with the item types/mapping, ie:
<ItemTypes defaultStorageId="???" cached="false"> <Item typeMapping="Binary" cached="false" storageId="???" /> </ItemTypes>
Do I need to add a section like above per ItemTypes/Publication? I want to configure that only for binaries published to specific publications my new Binary DAO class is used to handle the binaries, and the regular DAO can be used in the other cases. That is probably the step I am missing right now, but how to configure this?