Samples Gallery
To access samples from Windows desktop...
Start | Programs | IBM WebSphere | Application Server v7.0 | Profiles | profile_name | Samples Gallery
To run the samples from a Web browser...
http://localhost:9082/WSsamples
Plants by WebSphere application
Online store that demonstrates several Java EE functions.
http://myhost.com:9082/PlantsByWebSphere/
Technology samples
Demonstrate various core components in Java EE applications.
To install...
- Install latest fixpack.
- Stop appservers: server1, nodeagent, dmgr
- Install sample...
cd WAS_HOME/samples/bin
./install.bat -samples TechSamp- Restart WAS.
- Synchronize nodes
If we get error...
Failed to extract binaries to temporary location...when trying to start an app, open up directory/file permissions.
Web Services samples
Demonstrates...
- JAX-RPC
- Java API for XML Web Services (JAX-WS)
- Java EE beans and Java Beans
- WS-Addressing (WS-A)
- WS-Reliable Messaging (WS-RM)
- WS-Secure Conversation (WS-SC)
- SOAP Message Transmission Optimization Mechanism (MTOM)
To install...
- Stop WAS.
- Install sample...
cd WAS_HOME/samples/bin
./install.bat -samples WebServicesSamples- Restart WAS.
- Synchronize nodes
Service Data Objects sample
Demonstrates data access to a relational database through Service Data Objects (SDO) and JDBC Mediator technologies.
To install...
- Stop WAS.
- Install sample...
cd WAS_HOME/samples/bin
./install.bat -samples AlbumCatalog- Restart WAS.
- Synchronize nodes
Programming model extensions samples
Demonstrates...
- dynamic query service
- work area service
- internationalization service
- ActivitySessions service
- application profiling
- JTA extensions
- asynchronous beans
- scheduler
To install...
- Stop WAS.
- Install samples...
cd WAS_HOME/samples/bin
./install.bat -samples DynamicQuery
./install.bat -samples WorkArea
./install.bat -samples i18nctx
./install.bat -samples activitysessions
./install.bat -samples AppProfile
./install.bat -samples JTAExtensionsSamples
./install.bat -samples AsynchBeans
./install.bat -samples Scheduler- Restart WAS.
- Synchronize nodes
Apps...
BeenThere workload management sample
Demonstrates workload management and clustering capabilities.
The BeenThere workload management Sample is the only Sample that is supported in a multi-server, clustered environment. See...
WAS_HOME/samples/readme_BeenThere.html
Install the Samples Gallery
To view WAS Samples Gallery...
- Install WAS ND, specifying the "Install the sample applications" option.
By default, only the Samples Gallery and Plants by WebSphere applications are installed to an appserver.
Sample code is deposited in...
APP_ROOT/samplesInstallable samples are in..
APP_ROOT/samples/libIf we selected to install the sample applications when defining a profile, the Samples are installed in...
$WP_PROFILE/installedApps/cell_nameThe Sample source code is placed in...
$WP_PROFILE/samples/src- To run the Samples in a distributed ND environment...
- Install the Samples in a stand-alone appserver profile installation
- Add the stand-alone appserver profile as a managed node of the dmgr cell.
See...
For addNode...
addNode.sh dmgr_hostname -includeapps -includebuses- Start the appserver.
- Verify the Samples Gallery application is running.
- Use the admin console, click...
Applications | Application Types | WebSphere enterprise apps
...and look for green arrows.
- Use wsadmin with AdminControl completeObjectName.
- Access the Samples Gallery.
Troubleshooting
To troubleshoot, verify...
- The appserver is running.
- The samples are installed...
Applications | Application Types | WebSphere enterprise apps
Confirm that the Samples Gallery is listed as an installed application.
- The WC_defaulthost port number.
Servers | Server Types | WebSphere application servers | appserver | Ports
Related tasks
WebSphere developerWorks
Tutorials
Install enterprise application files