Reloading weblogic.properties without restarting

Hi,
I would like to know how to reload the weblogic.properties file without
having to restart Weblogic. I have already read that the development of a
class responsible for loading the properties would help, but I don´t know
how to...
Thanks in advance,
SERGIO.

The easiest way to hot deploy new web-apps is to migrate to WLS 6.0...
Sergio wrote:
Hi Robert,
Thank you for your answer. I´m trying to deploy new webapplications at the
time that a new request is made and I don´t want to let the other running
applications without connection when restarting the WebLogic Server. Do you
know how to make that? Perhaps the solution is to make several null entries
and deploy pseudo-generations (because they already exist, but empty) of
webapplications by filling the content of a null entry... But perhaps
reserves Weblogic a great amount of memory for each null entry, even when
they are empty...
Thanks a lot,
SERGIO
"Robert Patrick" <[email protected]> wrote in message
news:[email protected]..
The WebLogic Server will only read the weblogic.properties file atstartup.
You cannot force WebLogic to re-read the rpoperties file withoutrestarting
the server. What are you trying to do that requires theweblogic.properties
file to be re-read? There may be some other way of accomplishing what you
are trying to do...
Sergio wrote:
Hi,
I would like to know how to reload the weblogic.properties file without
having to restart Weblogic. I have already read that the development of
a
class responsible for loading the properties would help, but I don´tknow
how to...
Thanks in advance,
SERGIO.

Similar Messages

  • Reload a jar in weblogic server without restart

    Hi All,
    We are using weblogic version '10.0.1.0' and have 'reports.jar' file in server for reports.
    If we change any existing class file under 'reports.jar' then we are using below steps in order to recognize a modified jar by weblogic
    1) We need to recreate a jar using eclipse in local IDE and
    2) Copy the 'reports.jar' into server
    3) Need to restart server inorder to recognize the modified jar
    Is there any alternative solution to reload a jar in weblogic server without restart?
    Please do the needful.
    Thanks & Regards,
    Gangadhar

    Hi,
    If this is for weblogic running on development mode, then you can go for auto-deployment feature where weblogic will auto-deploy modified application from autodeploy directory.
    For production mode, you can go for production-redeployment feature of weblogic where it uses application versioning. So for example you deployed webapp1 with version app1.0 and then for new release you will deploy webapp1 with version app2.0 adding a retirement policy to retire old application after said time and start using webapp1 with app2.0.
    Refer to link for mode detail - http://middlewaresupport.wordpress.com/2013/03/21/production-redeployment-feature-in-weblogic/
    rank it if found useful
    Thanks,
    Ranjan

  • Deploying, ReDeploying JAR file to WebLogic EM without restarting the serve

    Hi
    Can any one help me how to re-deploy .jar file on weblogic EM with steps.
    Deploying, ReDeploying JAR file to WebLogic EM without restarting the server
    Appriciate if you provide information in steps with screenshot.
    Note: Not in weblogic 11g console.
    Thanks,
    Phani

    http://download.oracle.com/docs/cd/E14571_01/core.1111/e10105/deploy.htm#BIHIIEIA

  • Changing Weblogic Server properties without restarting Weblogic Server

    I have an application that requires a few things to be set at the start of the
    Weblogic server (email addresses,criteria settings, etc.). These are contained
    in a properties file that is referenced in the Weblogic properties file. The
    problem is when I want to make a change in the application property file (change
    an email address, increment a criteria) I have to "reboot" the Weblogic server.
    These defeats the whole purpose of property files. Is there anyway to get Weblogic
    to "recache" the properties files without a Weblogic server "reboot"?
    Thanks,
    Bryan

    I very much doubt that you would be able to refresh the WebLogic properties
    file at run-time (is this WebLogic 5.1 or 6.0 you are talking a about?).
    If you want to be able to update properties run-time (as opposed to
    boot-time) then don't use WebLogic's property file - use either your own
    properties file or store the properties elsewhere such as in the database or
    in JNDI. You will of course have to implement your own refresh algorithm.
    If you are using EJBs then a simple READ-ONLY entity bean with a refresh
    period of a few seconds may suffice.
    Myles
    "Bryan Freed" <[email protected]> wrote in message
    news:3b1e5986$[email protected]..
    >
    I have an application that requires a few things to be set at the start ofthe
    Weblogic server (email addresses,criteria settings, etc.). These arecontained
    in a properties file that is referenced in the Weblogic properties file.The
    problem is when I want to make a change in the application property file(change
    an email address, increment a criteria) I have to "reboot" the Weblogicserver.
    These defeats the whole purpose of property files. Is there anyway toget Weblogic
    to "recache" the properties files without a Weblogic server "reboot"?
    Thanks,
    Bryan

  • Change log.properties without restarting server

    Hi ,
    Am using OIM9102 with App server WebSphere6.1
    How can I handle changing log level in xellerate/config/log.properties file with out restarting server.
    Thanks

    I don't think this is possible.

  • How to edit and reload JavaScript code without restarting Acrobat?

    As a programmer, I wonder if there is a better way to do things that I still cannot figure out.
    At the moment I write code in Notepad++, save it in Acrobat's Javascripts folder, open Acrobat, test the code and find out it doesn't work (no surprise there ).
    I then have to close Acrobat, edit the code in Notepad++, save, open Acrobat and find out again that it doesn't work.
    Rinse and repeat for an inordinate amount of times, especially at the beginning of a new "scripting project".
    The JavaScript Debugger is great but, unless there's something I don't know, doesn't let me edit the code directly in its window.
    As you have worked out already I'm referring to folder-level scripts, so the "Document JavaScripts", "Set Document Actions" and possibly even the "Edit all JavaScripts" buttons are in fact useless.
    Adobe Acrobat and Adobe Reader... ain't no Visual Studio and I don't want them to be but please tell me there's a way to write code a little bit more on-the-fly
    Thanks!
    Roberto

    Thank you both for your posts!
    I spent a few days working and experimenting with Javascript in Acrobat and my first impressions are sadly confirmed.
    try67, you are absolutely correct, but the console approach for testing and developing doesn't work if the add-on is heavily dialog box based (because debugging is disabled).
    Not to worry though, any difficulty can be overcome and frankly it doesn't take that long to relaunch adobe anyway
    Thanks for your time!

  • Reloading the Properties form config file

    the doubt is on reloading the properties without restarting the server...
    Earlier, I have a PropertyReader class which loads the properties from config file, here is the process I followed.
    1)Calling the getInstance() from out side, which test the local instance variable exist or not, if it exists, then skip the creating new instance, else create the object by calling the self Constructor. Here is the method
       public static PropertyReader getInstance(String fileName) throws IOException{
            if (instance==null){
                try {
                    instance = new PropertyReader(fileName);
                } catch (IOException e) {
                    throw e;
            return instance;
        }2) In the Constructor, I read the properties from the property file like the following.
        Properties props = new Properties();
        InputStream fileIn = null;
        fileIn = getClass().getResourceAsStream("/" + "ldap.properties");
        props.load(fileIn);In this scenario I can't access the modified properties until I restart the server.
    Now, I came to change the code to reload the properties with the following scenario.
    1) in my getInstance method, I skip checking the instance and just calling new objct every time.
       public static PropertyReader getInstance(String fileName) throws IOException{
            return new PropertyReader(fileName);
        }2) Even after this, I can't access the latest properties, then I change the code in the Constructor like the following .
           URL codebase = getClass().getProtectionDomain().getCodeSource().getLocation();
                String subPath = codebase.getPath().substring(0, codebase.getPath().indexOf("WEB-INF")+16);
                file = new java.io.File(subPath+"ldap.properties");
                fileIn = new FileInputStream(file);
                props.load(fileIn);Here it is, now I'll be able to get the latest properties even without restarting the server.
    So here I got couple of questions.
    1) What if I create new instace everytime, will that cause any trouble in the memory point-of-view? i.e. load trouble?
    2) What is the difference between 2 nd step in each scenario ? I can't get the exact difference.
    Thanks,
    Sumant K
    Edited by: sumant14 on Jun 4, 2009 6:47 PM

    sumant14 wrote:
    So here I got couple of questions.
    1) What if I create new instace everytime, will that cause any trouble in the memory point-of-view? i.e. load trouble?If you create just ONE object occasionally? Don't waste your time worrying about that. Unless you're doing this thousands of times each second.
    2) What is the difference between 2 nd step in each scenario ? I can't get the exact difference.The first one just gets the properties file from the classpath. The second one is a bizarre hack which might do the same thing, or it might fail in certain circumstances.

  • How to make changes effect in log4j.xml without restarting weblogic server

    Hi ,
    I have successfully configured log4j in my weblogic server 8.1.
    Everytime i made a change in log4j.xml i need to restart the server
    is there any configuration or parameter to set without restarting server??
    Thanks in advance,
    CK

    I don't think you need to restart the server, atleast I never needed to when making changes to jsp pages. You only need to restart when you make changes to java classes. Some might argue jsp is converted to servlet which is a java class.....
    Try refreshing the page when you make any changes. This works for me, if it doesn't work try turning reloadable="true" in your context path in tomcat's server.xml

  • Reload web-inf/web.xml file without restarting tomcat

    Please help me if any one have a solution .
    I am doing development in jsp, servlet. I am using tomcat5 as a webserver.
    i want to reload web-inf/web.xml file without restarting tomcat.

    From the tomcat admin page you can stop/start and refresh individual applications. See the tomcat documentation. Which, when you have a question about tomcat, you should always do first.

  • How to modify JSP on Weblogic without restarting a server

    Hello,
    Could someone explain how to modify JSP on Weblogic without restarting a server?
    We use WL 10.2.
    I search and modify required jsp on a server, but nothing happens on a Web Browser. I run in Development mode.
    Please advice,
    Thanks,
    Yuri

    Hi Yuri,
    As you are in Development mode you have one options to use the Auto Deploy folder which can be found in the following path (domain_name/autodeploy).
    More information on Auto Deployment check the below link:
    http://download.oracle.com/docs/cd/E11035_01/wls100/deployment/autodeploy.html#wp1021626
    Other option is to use the following parameter "*page-check-seconds*" in your weblogic.xml file
    For more information check out the below link
    Topic: jsp-descriptor
    http://download.oracle.com/docs/cd/E13222_01/wls/docs103/webapp/weblogic_xml.html#wp1038491
    Hope this helps you.
    Regards,
    Ravish Mody
    http://middlewaremagic.com/weblogic/
    Middleware Magic | Come, Join Us and Experience The Magic…

  • Will oc4j 9.0.3 reload Javabean without restart?

    After making changes to a Javabean, I need to restart oc4j 9.0.3 to activate the changes. Will oc4j 9.0.3 automatically reload modified Javabean without a restart.
    Thanks,

    After making changes to a Javabean, I need to restart oc4j 9.0.3 to activate the changes. Will oc4j 9.0.3 automatically reload modified Javabean without a restart.
    Thanks, I'm guessing when you say that you have a changed JavaBean, you mean a JavaBean being used in a JSP page? If so, we have a bug filed against 903 that is stopping the reload of JSP beans when they are changed.
    If you touch the web.xml file or the orion-web.xml file whenever you change the bean code, does that cause your beans to be reloaded?
    -steve-

  • How to invoke a servlet/JSP in WebLogic 6.1 after change without restarting

              Hi, all:
              Does anyone know how to have your servlet/JSP pick up the class changed without
              restarting the weblogic 6.1 server?
              Thank you so much for your help.
              - Charles
              

    Use exploded deployment format, touch REDPLOY file.
              Peace,
              Cameron Purdy
              Tangosol Inc.
              Tangosol Coherence: Clustered Coherent Cache for J2EE
              Information at http://www.tangosol.com/
              "Charles Li" <[email protected]> wrote in message
              news:3c3b9161$[email protected]..
              >
              > Hi, all:
              >
              > Does anyone know how to have your servlet/JSP pick up the class changed
              without
              > restarting the weblogic 6.1 server?
              >
              > Thank you so much for your help.
              >
              > - Charles
              

  • Version 6.0 sp2 is not able to reload servlets withour server restart

              I am unable to have WebLogic reload servlets without restarting the whole WebLogic
              application. It will work for a few days and then it stops. They only way I
              can fix the problem is if I reinstall all of WebLogic. How can I fix this?
              Here is the part of my config.xml file which applies.
              <Application Deployed = "true" Name = "DefaultWebApp_myserver" Path = ".\config\mydomain\applications">
              <WebAppComponent IndexDirectoryEnabled = "true"
              Name = "DefaultWebApp_myserver"
              ServletExtensionCaseSensitive = "true"
              ServletReloadCheckSecs = "0"
              Targets = "myserver"
              URI = "DefaultWebApp_myserver"/>
              </Application>
              

    Hi Ravi,
    When you are using the WLS Web Services stack on the server side, the web service implementation is expected to be a WLS Web Service (i.e. a web service built with the servicegen Ant task) that the WebServiceServlet tries to load, using the web-services.xml (i.e. the deployment descriptor that the WLS Web Services stack uses for web services). In your case, is this what you are trying to do? In other words:
    1. Do you have a web service that was built using one of the Web Services tool Ant tasks that come with WLS 8.1 (i.e. servicegen), which is attempting to use Spring beans inside the web service implementation?
    2. If so, are the web.xml and webservices-servlet.xml files you cited in your post, inside the WEB-INF directory of the .war, of the .ear built using the Ant task? You would have had to put these in there manually, if so.
    3. Assuming that you've done this, are all the Spring-related and other .jar files the web service implementation needs, in the WEB-INF/lib directory? Again, you would have had to put these in there manually, if they are.
    If you have already done all of these, and it still doesn't work, you might want to try what Thomas Czarniecki did:
    http://search.gmane.org/?email=Thomas+Czarniecki&sort=date
    Regards,
    Mike Wooten

  • Call weblogic EJB without using weblogic.jndi.T3InitialContextFactory

    I am trying to call an ejb on a weblogic server without using weblogic.jndi.T3InitialContextFactory.
    The context retrieval is as follows:
    Properties table = new Properties();
    table.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    table.put(Context.PROVIDER_URL, "iiop://localhost:7001");
    Context context = new InitialContext(table);
    return context;
    but when I run the client I am getting the follwing error:
    javax.naming.CommunicationException: Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No]
    at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:362)
    at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:289)
    at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:245)
    at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:209)
    at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:69)
    at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:32)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at com.test.TestDirectDocumentLoad.getContext(TestDirectDocumentLoad.java:59)
    at com.test.TestDirectDocumentLoad.loadDocs(TestDirectDocumentLoad.java:139)
    at com.test.TestDirectDocumentLoad.main(TestDirectDocumentLoad.java:116)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:173)
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
    at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1105)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:788)
    at com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1186)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1079)
    at com.sun.corba.se.internal.corba.ORB.resolve_initial_references(ORB.java:2436)
    at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:340)
    ... 12 more
    I have the J2EE jar on the client path and all....but can't get through this error
    need help guys!
    Samir

    Samir j <> writes:
    Make sure IIOP is enabled on the server side. There was a bug in
    earlier 8.1 config wizards that defaulted it to off.
    andy
    I am trying to call an ejb on a weblogic server without using weblogic.jndi.T3InitialContextFactory.
    The context retrieval is as follows:
    Properties table = new Properties();
    table.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    table.put(Context.PROVIDER_URL, "iiop://localhost:7001");
    Context context = new InitialContext(table);
    return context;
    but when I run the client I am getting the follwing error:
    javax.naming.CommunicationException: Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No]
    at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:362)
    at com.sun.jndi.cosnaming.CNCtx.initUsingIiopUrl(CNCtx.java:289)
    at com.sun.jndi.cosnaming.CNCtx.initUsingUrl(CNCtx.java:245)
    at com.sun.jndi.cosnaming.CNCtx.initOrbAndRootContext(CNCtx.java:209)
    at com.sun.jndi.cosnaming.CNCtx.<init>(CNCtx.java:69)
    at com.sun.jndi.cosnaming.CNCtxFactory.getInitialContext(CNCtxFactory.java:32)
    at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
    at javax.naming.InitialContext.init(InitialContext.java:219)
    at javax.naming.InitialContext.<init>(InitialContext.java:195)
    at com.test.TestDirectDocumentLoad.getContext(TestDirectDocumentLoad.java:59)
    at com.test.TestDirectDocumentLoad.loadDocs(TestDirectDocumentLoad.java:139)
    at com.test.TestDirectDocumentLoad.main(TestDirectDocumentLoad.java:116)
    Caused by: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:173)
    at com.sun.corba.se.internal.iiop.ConnectionTable.getConnection(ConnectionTable.java:65)
    at com.sun.corba.se.internal.iiop.GIOPImpl.getConnection(GIOPImpl.java:67)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:652)
    at com.sun.corba.se.internal.corba.ClientDelegate.createRequest(ClientDelegate.java:594)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve(InitialNamingClient.java:1105)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolveUsingBootstrapProtocol(InitialNamingClient.java:788)
    at com.sun.corba.se.internal.corba.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:1186)
    at com.sun.corba.se.internal.corba.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:1079)
    at com.sun.corba.se.internal.corba.ORB.resolve_initial_references(ORB.java:2436)
    at com.sun.jndi.cosnaming.CNCtx.setOrbAndRootContext(CNCtx.java:340)
    ... 12 more
    I have the J2EE jar on the client path and all....but can't get through this error
    need help guys!
    Samir

  • How to make changes runtime in ApplicationResources.prop without restarting

    hi,
    We are using Oracle App. server 10g server. Our application is so critical, we can not restart server frequently for small changes. Our client might need to change error message and other user message on regular basis. We use ApplicationResources.properties for messages. How we can update these messages at run time without restarting app server. Is it possible in Oracle App. Server. I know it is possible on JBOSS but not sure about Oracle App. Server.
    I tried to copy ApplicationResources.properties in application folder on server, but it does not give effect. Generally, we used to do this with JBoss server, but I am new to Oracle App. server, is it possible? If possible - how?
    I checked with my other team members, they are not sure. I also tried to find Java ranch and also other forums without success. your input might be very useful.
    One probable solution is to access these messages from database, but do we have any other option if we want to use ApplicationResources.properties ?
    Thanks in advance.

    Hi,
    FBZP includes many activities. Some of them could be maitained directly in production. What activity do you refer to? Anyway, if this activity is locked for customizing in production, there are, generally, two ways to deal with this:
    a) open the client through SCC4
    b) changing the maintance preferences for the table/view in question
    In both case, you should consult your BASIS team first.
    Regards,
    Eli

Maybe you are looking for