Hi Jonathan, not sure if gmail swallowed it but do you have your NPE stack? or is it the em? Something to take care with ra is to share the api between your app and the ra (putting it in the container instead of the rar for instance)
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-10-16 0:06 GMT+02:00 Jonathan S. Fisher < [email protected]>: > I got a little bit farther by putting this into system.properties (renamed > it): > openejb.connector.jca-file-store.aliases = bucketStore > openejb.connector.jca-file-store.skip-default = true > bucketStore.rootDirectory=/tmp > > But now I'm getting a Null injection! Argh! What the deuce am I doing > wrong? > > Logs show the resource is linked: > > Oct 15, 2015 5:02:16 PM org.apache.openejb.config.AutoConfig > processResourceRef > INFO: Auto-linking resource-ref 'java:comp/env/bucketStore' in bean > asset-track/asset-track/asset-track.Comp1776931388 to > Resource(id=bucketStore) > Oct 15, 2015 5:02:16 PM org.apache.openejb.config.AutoConfig > processResourceRef > INFO: Auto-linking resource-ref 'java:comp/env/bucketStore' in bean > asset-track/asset-track/IdentifiableService to Resource(id=bucketStore) > Oct 15, 2015 5:02:16 PM org.apache.openejb.config.AutoConfig > processResourceRef > INFO: Auto-linking resource-ref 'java:comp/env/bucketStore' in bean > asset-track/asset-track/SupportingDocService to Resource(id=bucketStore) > Oct 15, 2015 5:02:16 PM org.apache.openejb.config.AutoConfig deploy > INFO: Configuring PersistenceUnit(name=asset-track, > provider=org.eclipse.persistence.jpa.PersistenceProvider) > Oct 15, 2015 5:02:16 PM org.apache.openejb.config.AutoConfig > logAutoCreateResource > INFO: Auto-creating a Resource with id 'jdbc/asset_trackNonJta' of type > 'DataSource for 'asset-track'. > Oct 15, 2015 5:02:16 PM org.apache.openejb.config.AutoConfig deploy > INFO: Configuring Service(id=jdbc/asset_trackNonJta, type=Resource, > provider-id=jdbc/asset_track) > Oct 15, 2015 5:02:16 PM org.apache.openejb.assembler.classic.Assembler > createRecipe > INFO: Creating Resource(id=jdbc/asset_trackNonJta) > > What's weird is in IdentifiableService there is not reference to > BucketStore: > > > @Stateless > @TransactionAttribute(TransactionAttributeType.REQUIRED) > public class IdentifiableService { > @PersistenceContext > private EntityManager em; > ... > } > > HElllpppp!!! > > On Thu, Oct 15, 2015 at 4:40 PM, Jonathan S. Fisher < > [email protected]> wrote: > > > Hey guys, > > > > I've read through the mailing list posts on this subject and I _still_ > > can't get this to work. > > > > I'm trying to deploy Adam Bien's transactional file adapter: > > https://github.com/AdamBien/connectorz/tree/master/files to the server > > > > Here's the EJB: > > > > @Stateless > > @TransactionAttribute(TransactionAttributeType.REQUIRED) > > public class SupportingDocService { > > @Inject > > private Logger log; > > @Resource(name = "ra/files/asset-track") > > private BucketStore bucketStore; > > ... > > } > > > > > > I've added this to tomee.xml: > > <Deployments dir="apps" /> > > > > And deployed the jca-file-store.rar to apps/ TomEE unpacks the rar. But > > how do you configure it? I need to name the resource > "ra/files/asset-track" > > and set the rootDirectory property. > > > > -- > Email Confidentiality Notice: The information contained in this > transmission is confidential, proprietary or privileged and may be subject > to protection under the law, including the Health Insurance Portability and > Accountability Act (HIPAA). The message is intended for the sole use of the > individual or entity to whom it is addressed. If you are not the intended > recipient, you are notified that any use, distribution or copying of the > message is strictly prohibited and may subject you to criminal or civil > penalties. If you received this transmission in error, please contact the > sender immediately by replying to this email and delete the material from > any computer. >
