tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thabach <b...@evolootion.ch>
Subject Re: Configuring Resource Adapter
Date Thu, 26 Nov 2009 21:19:36 GMT

Hi Tom

you should succeed in looking up the ManagedConnectionFactory in the global
JNDI tree under "java:openejb/Resource/repository" (see also this 
http://markmail.org/thread/kp4wft7lnwq4sybh thread ).

Cheers, Christian.


ttsuchi wrote:
> 
> Hello,
> 
> I am also trying to use Jackrabbit via JCA.  I've placed the Jackrabbit
> RAR in the classpath and hard-coded some config-property-value in the
> META-INF/ra.xml file.  However, it's still not getting injected to my
> EJBs.  I tried
> 
> @Resource
> Repository repository;
> 
> ... but this is null. The log says:
> 
> INFO - Configuring Service(id=repositoryRA, type=Resource,
> provider-id=repositoryRA)
> INFO - Configuring Service(id=repository, type=Resource,
> provider-id=repository)
> DEBUG - [TransactionSupport=xa]
> DEBUG - [ResourceAdapter=repositoryRA]
> DEBUG - Using default 'openejb.validation.output.level=medium'.  Possible
> values are: terse, medium, verbose
> INFO - Enterprise application "classpath.ear" loaded.
> DEBUG - Starting ResourceAdapter(id=Default JMS Resource Adapter)
> DEBUG - LocalIntialContext.close()
> INFO - Assembling app: classpath.ear
> INFO - Using 'openejb.tempclassloader.skip=annotations'
> DEBUG - Starting ResourceAdapter(id=repositoryRA)
> WARN - Property "ResourceAdapter" not supported by "repository"
> ...
> WARN - Injection data not found in enc:
> jndiName='com.mycompany.SomeBean/repository', target=class
> com.mycompany.SomeBean/repository
> 
> Somehow I don't think the resource has been mapped in the JNDI tree to
> start with...  How is the JNDI name for the inbound resource configured in
> OpenEJB? Also, is there any documentation for JCA support in OpenEJB?
> 
> Thanks,
> Tom
> 
> 
> Philipp Bunge-2 wrote:
>> 
>> Hi David!
>> 
>>> I've been hacking on this and it looks like I'll need more changes that
>>> I
>>> anticipated -- some related code that really needs to be fixed up.
>>>
>>> In the meantime you can use the <config-property-value> element directly
>>> in
>>> the ra.xml file to setup Jackrabbit.
>> 
>> Thanks for looking in to it!
>> Yes, in the meantime I managed to work around it, so it's not as sexy
>> as it could be but at least my unit tests work. :-)
>> 
>> And thanks for all your work on OpenEJB! It's something we really
>> appreciate a lot!
>> 
>> Cheers,
>> Philipp
>> 
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Configuring-Resource-Adapter-tp26000024p26535010.html
Sent from the OpenEJB User mailing list archive at Nabble.com.


Mime
View raw message