[ 
https://issues.apache.org/jira/browse/GEODE-3875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16376220#comment-16376220
 ] 

Sai Boorlagadda commented on GEODE-3875:
----------------------------------------

It is fixed now to show all available options on tab, but the current framework 
shows all available options once user provides all mandatory ones. So at the 
beginning, it shows all mandatory to be provided by the user:
{code:java}
gfsh>create jndi-binding --
create jndi-binding --connection-url create jndi-binding --jdbc-driver-class 
create jndi-binding --name create jndi-binding --type{code}
Once user provides all mandatory ones then the tab shows all available ones:
{code:java}
gfsh>create jndi-binding --connection-url=url1 --jdbc-driver-class=driver1 
--name=name1 --type=SIMPLE --
--blocking-timeout-seconds --conn-pooled-datasource-class 
--datasource-config-properties --idle-timeout-seconds 
--if-not-exists --init-pool-size --login-timeout-seconds 
--managed-conn-factory-class --max-pool-size --password 
--transaction-type --username --xa-datasource-class{code}

> 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 10m
>  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
(v7.6.3#76005)

Reply via email to