我可以创建在JBOSS服务器上运行的类的对象吗? [英] Can I create the object of the class which is running on JBOSS server?

查看:127
本文介绍了我可以创建在JBOSS服务器上运行的类的对象吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当前正在使用Java学习Web项目.我对此有疑问. 实际上,我的任务是通过Web服务使用JBOSS Server访问Dynamic项目的方法.

Currently Learning Web project in Java. I have a doubt related to it. Actually I have a task that, access method of Dynamic projects using JBOSS Server through web services.

最初我没有想要做的事.

Initially I didn't get what I want to do.

在学习了一些与之相关的东西之后,我认为如果我在JBOSS上运行我的项目,那我该如何访问它的方法呢?如何创建Web服务以及如何使用它?

After learning some things related to it, I thought that If I run my project on JBOSS, then how can I access the methods of it? How to create the web service and how to use to it?

是这样吗?如果我在JBOSS服务器上运行项目,那么方法可以直接访问吗?

Or is it like that If I run my project on JBOSS server then is methods directly accessible?

这就是为什么我认为如果我能够创建在JBOSS服务器上运行的类的对象,那么我可以访问这些方法了.

Thats why I thought If I am able to create the object of class which is running on JBOSS server then may I can access the methods.

请给我建议.

推荐答案

您提到了 application.wadl 文件. WADL或 Web应用程序描述语言用于定义合同界面 RESTful Web服务.请参考链接以获取更多信息.

You mentioned application.wadl file. WADL or Web Application Description Language is used to define a contract interface for RESTful web services. Please refer to the links for more information.

现在您的问题归结为:

如何调用作为RESTful Web服务公开的对象的方法.

现在您已经有了wadl文件.请查看一个名为 wadl2java 的工具.该工具将使用您的Application.wadl 文件并生成Java存根.您可以使用这些生成的Java类来调用JBoss服务器中部署的对象上的方法.

Now you already have wadl file with you. Please have a look at a tool called wadl2java. This tool will consume your Application.wadl file and generate java stubs. You can use these generated java classes to invoke the methods on the object deployed in JBoss server.

这篇关于我可以创建在JBOSS服务器上运行的类的对象吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆