8 Replies Latest reply on Jan 8, 2002 10:13 PM by hleblanc

    where is a whole sample about CMP2.0 for jboss3?

    thisfellow

      where is a whole sample about CMP2.0 for jboss3,and besides,don't using the default hypeersonic sql.

      thank a lot.

        • 1. Re: where is a whole sample about CMP2.0 for jboss3?
          dsundstrom

          Examples are included with the "JBossCMP 2.0 Persistence Engine Documentation" see http://www.jboss.org/doco.jsp for more info.

          By "don't using the default hypeersonic sql" do you mean how do I change the default datasource? This is also covered in the docs, but I'll give you some pointers. Add your new datasource (see chapter 3 of the free docs), and then change and <type-mapping> elements under defaults in your jbosscmp-jdbc.xml file.

          • 2. Re: where is a whole sample about CMP2.0 for jboss3?
            thisfellow

            There are not a example about cmr,selectmethod,selectInEntity...

            • 3. Re: where is a whole sample about CMP2.0 for jboss3?
              dsundstrom

              Please, be more specific. What exactly are you looking for?

              • 4. Re: where is a whole sample about CMP2.0 for jboss3?
                thisfellow

                I believe that sapmples are included with the "JBossCMP 2.0 Persistence Engine Documentation" .
                but, i have not a international creditcard,so i can not purchase it.

                • 5. Re: where is a whole sample about CMP2.0 for jboss3?
                  giorgio42

                  To begin with I am using RH built from the sources directly from the CVS repository and ran the basic testsuite, and I looks really good.
                  Great work, guys!

                  But now I have run into the same problem: I cannot get access to the documentation (not having a credit card. If you show me a way how to buy the docs without a creditcard, you can start thinking about what to do with my 10 bucks).

                  And the flashline site is not even working right now!?

                  All I need is a working example of how to configure an Oracle datasource in JBoss3.0. (Maybe this should, at the very least, be available publicly from the JBoss website, because most professional developers in the Java/J2EE realm are using that anyway).

                  Have a heart. Please.

                  TIA for any help or pointers.

                  Georg

                  • 6. Re: where is a whole sample about CMP2.0 for jboss3?
                    davidjencks

                    Does the example in ch 3 of the online manual fail for you? If so, how? The main, $10 docs are for 2.4 only, AFAIK the only 3.0 docs are ch 3 of the free manual and the cmp2 docs from Dain and the cluster docs from Sacha and Bill.

                    • 7. Re: where is a whole sample about CMP2.0 for jboss3?
                      giorgio42

                      David,

                      thanks for setting me straight on which documentation is up-to-date and which is not. I assumed it just the other way round, because on the doco.jsp site it reads:

                      A free volunteer maintained manual was developed in the early stages of JBoss. A more complete and updated version is the for-pay documentation. This version is now somewhat out of date as it is not being as actively maintained.
                      (maybe marc is willing to change this to something less misleading).

                      Through experimenting and comparisons with the hsql-default-service.xml file I managed to find out a working configuration myself. It is almost identical with the example from the online manual, with the following differences:

                      - JBOSS-SYSTEM must be changed to jboss:service
                      - JCA must be changed to jboss.jca

                      and I have to set user name and password in the
                      ManagedConnectionFactoryProperties. If I set them in the PrincipalMappingProperties, I get a java.sql.Exception saying that setting username and password is not support with the thin driver (??).

                      I am using (local build from CVS sources, log with timestamps removed):

                      INFO JBoss (MX MicroKernel) 3.0.0alpha(200201051920) [RABBIT-HOLE]... on
                      INFO Java version: 1.3.0,Sun Microsystems Inc.
                      INFO [org.jboss.system.Info] Java VM: Java HotSpot(TM) Server VM 1.3.0,Sun Microsystems Inc.
                      INFO [org.jboss.system.Info] OS-System: SunOS 5.8,sparc

                      Now I am going to figure out, why my EBs always use the DefaultDS instead of the configured Oracle data source.There is a fresh post in one of the forums...

                      Georg

                      • 8. Re: where is a whole sample about CMP2.0 for jboss3?
                        hleblanc

                        You can get the CMP 2.0 specification from the sun website... that should tell you everything you need to know about relationships, queries, etc.