Vinodh,

 

You can have the aar files inside the war file. The war file doesn't
need to have all the web service implementation classes. We are having
just the services.xml file alone in the aar file pointing to all the
implementation classes under WEB-INF. 

 

Regards,

Krishna

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 22, 2007 8:30 PM
To: [email protected]
Subject: RE: [Axis2] How to use Axis library in a war file

 

Hi john,

 

Thanks for mail. I m not comfortable with maven. I have not tried it
out. I wil try it out and if I see any issues will let you know.

 

Thanks for the help.

 

_________________________________________________

Thanks & Regards,

Vinodh

 

 

________________________________

From: John Pfeifer [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 22, 2007 7:30 PM
To: [email protected]; [email protected]
Subject: RE: [Axis2] How to use Axis library in a war file

Vinodh,

We use maven to copy the aar file into the WEB/services directory of the
webapp.  If you build your aar file first using maven, then build your
war, you can use the following pom.xml snippet to copy your aar into
your WAR.  It would be really nice if the Axis2 WAR distribution was
deployed to the ibiblio maven repository as this would make it much
easier to use and extend the default Axis2 WAR distribution. 

AAR files that are included in the WEB-INF/services directory are
deployed on startup of the webapp.


    <build>^M
        <plugins>^M
            <plugin>^M
                <groupId>org.codehaus.mojo</groupId>^M
                <artifactId>dependency-maven-plugin</artifactId>^M
                <executions>^M
                    <execution>^M
                        <id>copy</id>^M
                        <!-- run at compile time since tests may not be
run and it's too late at package time -->^M
                        <phase>compile</phase>^M
                        <goals>^M
                            <goal>copy</goal>^M
                        </goals>^M
                        <configuration>^M
                            <artifactItems>^M
                                <!-- LIST ALL AAR Dependencies that you
want to be packaged with the webservicecontainer -->^M
                                <artifactItem>^M
                                    <groupId>com.foo</groupId>^M
                                    <artifactId>foo</artifactId>^M
                                    <type>jar</type>^M
 
<outputDirectory>${project.build.directory}/${project.build.finalName}/W
EB-INF/services</outputDirectory>^M
 
<destFileName>foo-${version}.aar</destFileName>^M
                                </artifactItem>^M
                            </artifactItems>^M
                        </configuration>^M
                    </execution>^M
                </executions>^M
            </plugin>^M
        </plugins>^M
    </build>^M

JP4


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thu 3/22/2007 10:01 AM
To: [email protected]
Subject: [Axis2] How to use Axis library in a war file



Hi,

I have basic question here, I m not sure whether it is addressed in the
forum before.

I have webapplication written, and I want to expose the business logic
of the web application  as service, to serve other stand alone clients.

I have used AXIS to expose service, so now I have two file.

1. WebArchive file(war)
2.AxisArchive file (aar)

We have business logic packaged as two file, .war file for web
client(browsers) and .aar file for stand alone client.

Logically I should have just one file which should serve all clients. Is
there any means by which I can use Axis as library in .war file.

Is it possible to bundle the .aar file in the war file?????

Any pointers to the examples or documents for the same would be of great
help.



_________________________________________________
Thanks & Regards,
Vinodh




The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com


The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email.

www.wipro.com
        


DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Reply via email to