Barbara Pruijn commented on GEODE-3875:

For the tab auto-complete part to display the options, only one option gets 
displayed (it seems the next one in the option list):
gfsh>create jndi-binding --connection-url=hsqldb:hsql://localhost:1701

required --connection-url: This is the JDBC driver connection URL string, for 
example, jdbc:hsqldb:hsql://localhost:1701.; no default value
gfsh>create jndi-binding --connection-url=hsqldb:hsql://localhost:1701 
While other commands (create region, start locator) show all options available:
gfsh>start server --name=sse --
--J                                  --assign-buckets                     
--bind-address                       --cache-xml-file
--classpath                          --critical-heap-percentage           
--critical-off-heap-percentage       --dir
--disable-default-server             --disable-exit-when-out-of-memory    
--enable-time-statistics             --eviction-heap-percentage
--eviction-off-heap-percentage       --force                              
--group                              --groups
--hostname-for-clients               --http-service-bind-address          
--http-service-port                  --include-system-classpath
--initial-heap                       --jmx-manager-hostname-for-clients   
--locator-wait-time                  --locators
--lock-memory                        --log-level                          
--max-connections                    --max-heap
--max-message-count                  --max-threads                        
--mcast-address                      --mcast-port
--memcached-bind-address             --memcached-port                     
--memcached-protocol                 --message-time-to-live
--off-heap-memory-size               --password                           
--properties-file                    --rebalance
--redirect-output                    --redis-bind-address                 
--redis-password                     --redis-port
--security-properties-file           --server-bind-address                
--server-port                        --socket-buffer-size
--spring-xml-location                --start-rest-api                     
--statistic-archive-file             --use-cluster-configuration
Please update this command to list all option when hitting tab auto-complete.

> gfsh command to create jndi binding
> -----------------------------------
>                 Key: GEODE-3875
>                 URL: https://issues.apache.org/jira/browse/GEODE-3875
>             Project: Geode
>          Issue Type: Sub-task
>          Components: docs, gfsh
>            Reporter: Swapnil Bawaskar
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 4h
>  Remaining Estimate: 0h
> In cache.xml user can specify jndi binding like so:
> {code:java}
>   <jndi-bindings>
>       <jndi-binding jndi-name="DemoDatasource" type="SimpleDataSource"
>           jdbc-driver-class="org.postgresql.Driver" user-name="gpadmin"
>           password="changeme" 
> connection-url="jdbc:postgresql://localhost:5432/gemfire_db">
>       </jndi-binding>
>   </jndi-bindings>
> {code}
> A user should be able to create a datasource using the gfsh command {{create 
> jndi-binding <options>}}
>  Then a datasource will be created with the supplied options and the binding 
> will be created without the user having to restart the existing server(s)
> Please look at Geode's schema for a list of attributes that can be set: 
> [https://github.com/apache/geode-site/blob/master/website/content/schema/cache/cache-1.0.xsd#L1331]

This message was sent by Atlassian JIRA

Reply via email to