Time for action – setting up the ESB runtime in JBDS

In order to be able to create and run JBoss ESB applications, JBDS must be configured to access a JBoss ESB runtime. We've already installed JBoss ESB on the JBoss AS server, so all we have to do now is to set the configuration in JBDS. Follow these steps:

  1. To set the runtime, select Window | Preferences | JBoss ESB Runtime and you'll see the following dialog:
    Time for action – setting up the ESB runtime in JBDS
  2. Click Add to define the ESB runtime and the following dialog is displayed. For Home Folder be sure to enter the directory of the JBoss AS server into which you previously deployed JBoss ESB. Also, remember to select the "all" server profile.

    Note

    Note that as of this writing, JBDS supported the configuration of JBoss ESB releases up to release 4.9. You can safely configure the 4.10 runtime to have a version of 4.9 in this dialog. By the time that this book is published, this dialog will support setting the version to 4.10.

    Time for action – setting up the ESB runtime in JBDS
  3. After you press Finish, you should see that the runtime you just defined is marked with a checkmark. This indicates that the runtime is active.
    Time for action – setting up the ESB runtime in JBDS

OK. After you have the runtime defined, it's time to start up the JBoss AS server. Note that if you still have a server running, such as the server that we started earlier in the book, you should stop it now.

Ordinarily, we would have to leave JBDS and open up a shell window to start a server. Remember how we said that the "I" in IDE stands for integrated? We'll run the server from inside JBDS. Follow these steps:

  1. Select Window | Show View | Other | Servers and you'll see the following dialog displayed:
    Time for action – setting up the ESB runtime in JBDS
  2. After you select OK, you'll see the following dialog. Where did the jboss-5.1.0.GA server come from? Remember how we defined this when we installed JBDS? That's where it came from.
    Time for action – setting up the ESB runtime in JBDS
  3. Now that we have a server defined, let's start it. Right-click on the server and you'll see the following dialog:
    Time for action – setting up the ESB runtime in JBDS
  4. Click Start, and you'll see the Console view open automatically. This view displays the server.log file for the server. JBDS knows which server profile to start because we selected the all profile when we defined the ESB run-time.
    Time for action – setting up the ESB runtime in JBDS

The server appears to be running, but let's make sure by going to its web console at http://localhost:8080. We'll use JBDS' internal browser:

  1. Select Window | Show View | General and you'll see the following dialog. Select Internal Web Browser.
    Time for action – setting up the ESB runtime in JBDS
  2. Enter http://localhost:8080 and you'll see the following window:
    Time for action – setting up the ESB runtime in JBDS

What just happened?

At this point, we have JBDS fully configured with the JBoss AS server and JBoss ESB. Also, we can control these without having to exit JBDS.

What's next? Let's run that quickstart from inside JBDS.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset