通过Weblogic部署Java应用程序(主类) [英] Deploying Java Application(Main Class) over Weblogic

查看:89
本文介绍了通过Weblogic部署Java应用程序(主类)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个由主类和Java代理(使用Axis 1.4创建)组成的Java应用程序.没有Servlet或JSP`s

I have a Java Application consisting of a Main Class and Java Proxies(Created using Axis 1.4).There are no Servlets or JSP`s

程序从Excel工作表中提取i/p.使用Webservices查询Internet应用程序.此过程一直持续到Excel中的所有记录均已执行为止.

The program takes i/p from an excel sheet.Queries an internet application using Webservices.This process continues until all the records in the Excel have been executed.

现在,我的第一个问题是如何在Weblogic上部署此应用程序:作为WAR,EAR或JAR(当然不是WAR) 如果它是一个Web应用程序,我们可以通过

Now my First question is how do I deploy this application on Weblogic:As a WAR, EAR or JAR(Not as WAR ofcourse) If it is a web application we can invoke it by a path like

http://server:port/contxt_root/abc.jsp

但这不是Web应用程序,所以我将如何调用它. 在Jdevloper中,我右键单击Main Class,单击RUN,它开始执行.现在,我必须在Linux系统中的Weblogic Server上进行部署

but this aint a web application, so how would I invoke it. In Jdevloper I right Click on Main Class, Click RUN and it starts executing.Now I have to deploy over a Weblogic Server in a Linux System

第二个问题:我该如何处理它?假设我希望它每周或每天运行一次.

Second Question: How do I shedule it.Suppose if i want it to run weekly or daily.

推荐答案

为此,您不需要任何与Web相关的服务器,而需要某种任务计划程序,例如

For this, you don't need any kind of web related servers, but some kind of a task scheduler, like cron to schedule a command line starting your Java application

您也可以运行已编译的类,建议您创建其中的一个JAR文件,这使事情变得更加整洁.

You can run your compiled classes too, I'd advise to create a JAR file of them, that makes things a lot more clean.

这篇关于通过Weblogic部署Java应用程序(主类)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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