alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Glassfish example source code file (README)

This example Glassfish source code file (README) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Glassfish tags/keywords

a, bc, below, calculator, calculator, client, http, javaee, javaee, se, se, there, this, this

The Glassfish README source code

This test demonstrates usage of a composite application when JavaEE SE is 
consumer. There is a Calculator webservice with add operation that adds two 
numbers. This calculator service is deployed in appserver with jbi-enabled set
to false so that the service can not be called through JavaEE SE.

The webservice client is a servlet that sends an add request to the calculator
service. This servlet is deployed as part of a composite application.
A standalone Java client is used to invoke this servlet and execute this test.

ant all of this test does the following : 
 
task setup: 
  1. Calculator webservice is deployed in appserver and jbi-enabled flag is 
     set to false
  2. A service assembly is created and deployed that contains a JavaEE service 
     unit consuming calculator service and a HTTP BC service unit that provides
     calculator service.
task runtest: 
  Client invokes the test servlet which in calls the calculator 
  service. This call goes through JavaEE SE. Below is the runtime call flow-

TestClient --> Client(Servlet) --> JavaEE SE --> HTTP BC --> Calculator WS

task undeploy: 
  undeploys the calculator service from appserver and composite application 
  from from JBI

Other Glassfish examples (source code examples)

Here is a short list of links related to this Glassfish README source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.