Index Changes

Difference between version and version     

Back to Creating And Deploying A Composite Application To Complete A Data Mashup Project, or Creating And Deploying A Composite Application To Complete A Data Mashup Project Info


At line 1 changed 4 lines.
!!! Creating and Deploying a Composite Application to Complete a Data Mashup Project
Before a Data Mashup project can be opened and used in browser, it must be added to a composite application project. You use the composite application project to assemble a deployment unit, which includes the Data Mashup project, for the Java Business Integration (JBI) server. It is only after a successful deployment of the composite application project that you can open and run your Data Mashup project as a web service in a browser.
! Additional Data Mashup Links
To see all the Data Mashup links, return to introduction of [Using the Sun Data Mashup Engine|UsingTheSunDataMashupEngine].\\
!!Using the Enterprise Data Mashup Service Engine\\
\\
__Contents__
* [Using the Enterprise Data Mashup Service Engine|UsingTheSunDataMashupEngine]
* [Enterprise Data Mashup Service Engine Overview|SunDataMashupEngineOverview]
* [Starting the GlassFish Server and Data Mashup Service Engine|ConfiguringAndStartingTheSunGlassFishEnterpriseServer]
* [Designing Data Mashup Projects|DesigningDataMashupProjects]
* [Configuring Data Mashup Projects Using Joins|ConfiguringDataMashupProjectsUsingJoins]
* __Creating and Deploying a Composite Application for a Data Mashup Project__
* [Testing the Deployment of a Composite Application|TestingTheDeploymentOfAJBICompositeApplication]
* [Configuring and Viewing the Data|ViewingTheData]
* [Data Mashup Service Engine Application Configurations|SunDataMashupEngineApplicationConfiguration]
* [Data Mashup Service Engine REST Support|SunDataMashupEngineRESTSupport]
* [Known Data Mashup Issues|KnownDataMashupIssues]\\
\\
At line 6 removed 29 lines.
!! To Create and Deploy a Composite Application
! Before You Begin
Before you can create and deploy a composite application, you must have created a Data Mashup project, set the join conditions, the NetBeans IDE must be running, and you must be connected to the virtual database. For information on how to perform these tasks, see [Designing Data Mashup Projects|DesigningDataMashupProjects] and [Configuring Data Mashup Projects Using Joins|ConfiguringDataMashupProjectsUsingJoins].\\__Note – __ To move forward or backward in the procedure, click Next or Back.\\
# Create a composite application.
## In the NetBeans IDE tool bar select File->New Project.
## In the New Project window, select SOA from Categories and Composite Application from Projects, and then click Next.\\__Note – __ This step creates an empty Composite Application project that may have multiple BPEL modules and Java Business Integration (JBI) modules. SOA may already be selected.
# Name the composite application project and set the location for it in the New Composite Application Project window, and then click Finish.
In the example, use the defaults: {{CompositeApp1}} (project name) and {{C:\Documents and Settings\<username>\My Documents\NetBeansProjects}} (project location).\\__Note – __ If you do not want this project to be set as a main project make sure you deselect the Set as Main Project check box.
The following happens:\\* A Composite Application project is created under the Projects tab in the NetBeans IDE\\* A Composite Application Service Assembly (CASA) editor opens up in the NetBeans IDE\\You are now ready to add a Data Mashup application to the JBI modules of the composite application.
# Under the Projects tab in the NetBeans IDE, to add the Data Mashup project and its JAR files to the composite application do one of the following.\\* Right-click the deployment JBI node, in the example, {{CompositeApp1}}, and select Add JBI Module.\\* Right-click JBI Modules and select Add JBI Module.\\Either action opens the Select Project window.
# In the Select Project window, highlight the Data Mashup application in the list and click Add Project JAR Files.
In the example, {{demoDMProject}}. This builds the service engine deployment JAR file. If you do not see the Data Mashup project in the left pane of the window, navigate to the directory that contains it. The Data Mashup application, in the example, {{(EDM)DemoDMProject}}, is added to the CASA Editor palette as a JBI module in the composite application.
# In the CASA Editor, right-click in the WSDL Ports pane and select Add WSDL Port.
The Select WSDL Port window appears, listing all the available WSDL ports.
# In the Select WSDL Port window, select http and click OK.
An HTTP port, which is named {{casaPort1}}, appears in the WSDL Ports pane.\\__Note – __ Data Mashup only supports the http and the soap WSDLs.\\If you want to use the procedure to test the deployment of your composite application, when creating the WSDL port you must use the soap WSDL binding and not the http WSDL binding. You can add the HTTP and SOAP ports to the WSDL Ports pane.
# Repeat steps 6 and 7 to add the soap WSDL.\\A SOAP port, which is named {{casaPort2}}, appears in the WSDL Ports pane.
# Click the hammer button on the CASA Editor to build the composition application.\\Check your output in the bottom pane to ensure that the composite application built successfully.\\__Note – __ If the build fails, do the following:\\
## In the Projects pane, expand the composite application project, if not already expanded, and select the {{*.wsdl}} under Process File.
## In the CASA Editor, select the Source tab.
## Scroll down until you see\\<http:address location="http://localhost:${HttpDefaultPort}/casaservice1/casaPort1"/>
## Change {{casaPort1}} to another port number, such as {{casaPort6}}.
## Build the composite application again.
# Connect the purple HTTP and SOAP consumer endpoints in the WSDL Ports pane to the green {{(EDM)DemoDMProject}} endpoint by dragging them.\\__Note – __ This step is exactly the same if you are connecting the purple SOAP consumer endpoint in the WSDL Ports pane to the green {{(EDM)DemoDMProject}} endpoint.
# Build the composition application a second time.
# Right-click on the composite application project and deploy it.
In this example, you deployed {{CompositeApp1}}. You should see a message in the Output pane that tells you that the build was successful.
! Next Steps
If you used the soap WSDL binding, you can test the deployment of your composite application. See [Testing the Deployment of a JBI Composite Application|TestingTheDeploymentOfAJBICompositeApplication].
At line 36 changed 8 lines.
! Additional Links
* [Sun Data Mashup Engine Overview|SunDataMashupEngineOverview]
* [Configuring and Starting the Sun GlassFish Enterprise Server|ConfiguringAndStartingTheSunGlassFishEnterpriseServer]
* [Designing Data Mashup Projects|DesigningDataMashupProjects]
* [Configuring Data Mashup Projects Using Joins|Configuring DataMashupProjectsUsingJoins]
* [Testing the Deployment of a JBI Composite Application|TestingTheDeploymentOfAJBICompositeApplication]
* [Viewing the Data|ViewingTheData]
* [Known Data Mashup Issues|KnownDataMashupIssues]
!!!Creating and Deploying a Composite Application for a Data Mashup Project
At line 45 changed 1 line.
[Previous|ConfiguringDataMashupProjectsUsingJoins] [Next|TestingTheDeploymentOfAJBICompositeApplication]
Before a Data Mashup project can be opened and used in a browser, it must be added to a composite application (CA) project. You use the composite application project to assemble a deployment unit, which includes the Data Mashup project, for the Java Business Integration (JBI) server. A composite application project can have multiple BPEL modules and Java Business Integration (JBI) modules.
It is only after a successful deployment of the composite application project that you can open and run your Data Mashup project as a web service in a browser, allowing you to view your data on the web.
Perform the following steps to create and deploy the Data Mashup composite application:
* [To Create the Composite Application|CreatingAndDeployingACompositeApplicationToCompleteADataMashupProject#ToCreateTheCompositeApplication]\\
* [To Add the Data Mashup Application to the Composite Application|CreatingAndDeployingACompositeApplicationToCompleteADataMashupProject#ToAddTheDataMashupApplicationToTheCompositeApplication]\\
* [To Build and Deploy the Composite Application|CreatingAndDeployingACompositeApplicationToCompleteADataMashupProject#ToBuildAndDeployTheCompositeApplication]\\
\\
\\
!To Create the Composite Application\\
__Before You Begin__\
Before you can create and deploy a composite application, you must have created a Data Mashup project, set the join conditions, the NetBeans IDE must be running, and you must be connected to the virtual database. For information on how to perform these tasks, see [Designing Data Mashup Projects and Configuring Data Mashup Projects Using Joins|ConfiguringDataMashupProjectsUsingJoins].
# In the NetBeans IDE tool bar select File→New Project.\\
The New Composite Application window appears.
# In the Choose Project window, select SOA under Categories and select Composite Application under Projects.
# Click Next.\\
The Name and Location window appears.
# Enter a name for the project and enter the location for the project files.\\__Note -__ If you do not want this project to be set as a main project, deselect the Set as Main Project check box.\\
# Click Finish.\\
The following happens:
** An empty composite application project is created on the Projects page.\\
** The Composite Application Service Assembly (CASA) editor opens up in the NetBeans IDE.\\
You are now ready to add a Data Mashup application to the JBI modules of the composite application.
\\
\\
!To Add the Data Mashup Application to the Composite Application
This step adds the Data Mashup project and its JAR files to the composite application.
# On the Projects window, expand the Composite Application Tree, right-click JBI Modules, and select Add JBI Module.
# In the Select Project window, select the Data Mashup application in the list ({{demoDMProject}} for this exercise), and click Add Project JAR Files.\\
This adds the Data Mashup application to the CASA Editor canvas as a JBI module and builds the service engine deployment JAR file.\\__Tip -__ If you do not see the Data Mashup project in the left pane of the window, navigate to the directory that contains it. \\
# In the CASA Editor, right-click in the WSDL Ports area and select Add WSDL Port.\\
The Select WSDL Port window appears, listing all the available WSDL ports.
# In the Select WSDL Port window, select {{http}} and {{soap}} and then click OK.\\
An HTTP port named {{casaPort1}} and a SOAP port named {{casaPort2}} appear in the WSDL Ports area of the canvas.\\__Note -__ Data Mashup only supports the {{HTTP}} and the {{SOAP}} WSDL bindings. If you want to use the procedure to test the deployment of your composite application, when creating the WSDL port you must use the {{SOAP}} WSDL binding and not the {{HTTP}} WSDL binding.\\
# Click Save All.
# In the Projects window, right-click the composite application and click Build.
Check the output in the bottom panel to ensure that the composite application built successfully.\\__Note -__ If the build fails, do the following:\\
## In the Projects window, expand the composite application project, and select the WSDL file under Process Files.\\
## In the CASA Editor, select the Source tab.\\
## Scroll down until you see {{<http:address location="http://localhost:${HttpDefaultPort}/casaservice1/casaPort1"/>}}
## Change {{casaPort1}} to another port number, such as {{casaPort6}}.\\
## Build the composite application again.\\
# On the CASA Editor, drag the purple HTTP and SOAP consumer endpoints in the WSDL Ports pane to the green endpoint for the Data Mashup project.
# Click Save All.\\
You are now ready to build and deploy the composite application.
\\
\\
!To Build and Deploy the Composite Application
# In the Projects window, right–click the composite application and click Build.\\
A message appears in the Output panel letting you know whether the build was successful.
# After the build process completes successfully, right-click the composite application and click Deploy.\\
A message appears in the Output panel letting you know whether the deployment was successful.
__Note -__ If the application server was not already started before beginning the deploy process, NetBeans automatically starts the server for you.\\
\\
__Next Steps__\\
If you used the {{SOAP}} WSDL binding, you can test the deployment of your composite application. For more information, see [Testing the Deployment of a Composite Application|TestingTheDeploymentOfAJBICompositeApplication].\\
\\
[Previous|ConfiguringDataMashupProjectsUsingJoins] [Next|TestingTheDeploymentOfAJBICompositeApplication]
------
[Return to GlassFish ESB Documentation Home|GlassFishESBDocs]

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-38) was last changed on 16-Jun-09 16:09 PM, -0700 by CarolT