[jboss-as7-dev] Locating JDBC drivers

David M. Lloyd david.lloyd at redhat.com
Fri Apr 15 10:51:52 EDT 2011


Deployments don't really have "types".  One deployment can provide many 
services, for example.

On 04/15/2011 09:38 AM, Heiko Braun wrote:
>
>
> what about deployment types?
>
> i.e. [localhost:9999 /]
> /deployment=mysql-connector-java-5.1.15.jar:read-resource
> {
> "outcome" => "success",
> "result" => {
> "name" => "mysql-connector-java-5.1.15.jar",
> "runtime-name" => "mysql-connector-java-5.1.15.jar",
> *"type" => "JDBC_DRIVER*
> "hash" => bytes {
> 0x47, 0x95, 0xcc, 0x29, 0x33, 0x8b, 0x50, 0x49,
> 0xe2, 0x38, 0x94, 0x12, 0x31, 0xb3, 0x6b, 0x39,
> 0x46, 0x95, 0x29, 0x91
> }
> },
> "compensating-operation" => undefined
> }
>
>
>
> On Apr 15, 2011, at 3:33 PM, Jason T. Greene wrote:
>
>> I think the best solution here is to have a management operation on a
>> runtime node that returns the "available" drivers.
>>
>> On 4/15/11 8:29 AM, John Bailey wrote:
>>> Currently there is no way. I think we will need update the
>>> deployment based drive install in some way to make that available.
>>> The problem with having the deployment add the drivers to the model
>>> is you then have multiple ways to manage it. You could undeploy to
>>> remove or you could use a model operation to remove. This should be
>>> ok as long as the deployment is smart enough to not update the model,
>>> on undeploy, if the driver was removed by a model op.
>>>
>>> Something we should think about from a architectural point of view is
>>> whether or not we want deployments updating the model in this way.
>>>
>>> John
>>>
>>> On Apr 15, 2011, at 8:14 AM, Heiko Braun<hbraun at redhat.com
>>> <mailto:hbraun at redhat.com>> wrote:
>>>
>>>>
>>>>
>>>> I managed to deploy JDBC drivers through the HTTP API. Creating
>>>> datasources works as well. The remaining question is:
>>>>
>>>> How to I locate the JDBC drives that are installed as a
>>>> deployment? They don't show up under
>>>> /subsystem=datasources/jdbc-driver=*
>>>>
>>>> In order to create the Datasource I need to provide a list of
>>>> available drives to the user.
>>>>
>>>>
>>>> Ike
>>>>
>>>>
>>>>
>>>> _______________________________________________ jboss-as7-dev
>>>> mailing list jboss-as7-dev at lists.jboss.org
>>>> <mailto:jboss-as7-dev at lists.jboss.org>
>>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>>
>>> _______________________________________________ jboss-as7-dev mailing
>>> list jboss-as7-dev at lists.jboss.org <mailto:jboss-as7-dev at lists.jboss.org>
>>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>>
>>
>> --
>> Jason T. Greene
>> JBoss, a division of Red Hat
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


-- 
- DML



More information about the jboss-as7-dev mailing list