my dog learned polymorphism*
The moose likes Ant, Maven and Other Build Tools and the fly likes deploying a core java application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "deploying a core java application" Watch "deploying a core java application" New topic
Author

deploying a core java application

Mohit Sinha
Ranch Hand

Joined: Nov 29, 2004
Posts: 125
Hi there,

Hope this is the right forum for the question.
I have an application which is completely in core java (no web components no ejb ) but this app may be consumed by a java web app.
So ideally this will be bundled as a jar file but my question is how can a standalone jar file be deployed to an app server or others and be made available for consumption.

Do chip in with your thoughts.


Thanks,
Mohit
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You wouldn't "deploy" it to an app server--if it's not an app, doing so would be meaningless.

It could expose a library which is *used* by an app, however.

The answer to this question may depend upon what you mean by "consume": is it a library? A set of services?
Mohit Sinha
Ranch Hand

Joined: Nov 29, 2004
Posts: 125
Currently we bundle it as a library with the client apps who consume it.
But we were thinking on the lines of providing it as service.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15958
    
  19

You're going to need to wrap it in a service provider framework. For example, as a web service.


Customer surveys are for companies who didn't pay proper attention to begin with.
Mohit Sinha
Ranch Hand

Joined: Nov 29, 2004
Posts: 125
Thanks Tim.

Is there any other java based alternative to web services.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15958
    
  19

Mohit Sinha wrote:Thanks Tim.

Is there any other java based alternative to web services.


Yes, lots. Though some of them are web services as opposed to "WEB SERVICES". for example, REST.
 
Consider Paul's rocket mass heater.
 
subject: deploying a core java application
 
Similar Threads
where to deploy jar files
difference between maven "compile" and "provided" scope
java application and its supporting files
log question
web service not available