Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cyrille-leclerc/glassfish3-full-clickstack
https://github.com/cyrille-leclerc/glassfish3-full-clickstack
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cyrille-leclerc/glassfish3-full-clickstack
- Owner: cyrille-leclerc
- License: apache-2.0
- Created: 2013-07-19T11:03:27.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-07T15:37:29.000Z (over 11 years ago)
- Last Synced: 2024-11-09T07:53:47.657Z (2 months ago)
- Language: Java
- Size: 97.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GlassFish v3 Full ClickStack
# Step by Step tutorial to use GlassFish 3 Full Profile
## Create a Glassfish3 container
```
bees app:deploy -a my-glassfish3-app -t glassfish3-full path/to/my/app.war
```## Create a MySQL Database
```
bees db:create my-glassfish3-db
```## Bind the MySQL Database to the Glassfish container
```
bees app:bind -a my-glassfish3-app -db my-glassfish3-db -as mydb
```Supported JNDI names:
* `jdbc/mydb` : unqualified relative JNDI name is **OK**
* `java:comp/env/jdbc/mydb`: qualified private name is **OK**
*andjava:jdbc/mydb
: qualified relative names are **KO**java:/jdbc/mydb
*: qualified global name does **NOT work**java:global/env/jdbc/mydb
Samples:
```java
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("jdbc/mydb");
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/mydb");
```## Restart Glassfish
```
bees app:restart -a my-glassfish3-app
```# JMX-Invoker
See [RUN@cloud >> CloudBees JMX Invoker](https://developer.cloudbees.com/bin/view/RUN/CloudBees_JMX_Invoker)