[Mashup-user] Question regarding dynamically accessing classes within jars...

Tyrell Perera tyrell at wso2.com
Mon Feb 18 10:13:28 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Chad,

Axis2 (At the heart of the Mashup Server) has the ability to deploy a
POJO as a web service[1]. You will be able to use this approach to
expose your java classes and their functionality as web services.

In a Mashup Server deployment the 'services' directory is the place to
put your packaged java services. These will be deployed dynamically by
the server.

Once you have the necessary functionality of your java classes exposed
as services, you can use javascript to glue them together as required.
In other words 'mashing up' those services.

[1] http://ws.apache.org/axis2/1_1/pojoguide.html

Hope this helps,
Tyrell


chad.hinton at accenture.com wrote:
> Hello
> 
> Before I take off on a tangent of my own...
> 
> I have a need to access arbitrary java classes packaged within arbitrary
> jars from within a mashup script.  These classes will do work on behalf
> of the mashup script that our current design says is encapsulated within
> the java class and not exposed as web services.  The script will
> determine what classes and jars are involved by reading an xml file.
> We're basically planning on using the dynamic nature of the embedded
> javascript to tie these classes together.  
> 
> My current impediment seems to be adding the jars to the classpath in a
> dynamic fashion.  I suspect you have solved this issue in your wsas
> product however and hope that you can give me some guidance on how to
> leverage that work from the javascript.
> 
> Thanks
> Chad
> 
> 
> This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.
> 
> _______________________________________________
> Mashup-user mailing list
> Mashup-user at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/mashup-user
> 

- --
Tyrell Perera
Senior Software Engineer; WSO2, Inc.; http://www.wso2.com/
email: tyrell at wso2.com; cell: +94 77 302 2505

"Oxygenating the Web Service Platform."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHucrIehFdPcgGx7oRAoXgAJ9WUVzommtEKWRYyeYmd1lwXa5RlACgiUT3
6yghYRnrMGzrHHLeXdNqeoI=
=EV0f
-----END PGP SIGNATURE-----



More information about the Mashup-user mailing list