- This topic has 2 replies, 2 voices, and was last updated 21 years, 5 months ago by
Jörg Schaible.
-
AuthorPosts
-
Jörg SchaibleMemberI have an ear project running in jBoss 3.2.1 that uses an Informix datasource. The aplication works, if I put the informix jdbc driver archive into the lib directory of the jBoss server/default and the data source (*-ds.xml) into its deploy directory.
Looking into jBoss docs and forums it is not quite clear, if putting the datasource definition into the ear should work or not … at least it does not in practice.
So I would like to deploy the datasource definition along with the ear as separate file. To accomplish this I would like to add an Ant builder to the external tool builders of the ear project that copies the file to the proper place. But I do not know if the necessary variables (used server config i.e. jBOSS home) are exposed to the Ant script by MyEclipse and how they are named ?
Regards,
Jörg
support-michaelKeymasterIf I understand you correctly you wish to deploy the Informix JDBC driver. If this is the case then try placing the jdbc jar file in the root directory of your EAR project. You will then need to add a Class-path: entry into the MANIFEST.MF files of the EAR module projects (e.g., typically your EAR project(s)) that require JDBC access. The following article provides more details on this topic (search for class-path in the article).
http://www.theserverside.com/resources/articles/J2EE-Deployment/chapter.html
Michael
MyEclipse Support
Jörg SchaibleMemberHi Michael,
thanks for your valuable pointer. But the problem with jBoss is, that it does not even pick-up my datasource defininition, if it is included in the EAR. Looking at jBoss’ jmx-console I have only an entry for the datasource if I provide the definition directly in the deploy root. But anyhow – this seems not related to MyEclipse…
Regards,
Jörg -
AuthorPosts