-
1. Re: Example File System RA
adrian.brock May 26, 2004 10:48 AM (in response to maroni)The -ds.xml is for 3.2.x,
the -service.xml is for 3.0.x -
2. Re: Example File System RA
jinesh4all Sep 1, 2009 2:05 AM (in response to maroni)Hi,
I am using Jboss 4.2.2 GA, can any one give me an example for FileSystem as Resource? I am new to Connectors.. :(
Thanks in advance. -
3. Re: Example File System RA
vickyk Oct 9, 2009 2:44 AM (in response to maroni)"jinesh4all" wrote:
I am using Jboss 4.2.2 GA, can any one give me an example for FileSystem as Resource? I am new to Connectors.. :(
Read this
http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch7.chapt.html
and try downloading the sample application from here
http://docs.jboss.org/jbossas/jboss4guide/r5/ -
4. Re: Example File System RA
kukeltje Dec 8, 2009 3:48 AM (in response to maroni)I've read the documentation Vicky pointed out and also came across http://wernli.nine.ch/web/guest/52
The latter is transactional, but misses a jboss-service.xm file (if it is needed, no idea yet). The former is not transactional. So I was wondering if someone could give me a quick hint on whether the JBoss example still runs (maybe slightly adapted) on JBoss AS 5.x (the example is seems to be deleted from the 5 docs in svn) or do I need to start from scratch or ... -
5. Re: Example File System RA
vickyk Dec 10, 2009 7:12 AM (in response to maroni)"kukeltje" wrote:
but misses a jboss-service.xm file (if it is needed, no idea yet). The former is not transactional. So I was wondering if someone could give me a quick hint on whether the JBoss example still runs (maybe slightly adapted) on JBoss AS 5.x (the example is seems to be deleted from the 5 docs in svn) or do I need to start from scratch or ...
Why do you think that you need jboss-service.xml file?
JBoss5 should be able to deploy the jca ra which are deployable on older versions, it is backward compatible and should support the older rar deployments too.
Go ahead and deploy the older rars in JB5, let us know if there are any issues. -
6. Re: Example File System RA
kukeltje Dec 10, 2009 2:28 PM (in response to maroni)The reason I thought I needed a jboss-service.xml file is because I got the impression that it is needed to have pooling. In the jboss books example rar for a non-tx fs jca implementation it is there for this reason.
My rar (if I'm allowed to use it) is new (jca 1.5 compliant). The rar itself deploys, no problem. Not sure how a ds should look like if I have no service.xml file but do want to have pooling...
But I'll try to find out more... thanks for the response and help so far. -
7. Re: Example File System RA
vickyk Dec 10, 2009 8:36 PM (in response to maroni)"kukeltje" wrote:
Not sure how a ds should look like if I have no service.xml file but do want to have pooling...
Please read this one
http://docs.jboss.org/jbossas/jboss4guide/r5/html/ch7.chapt.html
You should understand how the -ds.xml for JCA file rar is configured, these contents gets embedded in the the generated xml by xsl transformation in Jboss4.*<!DOCTYPE connection-factories PUBLIC "-//JBoss//DTD JBOSS JCA Config 1.5//EN" "http://www.jboss.org/j2ee/dtd/jboss-ds_1_5.dtd"> <!-- The non-transaction FileSystem resource adaptor service configuration --> <connection-factories> <no-tx-connection-factory> <jndi-name>NoTransFS</jndi-name> <rar-name>chap7-ex1.rar</rar-name> <connection-definition> org.jboss.chap7.ex1.ra.DirContextFactory </connection-definition> <config-property name="FileSystemRootDir" type="java.lang.String">/tmp/db/fs_store</config-property> </no-tx-connection-factory> </connection-factories>
-
8. Re: Example File System RA
kukeltje Dec 15, 2009 6:45 AM (in response to vickyk)I got it working. In the end it is much simpler then I thought. The TxFile RA I found can not be used (as is) due to licensing reasons. I've been in contact with the author though and in the not so distant future a project will be started where (refactored) code will be published. This hopefully will help many others.