Re: Using Weblogic datasources

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jun 15 2004 - 21:19:55 EDT

  • Next message: Newton, Greg P.: "RE: Using Weblogic datasources"

    Hi Greg,

    On Jun 15, 2004, at 9:04 PM, Newton, Greg P. wrote:
    > Sorry for sending this to you directly, but while I've been able to
    > join the mailing list and have received the last several emails that
    > went out, the emails I've sent to the list don't seem to be making it.

    > To: 'cayenne-use..bjectstyle.org.'

    Could it be because of the dot at the end of the list address above? I
    checked the server logs, your email is there, so you should be able to
    post. Anyway, no problem, I am sending a copy to the list.

    > If you can help at all, I'd greatly appreciate it.  By the way, while
    > I've only been using Cayenne for a few days, I'm really enjoying it
    > and I've seen tremendous productivity gains.  I'm giving a
    > demonstration tomorrow morning for about 15 of our developers to show
    > them the basics of Cayenne and how I've used it.

    Very cool! I am glad that our ORM approach is finally being appreciated
    by the community.

    > Hi everyone,
    >
    > I apologize if this question has been asked, but I haven't been able
    > to find the answer yet.
    >
    > I'm using Cayenne from within an EJB deployed in the Weblogic
    > application server.  From what I've read, I can configure Cayenne to
    > use JNDI to lookup a Datasource from Weblogic, but I haven't been able
    > to figure out how. 
    >
    > In the modeler, I can specify the DataNode name and the DataSource
    > factory.  The DataSource factory defaults to
    > org.objectstyle.cayenne.conf.DriverDataSourceFactory.
    >
    > Can anyone tell me how to configure this to work with Weblogic?  What
    > would I put for DataSource factory?  Where would I specify the JNDI
    > name of the DataSource I have configured in Weblogic?

    Don't know the Weblogic specifics, however the general procedure is the
    following:

    1. Configure a DataSource to be available via JNDI on WebLogic. You
    know better how to do that.
    2. Instead of DriverDataSourceFactory select JNDIDataSourceFactory.
    3. Step (2) should result in "Location" field becoming editable. Type
    your JNDI DataSource name in the location field.

    BTW, DataNode panel in the Modeler will likely be redesigned pretty
    soon to make it less confusing.

    Hope this helps.

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue Jun 15 2004 - 21:20:04 EDT