You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by ivanrc <ir...@indra.es> on 2007/11/07 16:30:10 UTC

¿Can I Add Archive to Repository Libs with deploy command?

Hello,

I use apache geronimo 2.0.2 and I want to know if is possible add libs to
repository without use  "Add Archive to Repository" web form (in console,
services->Common Libs). For example using the deploy command.

I need a jdbc driver of SQL Server loaded in common libs as:

<dependency>
                <groupId>default</groupId>
                <artifactId>sql_server_driver</artifactId>
                <version>1.0</version>
                <type>jar</type>
</dependency>

I need this module or lib (I don´t know how exactly it is named). because I
need it to deploy a resource adapter that use this lib 

<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
    <dep:environment
xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
        <dep:moduleId>
            <dep:groupId>console.dbpool</dep:groupId>
            <dep:artifactId>plancPool</dep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>rar</dep:type>
        </dep:moduleId>
        <dep:dependencies>
            <dep:dependency>
                <dep:groupId>default</dep:groupId>
                <dep:artifactId>sql_server_driver</dep:artifactId>
                <dep:version>1.0</dep:version>
                <dep:type>jar</dep:type>
            </dep:dependency>
        </dep:dependencies>
    </dep:environment>
    <resourceadapter>
        <outbound-resourceadapter>
            <connection-definition>
               
<connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
                <connectiondefinition-instance>
                    <name>plancPool</name>
                    <config-property-setting
name="Password">sa_prueba_pln</config-property-setting>
                    <config-property-setting
name="Driver">com.microsoft.sqlserver.jdbc.SQLServerDriver</config-property-setting>
                    <config-property-setting
name="UserName">sa_prueba_pln</config-property-setting>
                    <config-property-setting
name="ConnectionURL">jdbc:sqlserver://173.25.1.176;user=sa_prueba_pln;password=sa_prueba_pln</config-property-setting>
                    <connectionmanager>
                        <local-transaction/>
                        <single-pool>
                            <max-size>10</max-size>
                            <min-size>0</min-size>
                            <match-one/>
                        </single-pool>
                    </connectionmanager>
                </connectiondefinition-instance>
            </connection-definition>
        </outbound-resourceadapter>
    </resourceadapter>
</connector>

Can you help me?, any examples?

thanks.
-- 
View this message in context: http://www.nabble.com/%C2%BFCan-I-Add-Archive-to-Repository-Libs-with-deploy-command--tf4765349s134.html#a13629151
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: ¿Can I Add Archive to Repository Libs with deploy command?

Posted by Vamsavardhana Reddy <c1...@gmail.com>.
I don't think there is a way to install a lib jar using the deployer.  It
may be a good idea to provide this as a deployer option.  I suggest the
following options:
1.  Package the jar as part of the rar file itself.  In this case, you will
not need to add any dependencies.
2.  Copy the jar file to <geronimo_dir>\var\shared\lib and add a dependency
on sharedlib.
       <dep:dependencies>
           <dep:dependency>
               <dep:groupId>org.apache.geronimo.configs</dep:groupId>
               <dep:artifactId>sharedlib</dep:artifactId>
               <dep:type>car</dep:type>
           </dep:dependency>
       </dep:dependencies>
3.  Copy the jar as
var/repository/default/sql_server_driver/1.0/sql_server_driver-1.0.jar.  In
this case you will not need to change the dependencies in the plan file you
posted.

++Vamsi


On Nov 7, 2007 9:00 PM, ivanrc <ir...@indra.es> wrote:

>
> Hello,
>
> I use apache geronimo 2.0.2 and I want to know if is possible add libs to
> repository without use  "Add Archive to Repository" web form (in console,
> services->Common Libs). For example using the deploy command.
>
> I need a jdbc driver of SQL Server loaded in common libs as:
>
> <dependency>
>                <groupId>default</groupId>
>                <artifactId>sql_server_driver</artifactId>
>                <version>1.0</version>
>                <type>jar</type>
> </dependency>
>
> I need this module or lib (I don´t know how exactly it is named). because
> I
> need it to deploy a resource adapter that use this lib
>
> <?xml version="1.0" encoding="UTF-8"?>
> <connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
>    <dep:environment
> xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
>        <dep:moduleId>
>            <dep:groupId>console.dbpool</dep:groupId>
>            <dep:artifactId>plancPool</dep:artifactId>
>            <dep:version>1.0</dep:version>
>            <dep:type>rar</dep:type>
>        </dep:moduleId>
>        <dep:dependencies>
>            <dep:dependency>
>                <dep:groupId>default</dep:groupId>
>                <dep:artifactId>sql_server_driver</dep:artifactId>
>                <dep:version>1.0</dep:version>
>                <dep:type>jar</dep:type>
>            </dep:dependency>
>        </dep:dependencies>
>    </dep:environment>
>    <resourceadapter>
>        <outbound-resourceadapter>
>            <connection-definition>
>
> <connectionfactory-interface>javax.sql.DataSource
> </connectionfactory-interface>
>                <connectiondefinition-instance>
>                    <name>plancPool</name>
>                    <config-property-setting
> name="Password">tururu</config-property-setting>
>                    <config-property-setting
> name="Driver">com.microsoft.sqlserver.jdbc.SQLServerDriver
> </config-property-setting>
>                    <config-property-setting
> name="UserName">sa_prueba_pln</config-property-setting>
>                    <config-property-setting
>
> name="ConnectionURL">jdbc:sqlserver://173.25.1.176;user=sa_prueba_pln;password=sa_prueba_pln</config-property-setting>
>                    <connectionmanager>
>                        <local-transaction/>
>                        <single-pool>
>                            <max-size>10</max-size>
>                            <min-size>0</min-size>
>                            <match-one/>
>                        </single-pool>
>                    </connectionmanager>
>                </connectiondefinition-instance>
>            </connection-definition>
>        </outbound-resourceadapter>
>    </resourceadapter>
> </connector>
>
> Can you help me?, any examples?
>
> thanks.
> --
> View this message in context:
> http://www.nabble.com/%C2%BFCan-I-Add-Archive-to-Repository-Libs-with-deploy-command--tf4765349s134.html#a13629151
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>