EJB Availabilty example using Java web start

I thought it would be nice to add a simple GUI to the sample described in  my previous blog entry, so that we can make use of  java webstart for appclient.

The new sample ear file can be found here.

Source for the ear file is here

After  setting up the cluster .Pls use the following steps to run the appclient sample.

Login to Glassfish Application server Admin GUI

select 'Enterprise applications"

click on deploy on the right frame.

click on Browse and give the sample ear file location. pls make sure to select java-webstart,availability and target cluster

After deploy , click on SFSB - application name on the right frame.

General tab will  list out the modules , appclient and a ejb jar.

Click on the Launch link , this will list out the available links , choose any one of them and click on launch button.

Thats it!    You will see the sample's GUI 

Running the sample is similar to my previous blog entry

You can add an attribute and see in which instance the bean is created and the data is saved.

Bring down this instance using Appserver's admin GUI and try to add one more attribute.then click on show

this will show  both attributes.





Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Vivekanandh Sedhumadhavan

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today