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
Similar Messages
-
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,
Phanihttp://download.oracle.com/docs/cd/E14571_01/core.1111/e10105/deploy.htm#BIHIIEIA
-
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,
YuriHi 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… -
Modify JSP file without restarting the server
Hi guys,
I need to do small change in the JSP in the production.
How can I do it without restarting the server?
I have deployed the application as an EAR file.
I use WLP8.1 SP3
IS there any way?
AnanthYou can try expanding (use jar util) that ear into temp dir, then make the change, use jar util again to create the ear. try redepolying it. Make sure change the jsp recheck and hit that page. see if it works. Incase if it works put the jsp recheck back to -1.
Note: This is just an idea, I never done.
Thanks
Srini -
Deployment without restarting the server
If we change java files,why we need to restart the server,I am using JBoss-2.2.1_Tomcat-3.2.1.Can we deploy the java file without restarting the server?Thanks in Advance
Yes we may
All u need to do is change
TOMCAT: %WEBSERVER_HOME%\conf\context.xml
JBOSS: %WEBSERVER_HOME%\server\default\deploy\jbossweb-tomcat55.sar\context.xml
file from
TOMCAT:
=======
<!-- The contents of this file will be loaded for each web application -->
<Context >
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
</Context>To
<!-- The contents of this file will be loaded for each web application -->
<Context reloadable="true" >
<!-- Default set of monitored resources -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<!-- Uncomment this to disable session persistence across Tomcat restarts -->
<!--
<Manager pathname="" />
-->
</Context>JBOSS :
======
<!-- The contents of this file will be loaded for each web application -->
<Context cookies="true" crossContext="true">
<!-- Session persistence is disable by default. To enable for all web
apps set the pathname to a non-empty value:
<Manager pathname="SESSIONS.ser" />
To enable session persistence for a single web app, add a
WEB-INF/context.xml
-->
<Manager pathname="" />
<!-- Install an InstanceListener to handle the establishment of the run-as
role for servlet init/destroy events.
-->
<InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
</Context>to
<!-- The contents of this file will be loaded for each web application -->
<Context reloadable="true" cookies="true" crossContext="true">
<!-- Session persistence is disable by default. To enable for all web
apps set the pathname to a non-empty value:
<Manager pathname="SESSIONS.ser" />
To enable session persistence for a single web app, add a
WEB-INF/context.xml
-->
<Manager pathname="" />
<!-- Install an InstanceListener to handle the establishment of the run-as
role for servlet init/destroy events.
-->
<InstanceListener>org.jboss.web.tomcat.security.RunAsListener</InstanceListener>
</Context> -
Programming Weblogic with jmx without using weblogic api?
Hi,
I want to know if it is possible to program weblogic management service without
using weblogic api but just rely on standard JMX interface and methods.
Currently, I am relying on weblogic api weblogic.jndi.Environment and weblogic.management.MBeanHome
interface to get the context and access the MBean Server subsystem. Can I find
the equivalent using jmx?
My code is as follows:
Environment env = new Environment();
env.setProviderUrl(url);
env.setSecurityPrincipal(username);
env.setSecurityCredentials(password);
Context ctx = env.getInitialContext();
MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
String domain = home.getDomainName();
homeServer = home.getMBeanServer();
Thank you.Hi Ryan,
I have looked through the documentation.
It told me that I need to use weblogic.management.MBeanHome interface to get MBeanHome
and from there then I can only use jmx interface.
I presume it is not possible not to use weblogic.jar if I want to establish the
initial connection with Weblogic server?
Thanks.
ryan upton <[email protected]> wrote:
YongLeong wrote:
Hi,
I want to know if it is possible to program weblogic management servicewithout
using weblogic api but just rely on standard JMX interface and methods.
Currently, I am relying on weblogic api weblogic.jndi.Environment andweblogic.management.MBeanHome
interface to get the context and access the MBean Server subsystem.Can I find
the equivalent using jmx?
My code is as follows:
Environment env = new Environment();
env.setProviderUrl(url);
env.setSecurityPrincipal(username);
env.setSecurityCredentials(password);
Context ctx = env.getInitialContext();
MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
String domain = home.getDomainName();
homeServer = home.getMBeanServer();
Thank you.I think you'll find your answer here:
http://edocs.bea.com/wls/docs81/jmx/index.html
HTH
~Ryan -
Can dw cs3 connect directly to sql server database without a testing server?
I'm new to dreamweaver but have used script tools that link
directly to my sql server database.
Not in dw, so far. As of this early stage, I don't have or
want to use a web server, and it's blocking me
without one. I just want to prototype without a testing
server, directly to my database. And while I'll try php
later, I didn't want to have to get into it or cold fusion,
etc. right away.
Can dw connect directly to sql server database without a
testing server?
I'm running XP sp 3 at this point, and don't see IIS. There's
probably some security issues
I'll have to tangle with. The goal is for my website to end
up on the company intRAnet, not the www.
fwiw, I can Build in Data Link Properties and get a
successful test to my sql server database via
Microsoft Data Link, but once I go back and try the test in
OLE DB Connection it balks on the testing server,
as I don't have one locally or otherwise. Isn't there a way
to link to db without a testing server?
Thanks for any insights.Art wrote:
> You can connect to SQL server using ODBC in windows.
Yes, you can. However, Dreamweaver's PHP server behaviors
work only with
MySQL. To connect to any other database, you need to hand
code
everything yourself.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/ -
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,
CKI 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 -
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. -
Update server classes without restarting sun one web server 6.1
hi,
I'm facing a problem in updating server classes on sun one web server 6.1. i did not deploy any application and we are using simple jdbc+jsp approach.i write a class for db connections and now whenever i made some changes in it i must have to restart web server for changes to take effect. I also delete class files from classcache folder but it doesn't work.
my class is placed on /opt/ and this path is also placed in web server class paths.
i do not want to restart web server again and again. can some one tell me how to solve this problem.
Regards,
Kashif.if you just change your jsp files, you don't need to restart WebServer. WS will automatically recompile your jsps when it find the changes.
You may also use reconfig command to reload server. -
How do I turn on -XverboseTimeStamp without restarting the server?
The execute method on the getDiagnosticCommand seems pretty handy for invoking things programatically. I can turn on verbose GC with this command, but how can I turn on the verbose timestamps so I know when the gc occured (without restarting)?
ThanksTry the "decorations" parameter to the "verbosity" command. Something like this:
bq. verbosity change=memory=info decorations=timestamp
See [http://e-docs.bea.com/jrockit/jrdocs/refman/optionX.html#wp1001095] for possible decorations.
Edited by: Staffan Larsen on Feb 24, 2009 9:39 AM -
I have created a Linked Server to Access Database of 64 MB in Size located in Remote System to SQL Server 2012.In Start for Some time it works fine and after it is giving the Error
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" returned message "Cannot open a database created with a previous version of your application.".
Msg 7303, Level 16, State 1, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST".
Previously I thought it as Permission Issue. By trying some fixes proposed in forums it not fixed. But, after restarting the SQL Server Services without changes to the linked Server it works perfectly. How could i fix it. I don't want restart the SQL Server
Service it leads to Some other process failures.
RehaanKhan. MAfter all the Errors, When I am restarting the SQL Server its working correctly.
Whats the problem it is clearing itself after restarting of SQL Server. Why ?. I can't find anything regarding this in SQL Server .
The following are the Errors i got connecting to SQl Server.
OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" returned message "Cannot open a database created with a previous version of your application.".
Msg 7303, Level 16, State 1, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST".
Error-2:
Executed as user: RMS\Administrator. Cannot initialize the data source object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST". [SQLSTATE 42000] (Error 7303) OLE DB provider
"Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" returned message "Cannot open a database created with a previous version of your application.". [SQLSTATE 01000] (Error 7412). The step failed.
After unchecking the Allow In Process in OLEDB.ACE Provider Properties.
Msg 7399, Level 16, State 1, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
The OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST" reported an error. Access denied.
Msg 7301, Level 16, State 2, Procedure Insert_Records_Into_Actual_Calls_History, Line 29
Cannot obtain the required interface ("IID_IDBCreateCommand") from OLE DB provider "Microsoft.ACE.OLEDB.12.0" for linked server "LANDLINE_TEST".
for to fix above error i have followed the instructions in the following link,
http://blogs.msdn.com/b/dataaccesstechnologies/archive/2010/08/19/permissions-needed-to-set-up-linked-server-with-out-of-process-provider.aspx
This also failed to work. I Restarted SQL Server and make the Linked Server Properties Default to my Configuration and it works fine.
Can you suggest me a solution for this issue. Every time i don't want to restart SQL Server Services as it effects other jobs and Processes.
Thank you.
RehaanKhan. M -
Cannot install exchange server 2010 without small business server 2011
we purchased Windows Small Business server 2011 for one of our servers and installed the software and setup exchange server for the office. We had some 3rd party software that would not work with small business server so we had to install windows
2008 r2 server. we still need exchange server 2010. Is there anyway to install without small business server? When I entered the key in exchange server for the small business server it is saying that it is an invalid key. We have a
genuine version of windows small business server. is it all or nothing for the software. ThanksSBS is indeed all or nothing. Breaking apart the individual components is not allowed. That includes exchange. If you want exchange without SBS, you'll need to buy exchange separately and exchange CALs. If you only have SBS CALs and aren't going to run
SBS, you'll need Windows CALs as well. -
Can firefox change audio device preference without restarting?
I use my PC as a home theatre as well as for day to day usage, and have multiple audio devices.
For most usage, I route the sound through on-board audio (realtek) but for watching movies, I run it through the ATI HDMI output to the TV.
Currently, in order to watch a movie, I have to shut down Firefox, change windows prefered audio device, then restart Firefox.
Can I change the device preferences somehow within Firefox without restarting it?Hello,
'''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
''(If you're not using it, switch to the Default theme.)''
* You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
* Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
''Once you get the pop-up, just select "'Start in Safe Mode"''
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
Thank you. -
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.
ThanksI don't think this is possible.
Maybe you are looking for
-
iTunes has indicated i have another iTunes library, how do i combine the 2 libraries into 1? My previous computer was a PC. I synced iTunes with my iPhone until the hard drive died, then I bought an iMac. Thanks for you help.
-
MacBook Restarts After Closing The Screen
I have a new MacBook that I purchased the first of October. It has been running great until recently. About a week ago it started restarting itself after I closed the screen. I can use the laptop with no problem and then close the screen to let it go
-
Helix / Mini-port to vga / Monitor flickers
New Helix. New mini-vga to vga adaptor. Two different monitors. Same issue .... the monitors blink and are unusable. Have updated every driver that I can think to update. Any ideas?
-
How to display waveforms as double precision versus seconds in a chart?
I need some help with the following: I am acquiring several waveforms that I display in charts. I would like to have an option to view data only when I press a button; I would like the new data coming in to append dirrectly to the old data displayed.
-
I have just acquired a G5 powermac from 2004. I have updated all the software (OSX 10.4.11) but now cant get itunes to work properly. It opens, but when I click on music store, it says "cannot complete the music stroe request. The store may be busy".