facebook

Building Simple Entity Bean (what goes in Datasource-mapping

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #210266 Reply

    Diane Powers
    Member

    Hi:
    I am trying to deploy a simple cmp 2.0 entity bean.
    What should go in datasource mapping?

    I am using oracle 9i as my database engine. I can’t seem to get anything to work.

    Your help is greatly appreciated.

    Diane

    * @ejb.bean name = “SimpleBean”
    * type = “CMP”
    * cmp-version = “2.x”
    * display-name = “Simple”
    * description = “Simple EJB”
    * view-type = “both”
    * jndi-name = “ejb/SimpleHome”
    * local-jndi-name = “ejb/SimpleLocalHome”
    *dgp added
    * primkey-field = “id”
    * @ejb.persistence table-name = “tsimplebean”
    * @jboss.persistence table-name = “false”
    * @jboss.persistence remove-table = “false”
    * @jboss.persistence datasource = “java:/MyDS”
    * @jboss.persistence datasource-mapping = “Oracle9″
    * @ejb:util
    * generate=”physical”
    */
    //dgp added
    – System Setup ——————————-
    Operating System and version:
    Eclipse version: 3.0 625 build
    Eclipse build id:
    Fresh Eclipse install (y/n): y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
    MyEclipse version: 3.7.101
    Eclipse JDK version: j2sdk1.4.2_04
    Application Server JDK version: jboss 3.2.4
    Are there any exceptions in the Eclipse log file? no

    – Message Body ——————————-

    #210294 Reply

    Greg
    Member

    Diane,

    Could you post the errors that you are seeing when you deploy?

    Also, what are your package suffixes? If you are using the “Standard EJB” xdoclet configuration, it wants to see .ejb as the suffix for your source EJB files. View my post in this topic for more info on that:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-2591.html

    #210397 Reply

    Diane Powers
    Member

    I am using .ejb, so I am using the standard ejb xdoclet. I am creating the tutorial.

    I added two app servers sunone, and jboss. For JBoss, one of the properties it uses is datasourcemapping. The tutorial uses mysql. I want to use oracle. Ibelieve the value should be “Oracle9i”. I have looked at JBoss’s (standardjbosscmp-jdbc.xml).

    Sorry for the confusion. I am just starting with myeclipse. I look the potential it brings to deploying to many app servers.

    Do you have any advice on where I can look up the perameters needed for each app servers?

    Thanks,

    Diane Powers

    #210755 Reply

    Greg
    Member

    Diane,

    I would take a look at the documentation of the xdoclet tags on their site. http://xdoclet.sourceforge.net.

    One thing that I like to look at is the example xdoclet EJB files in their cvs. Here is a direct link:
    http://cvs.sourceforge.net/viewcvs.py/xdoclet/xdoclet/samples/src/java/test/ejb/

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Building Simple Entity Bean (what goes in Datasource-mapping

You must be logged in to post in the forum log in