Win a copy of Emmy in the Key of Code this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Paweł Baczyński
  • Piet Souris
  • Vijitha Kumara

How do I create patch?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Is it possible to write a patch using java platform? If yes, what tool or resources can I use to write a patch and be able to apply such patch to my java applications? I want to be able to fix bugs in my applications using patch.

I have tried to google with no success yet.

Please if this is not the right forum for this question, kindly direct me to appropriate forum in javaranch.

Thanks
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your application distributed using JWS? Is it configured to check the server for the latest version? If yes, just replace the jar(s) on the server. The next time the application comes up, those will be picked up.
 
Ganiyu Shefiu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh,


My application is web application deloyed in glassfish/jboss on a machine (called machine A). I will like write a patch to fix bug or add new functionality to the web application in machine A such that the patch can be applied to the application in machine A without replacing the entire copy of web application in machine A.

I want the patch to be applied like its done on Oracle ebusiness suite or other enterprise web applications where vendor distribute patch to client to fix bug or add new functionality.

Once again, thanks for taking your time to reply my first post.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not sure I fully understand your problem.
When you say web application, does it mean a browser based client and a central server? If yes then where does the patch come into the picture? Or do you mean client server communication using HTTP? Some more information regarding the architecture would be helpful here.

Since you have not mentioned about JWS I will move this post to a different forum.
 
Ganiyu Shefiu
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneech,

I mean a browser based client with web application (developed with JSP,EJB etc) hosted in web application servers like jboss/glassfish. If JWS cannot be used kindly direct me to another forum. Also, If patch is not possible in this case, please let me know.

Thanks
 
Bartender
Posts: 1210
25
Android Python PHP C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ganiyu Shefiu wrote:
I mean a browser based client with web application (developed with JSP,EJB etc) hosted in web application servers like jboss/glassfish. If JWS cannot be used kindly direct me to another forum. Also, If patch is not possible in this case, please let me know.



Hi,

Most app servers support hot deployment and detect changed jars/ears. JBoss does; I think Glassfish too. So you can (usually) depend on that.
If your app is an EAR, they detect timestamp changes only at the EAR level, so you need to redeploy the entire EAR.

If you don't want to depend only on hot deployment, but instead want explicit control over starting, stopping, and updating portions of your app, then perhaps you should take a look into OSGi and deploy your app as modular OSGi bundles. A word of caution though: if you're new to it, it's a rather new, vast and complex technology, potentially impacting your app design, and app servers' support for it are not exactly well documented or extensively discussed.

Some beginner resources:
OSGi for beginners
Hello OSGi
 
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!