Need weblogic to see java file changes automatically without doing an ANT build everytime

Posted on 2007-10-09
Last Modified: 2013-12-15
I've recently been assigned to a project that is using weblogic 9.2.
Its a j2ee application that has several ejb's.  I'm using eclipse editor and everything is installed locally on my linux box.

In past projects i've used tomcat, and I have been able to point tomcat at the projects source (in my eclipse workspace) and then when I change a .java file the changes are picked up automatically (reloadable).  On this project however the other developers do an ant build each time a file is changed which can take a minute or more!  There has to be a way to point weblogic at the source or do something that allows changes to be seen by the server automatically.  Weblogic is in developer mode ( i read you need that for autodeploy to work ), but i'm not sure how to get weblogic setup to "see" my changes.  

I'm not so familiar with weblogic or ejb's but if anyone out there can help me get a reloadable type setup with this project I would be greatful!
Question by:jacklin10
    LVL 5

    Expert Comment

    Your project seems to be using teh correct methodology. Running WebLogic in a development mode means that you can redeploy your application without restarting the server. It does not mean however, that WebLogic can detect source-level changes. Deployment of an EJB application involves the entire EAR file with its JAR and WAR file containing EJB and Web applications. After you change the source, you must recreate the archives which then need to be deployed to WebLogic using its admin console, admin tools or by copying the archive to the appropriate directory.

    Author Comment

    Doh!  I was doing some research and I thought maybe if I deployed in exploded archive format to the autodeploy folder in weblogic that maybe that might work.... but in the end I guess when I change a file I would need to move the resulting class into that folder in order for it to be "seen" by weblogic.  

    Although using a task to do that might be faster than doing a build where it recreates all the archives and then moves them over.  Do you agree?
    LVL 5

    Accepted Solution

    This is the description of your case (exploded directory format):

    I would agree that if you can update a class file in the exploded archive directory rather than recreating all the archives, it is a worthwhile undertaking. I would still do it through Ant. It is trivial to write a copy task and invoke it in Eclipse. You do not even need to compile since Eclispe does it for you automatically.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Title # Comments Views Activity
    how to disable hibernate query cache 2 53
    Understanding @ResponseBody annotation 5 36
    has77  challenge 9 56
    changeXy challenge 13 40
    Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now