1 2 Previous Next 16 Replies Latest reply on Sep 14, 2003 7:16 PM by brian.harkness

    I just want to get started

    jonathansinclair

      I am new to the JBoss tool set. I am an experienced 'pure' java programer, however have little knowledge of EJB's and jBoss middleware environment etc. I am trying to get some developement done to compare JBoss's abilities to that of another MiddleWare product i currently use. The quick start guide has proved more than problematic and I cant get xdoclet to compile properly. The 'new' tutorial link 'http://sammaher.com/jboss/' appears to be down. Can anyone give me some help in getting a simple example working. Or point me somewhere that could help me? thanks!

        • 1. Re: I just want to get started

          Just pick any EJB book and create your archive and drop it into the deploy directory of JBoss. This will work as is. RMH 3rd edition comes with a JBoss specific workbook.

          • 2. Further inquiries
            jonathansinclair

            Is jBoss a purly EJB based system? I want to creat a business transaction that will take the data from one system process it, convert it and then output it into another system. Is this possible in Jboss. Is this possible with EJB's?

            • 3. Re: Further inquiries

              > Is jBoss a purly EJB based system?

              No, it's a generic Java middleware platform.

              > I want to creat a
              > business transaction that will take the data from one
              > system process it, convert it and then output it into
              > another system. Is this possible in Jboss.

              Yes. Don't have to even use EJBs to do it if you don't want to....

              > Is this possible with EJB's?

              ... or if you do then stateless session is your best bet to go here.



              • 4. Re: I just want to get started
                jonathansinclair

                > I want to create a
                > business transaction that will take the data from one
                > system process it, convert it and then output it into
                > another system. Is this possible in Jboss.

                Yes. !!!

                Any pointers on how I can do this? Web-links? Tutorials? Examples?

                I am coming from another middleware environment and trying to make the jump into jBoss is proving hard work at the moment!

                • 5. Re: I just want to get started

                  A good J2EE tutorial should get you started. I'm not sure about your exact requirements; reading - processing - inserting is a bit vague.

                  • 6. Re: I just want to get started
                    jonathansinclair

                    Further explanation.
                    I want to read in a file from an SAP system IDOC format map some of the fields from the IDOC into an XML format and then output this data to an Oracle system.
                    Can i still just use a J2EE example for this? Involving beans?

                    • 7. Re: I just want to get started

                      Easiest way is if you find a JCA (Java Connector Architecture) adapter for SAP (so you get direct security and transaction support at the J2EE level) to read the data, transform it and then either do JDBC directly to your Oracle DB with the insert, or if you plan on modifying the data later, write an entity bean that maps to Oracle.

                      So you do the application logic in a stateless session, set the transaction attribute in an XML descriptor for the session and you're done. Both the JCA adaptor and the entity will enroll into the same tx, no programming required.

                      If you don't have a JCA adaptor you need to find another way to connect to SAP (sockets?) and manage the transactions yourself in the code. You can still do this from a session bean (although strictly speaking the EJB spec prohibits I/O from within session bean implementation).

                      HTH

                      • 8. Re: I just want to get started
                        jonathansinclair

                        Thanks for your help. You have given me a good starting point. I am now feeling better about my leap into the jBoss world!

                        • 9. Re: I just want to get started
                          boniface

                          Try this link too

                          It's good for getting started

                          http://www.roseindia.net/jboss/

                          • 10. Re: I just want to get started
                            magamaga

                            Thanks Boniface

                            THIS TUTORIAL WORKS IN REAL WORLD !!!!!

                            My Setup:
                            win2k
                            ant1.5.2
                            jdk1.4.1_02
                            jboss-3.2.2RC1_tomcat-4.1.24

                            Try it folks !!!

                            • 11. Re: I just want to get started
                              74greg

                              I agree, this tutorial is excellent for a JBoss newbie.

                              I didn't have any trouble with the first example ("10 minutes guide to Ant")

                              I'm now working on the 2nd tutorial ("building web application with Ant and deploying on JBoss 3") to learn servlets and JSP on JBoss;
                              it's almost working, but i still have this pb when I run the example2:


                              After typping:
                              C:\anttest\example2>ant

                              I've got this message:

                              Buildfile: build.xml

                              init:

                              build:
                              [javac] Compiling 1 source file to C:\anttest\example2\build\src
                              [javac] C:\anttest\example2\src\HelloWorld.java:9: package javax.servlet does not exist


                              ---------------------------------------------
                              My Setup:
                              winNT
                              ant1.5.4
                              j2sdk1.4.2
                              jboss-3.2.1_tomcat-4.1.24
                              ---------------------------------------------

                              I'm sure it's a stupid question with a simple solution, but If anybody can helps me...

                              • 12. Re: I just want to get started
                                badboy

                                I think you did not put HelloWorld.java in folder /src/javax/servlet
                                and HelloWorld.java have a package
                                you may move package line or put this file in current folder.

                                • 13. Re: I just want to get started
                                  74greg

                                  Thanks BadBoy.
                                  Actually I've found the pb.
                                  I knew it has something to do with classpath declaration.

                                  I just add this line to my classpath:
                                  D:\j2sdkee1.3.1\lib\j2ee.jar


                                  I didn't know the javax was in j2ee.

                                  • 14. Re: I just want to get started
                                    cluelesssi

                                    I got the second example to build but when I put the EAR file in my JBoss deploy dir, I can see the jsp page but the servlet returns an error.

                                    -----------
                                    message /example2/servlet/HelloWorld

                                    description The requested resource (/example2/servlet/HelloWorld) is not available.
                                    --------------


                                    Also a non-related problem is http://localhost:8080/ does not give me a management page.
                                    Can any help?

                                    1 2 Previous Next