Post Subject : Tutorial on JBossIDE EJB3.0 Tools Ref. 1 : JBoss IDE TrailBlazer : Hike 1 - EJB 3.0 Tools http://trailblazer.demo.jboss.com/IDETrail/
Ref. 2 : JBoss EJB 3.0 TrailBlazer : Hike 1 - Getting Started; 2. Install a JBoss EJB 3.0 Server http://trailblazer.demo.jboss.com/EJB3Trail/background/install/index.html Ref. 3 : JBoss User's Forum : JBoss Eclipse IDE (users) http://www.jboss.org/index.html?module=bb&op=viewforum&f=201 Ref. 4 : JBoss User's Forum : EJB 3.0 http://www.jboss.org/index.html?module=bb&op=viewforum&f=221 === Environment; - Windows XP SP2 - JDK 1.5.0_05 - JBoss AS 4.0.3SP1 - JBoss IDE1.5RC1 + Eclipse 3.1.1 This is a summary of some notes on Ref. 1 (Task 1 - 5 below) Followings cover Task 1 - 4 only. (Task 5 will be covered by a next post) Task 1: Download and install JDK 1.5 Task 2: Install JBoss AS 4.0.3SP1 using the installer (Ref. 2) Task 3: Download and install JBoss IDE1.5RC1 and Eclipse3.1.1 Task 4: Configure Eclipse and JBossIDE to control JBoss AS Task 5: Carry out a tutorial (Ref. 1) Note : For more details on download/installation of JDK, JBoss AS, Eclipse and JBossIDE, see the related sites / docs / references. Also, for the trailblazer, a comment by Mr Bill Burke (Oct.24.2005, a thread below) should be referred and considered. "EJB3 Tutorial Problem with Servlet" http://www.jboss.org/index.html?module=bb&op=viewtopic&t=71379 Task 1: Download and install JDK 1.5 - download JDK 1.5 --> jdk-1_5_0_05-windows-i586-p.exe http://java.sun.com/j2se/1.5.0/download.jsp - install into "C:\jdk1.5.0_05" (for JRE, "Custom Setup" is in "C:\jre1.5.0_05") - edit the Windows environment variables to configure JDK. = in the User's Env. Var. CLASSPATH .;C:\jdk1.5.0_05\lib\tools.jar | JAVA_HOME C:\jdk1.5.0_05 = in the System Env. Var. Path (add following item) | ;C:\jdk1.5.0_05\bin - test JDK using "java -version" in a command prompt window. = The result is; java version "1.5.0_05" | Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05) | Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing) Task 2: Install JBoss AS 4.0.3SP1 using the installer *- see Ref. 2 for the step-by-step procedures *- Ref. 2 can be reached with following way as well; *= go to http://trailblazer.demo.jboss.com/EJB3Trail/ > 1.Getting Started > 2.Install a JBoss EJB 3.0 Server *= click the "Watch the installer in action" button under "Use the JBoss AS Installer". - go to http://www.jboss.com/products/jbossas/downloads - click "Run Installer" of "4.0.3SP1" = the installation path is changed to "C:\jboss-4.0.3SP1" = select "all" configuration = set the Configuration Name to "all" = put checks for "Secure jmx-console.war" and "Secure web-console.war" - on completion of the installation, add/modify the Windows environment variables to configure JBoss AS =In the User's Env. Var. CATALINA_HOME C:\jboss-4.0.3SP1 | JBOSS_HOME C:\jboss-4.0.3SP1 =In the System Env. Var. Path (add following item) | ;C:\jboss-4.0.3SP1\bin - test JBoss AS = open a command prompt window = type "run.bat -c all" to start JBoss AS = confirm no error message during startup and following line at the end. ... INFO [org.jboss.system.server.Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231751)] Started in ... = "Ctl+c" to stop JBoss AS Task 3: Download and install JBossIDE1.5RC1 and Eclipse3.1.1 - go to http://www.jboss.com/products/jbosside/downloads - click "Download" button of "JBoss Eclipse IDE Tools 1.5RC1" - unzip it under "C:\" --> "C:\eclipse" as a result - start "eclipse.exe" to test Task 4: Configure Eclipse and JBossIDE to control JBoss AS - Start Eclipse3.1.1 = go to the main menu bar "Window > Show View > Other... > JBoss-IDE" = select "Server Navigator", then click "OK". A new tag named "Server Navigator" is added in the work bench. = in "Server Navigator" view, right-click mouse button, click "Configuration..." to open "Debug" view. = double-click "JBoss 4.0.x" to enter values for " Create, manage and run configurations" as below; *Name --> JBoss4.0.3SP1 | *JBoss 4.0.x Home Directory --> C:\jboss-4.0.3SP1 | *Server Configuration --> all = click "Apply", then "Close" - start JBoss AS in the Eclipse to test the configuration = click "Start" button in the menu icons at top-right of "Server Navigator" view (or right-click mouse button inside the "Server Navigator" view to show a pop-up menu, then click "Start") = confirm no error message during startup and following line at the end. ...INFO [Server] JBoss (MX MicroKernel) [4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1 date=200510231751)] Started in ... - keep JBoss AS running... - check the database, tables and records in order to confirm the configuration = go to http://localhost:8080/jmx-console/ Note: input "admin" as the user name and the password, if requested, in order to access JMX-Console and Web-Console. Ref. "THe JBoss 4 Application Server Guide", Section 2.3.1.1 Securing the JMX Console http://www.jboss.org/jbossas/jboss4guide/r2/html/ch2.chapter.html#d0e4085 The "jmx-console-users.properties" file is in "..\server\all\conf\props" = click "database=localDB,service=Hypersonic" under "jboss" = click "Invoke" button of "void startDatabaseManager()" under "List of MBean operations" = "HSQL Database Manager" start. = type "select * from JMS_USERS" in SQL editor window and click "Execute SQL" button in the menu bar. = the results are; USERID PASSWD CLIENTID | ----------------------------- | dynsub dynsub [null] | guest guest [null] | j2ee j2ee [null] | : = note that there are no records/data in the "ARTICLES" and "AUTHORS" tables at this stage. - to stop JBoss AS, click "Shutdown" bottun in the menu icons at top-right of "Server Navigator" view (or right-click mouse button inside the "Server Navigator" view to show a pop-up menu, then click "Shutdown") jbosszone View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3905648#3905648 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3905648 ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user