Profiles are added pretty much as they are needed, so the answer is probably
that no one has yet submitted a DB2 profile for AppFuse. Including it should
be simple.

In terms of the groupId/artifactId for the DB2 JDBC driver, this is probably
up to you. DB2's driver is more than likely proprietary in which case the
normal practice is to add it with something like:

groupId: com.ibm.db2
artifactId: db2driver
version: whatever is appropriate for you here

The run mvn to build the project. The build will fail but it will give you
the relevant command to upload the jar file to your local repository.

Mike.

2008/10/20 jackalista <[EMAIL PROTECTED]>

>
> from looking at the top level pom.xml, it looks like it's the DB2 JDBC
> driver
> that I want the groupId and artifactId for, but I don't see anything in
> there like a DB2 profile.  Anybody know where the relevant info for the DB2
> JDBC driver is?  Also, why no DB2 profile in the pom?  There's stuff for
> mysql and oracle but not DB2.  I'm not trying to use multiple DB's BTW,
> just
> set up appfuse for use with DB2.
>
> tia,
>
> --j
>
>
>
> jackalista wrote:
> >
> > Hey Nathan (or anyone else that knows),
> >
> > Sorry to ask possibly very obvious questions but I'm new to maven too.
>  Do
> > I add the jar using the groupId and artifactId of my appfuse project or
> do
> > I need to get the relevant info for the jar I want to add?   I want to
> add
> > a DB2 JDBC driver to my app, so it would be whatever groupId and
> > artifactId pertaining to the DB2 JDBC driver if not the groupId and
> > artifactId or my app.  So I guess there's really 2 questions, do I give
> > the info for my app or for the driver and if it's for the driver, where
> do
> > I get the groupId and artifactId for IBM's DB2 JDBC driver?
> >
> > --jack
> >
> >
> >
> > melinate wrote:
> >>
> >> Turns out adding a Jar isn't that hard at all....  [which may be why no
> >> one bothered replying to that part of the question ;)]
> >>
> >> http://maven.apache.org/general.html#importing-jars
> >>
> >> I ran that on jt400.jar, and added a new dependency in my pom.xml and
> >> *poof* the jar is in my webapp next time I ran "mvn jetty:run-war".
> >> That's pretty slick...  now on to that JdbcTemplate stuff...
> >>
> >> Nathan
> >>
> >> Nathan Anderson wrote:
> >>> [ You thought I was kidding about the 60 seconds, huh? ;) ]
> >>>
> >>> So I need to have 2 data sources in my application.  The AppFuse core
> >>> and my CRUD classes are being persisted to a MySQL database.  I also
> >>> need fetch Read-Only objects from a DB2 database.  Being new to maven
> >>> I'm a little stumped on how to add the JDBC jars for DB2.  But even
> >>> after I figure that out I'm not sure how to configure a second
> >>> dataSource.  I'm guessing I create a new "dataSource" bean, but I
> >>> don't see how to tell Hibernate or some other mechanism to connect to
> >>> it.
> >>>
> >>> Thanks,
> >>> Nathan
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Multiple-DataSources-tp10111071s2369p20077564.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to