Keep an object around for the life of the server?
I need to keep some objects around for the entire life of the server.
However would I make sure of that? In other words, how do I prevent them
being gc'd?
TIA,
Bill
Say I have a singleton. If it wasn't in a app server, I can, for example,
have it instaniated in the main and hold the ref there. But in the app
server, wouldn't such a singleton subject to gc since no one is holding the
ref if no one is using it at the moment? If so, the re-instantiation can be
quite expensive. How can I make sure that doesn't happen?
"Philip Strube" <[email protected]> wrote in message
news:[email protected]..
Hi Bill,
Bill wrote:
I need to keep some objects around for the entire life of the server.
However would I make sure of that? In other words, how do I prevent them
being gc'd?same way as singleton instances are usually kept: in a static variable.
If you hot-deploy your application, but you don't want your mentioned
objects to be destroyed, put the classes in a jar in the server classpath.
If they are in your application's ear or war, they will be destroyed and
re-created on hotdeploy.
If you don't hot-deploy, you don't need to care about.
TIA,
BillViele Grüße ;-)
Philip
Similar Messages
-
if i stream for 8 hours at work and keep my screen on the entire time will it shorten the life of the screen
The screen itself would not wear out, however the LED backlights that make the screen glow do have a limited life span and over time they will become dimmer and shift color somewhat. This however would take years to accomplish. You'll be replacing your phone before you have anything to worry about.
-
Is there any way to download these files manually from another source? The download from boot camp keeps stopping at around 25% and then produces the error "Can't download Windows Support Software because of a network problem". Thx!
No. This issue is dicussed here frequently. The only option is to be patient and try often. Search this forum for other posts about this issue.
-
I was wondering it the life of the battery would last longer if you let the battery run down all the way and then charge it? Or to charge it whenever you have the opportunity even if it doesn't have a low battery? Which is better for the life of the battery and prolong the life of the battery?
I've had a iPhone 4s since March 2012, and it's battery is pretty useless now. I was using the app Battery Doctor (Battery Saver, Battery Life) by Beijing Kingsoft Internet Security software, which encourages the user to charge more often, whenever battery life drops below 100% full and greater than 20% full, and gives ratings according to the number of full, partial & overcharges done, but I'm concerned that charging like that actually results in worse battery life??
I now have an new iPhone 5 and don't want the battery to only last as short as the last one did
Any advice/comments please -
s there any problem for my iphone's battery to keep my charger connecting for few hours after the battery is full?
Sometimes i sleep and the my iphone is charging and of course the battery became full after two or three hours, and definitely i will not wake up in the midnight to just disconnect the charger, please i need your help.This is considered normal use. I think everybody does this, including myself. It's not something to worry about in the least bit.
Just remember to complete a full charge cycle (allow the phone's battery to discharge to 10%-20%, then charge uninterruped to 100%) once a month and you'll be fine.
http://www.apple.com/batteries/iphone.html -
Revision: 11238
Author: [email protected]
Date: 2009-10-28 12:45:35 -0700 (Wed, 28 Oct 2009)
Log Message:
Cue point sample improvements and added a work around for FM-171 to the TemporalFacet class.
Ticket Links:
http://bugs.adobe.com/jira/browse/FM-171
Modified Paths:
osmf/trunk/apps/samples/framework/CuePointSample/src/CuePointSample.mxml
osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacet.asRevision: 11238
Author: [email protected]
Date: 2009-10-28 12:45:35 -0700 (Wed, 28 Oct 2009)
Log Message:
Cue point sample improvements and added a work around for FM-171 to the TemporalFacet class.
Ticket Links:
http://bugs.adobe.com/jira/browse/FM-171
Modified Paths:
osmf/trunk/apps/samples/framework/CuePointSample/src/CuePointSample.mxml
osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacet.as -
Shell window for the life of the server??
We open a shell to remotely start a server on another machine, but we can't then
logout of the shell without killing the server! Do we really have to maintain
that
shell for the life of the server? If someone starts a server and then has to
bounce
their machine, it would mean ungracefully shutting down the remote WLS.
What are we missing? Cannot find an answer in the WLS 6.1 administration guide.
We tried putting the command in the background, and using nohup, but nothing
seems to work.
Answer??Michael McHugh wrote:
I start my weblogic server using nohup startWebLogic.sh & and find that it dies after a period of time.. the script runs forever in the background, but that's not what I want... I want the server running in the background, not the startup script....
I have checked that script to find the following...
$JAVACMD $JAVA_OPTIONS -classpath $CLASSPATH -Dweblogic.Domain=informatica -Dweblogic.Name=myserver -Dbea.home=$WL_HOME/infalicense -Dweblo
gic.management.password=$WLS_PW -Dweblogic.ProductionModeEnabled=$STARTMODE -Djava.security.policy==$WL_HOME/lib/weblogic.policy weblogic.S
erver
and I notice the weblogic.Server to be located in the "lib" directory... BUT.. when I go to the lib directory, it does not appear there... so I cannot issue the command nohup $JAVA weblogic.Server &
also, where/how are the user and pass specified at the command line?
Thanks
MikeWhen you look at the list of running processes you won't find anything
that is obviously ``WebLogic" you will, depending on Unix version, see a
bunch of proceses all called Java. Also the ``weblogic.Server" you are
referring to is a class inside the weblogic.jar file which is located in
$BEA_HOME/weblogic81/server/lib. You could not simply issue the command
$java weblogic.Server anyway as that wouldn't be enough to start the
server completely. Username and password information can be passed in a
number of ways. First you can add the system properties
weblogic.management.username and weblogic.management.password to the
start script. You can also create a boot.properties file in the domain
directory containing the 3DES encrypted username and password. Third,
you can create a UserConfig file which contains the encrypted username
and password. All of this and more is detailed in the administration
documentation:
http://edocs.bea.com/wls/docs81/adminguide/overview.html
~Ryan Upton -
Let's say I have my Ipod on 24/7 running a random app and is on the charger, what would the life of the Ipod be?
I have no idea except it should be many years.. However, you should almost fully discharge the battery monthly to maximize the battery life in in the eventwant to use it on the battery.
Apple - Batteries - iPod -
How do I keep an object shown for the rest of the project in its position?
This sounds like a question for Lilybiri. I have a object that I want shown for the rest of the project ...
On this slide, the object I want shown (big black rectangle) for the rest of the project is in the right position in the timeline and it covers the master background as it should. As you see, the only things (correctly) covering it are the blue video and the click to continue button. In run time, however, it's a different story -- the widget is suddenly visible over the object as well as the background from the master slide (but not the main master.)
Can anyone help me out?The stacking order is not working for objects timed for the rest of the project. You have only two choices:
if you don't check the option 'always on top' it will be always at the bottom
if you check that option, it will always be on top.
Lilybiri -
Need to update Object permissions for a form in the form designer
Hi Experts,
I created a new form and attached to a process definiton.
Later created a new version and changed some properties for the attributes.
somehow I missed the object permissions for the system administrator. not even a single permission is checked out of "Allow Insert, Allow Update and Allow Delete". I tried to assign the permissions by creating a new verion. when i try to save it is saying " YOU DO NOT HAVE ENOUGH PERMISSIONS TO ADD THIS OBJECT". I tried to assign the permission for the form to the SYSTEM ADMINISTRATORS group from web console but, there also I got the same error. can anyone please help me to change the Object permissions if you have come across this problem.
Edited by: 804064 on Oct 21, 2010 6:07 AMIf I import the older version of the form, The permissions are back.
the second alternate solution is
Export the form and in the XML edit the following values
Just change “0” to “1” for insert, update and delete.
<DataObjPermission>
<SEL_DELETE_ALLOW>1</SEL_DELETE_ALLOW>
<SEL_UPDATE_ALLOW>1</SEL_UPDATE_ALLOW>
<SEL_UPDATE>1289570464000</SEL_UPDATE>
<SEL_INSERT_ALLOW>1</SEL_INSERT_ALLOW>
<UGP_KEY UserGroup = "SYSTEM ADMINISTRATORS"/>
</DataObjPermission> -
Work around for making Budget on the Profit center level
Dears,
Kindly inform me if it's applicable to make a Budget on the profit center , my workaround it to make a validation rule for the profit centers before the document is posted the system check the planning data for the profit center with the G/L account and if it's less than the amount exist in the table the document can be posted.
i don't know if it's applicable or not to make such a rule, also the standard SAP does not support Budget on the profit center.
if it can be done, kindly inform me with steps for it.
Thanks in advance.
Ahmed SamirFor cost center the following note can give you some info 68366 - Active Availability Control for Cost Centers
I think you could do something similar to get a budget function with profit center. Creating a statistical IO for each profit center and make sure that posting are always done to these IO (whatever real object is being used in combination with your profit center).
But then it will limit the use of budgeting of WBS, IM, etc... -
Help needed in SD VC Assigning Object Dep. for all values at the 1 time
Dear, Gurus
I am successful in achieving pricing in VC the long way example: If Characteristic is Car_Color and values Blue, Red. I assign
$self.Z_CarPrice=u2019Redu2019 and it works. Z_CarPrice is basically the variant condition linkage with tables SDCOM and VKOND.
My question is how can I achieve the above by assigning it to the header so that it automatically enters the code $self into all values without me having to go into it 1 by 1 and assigning the codes? Or what is the best way in achieving the results?
If I have 3 characteristics ex: Car_Model, Car_Color, Car_Size? 100's of values? 4th characteristic is Z_CarPrice inside this I have entered all the Values from the 3 characteristics.
Thanks in AdvanceHi,
Try these steps and hope will definitely resolve your issue
Create one variant table VT_BASE_PRICE with combinations of the char Z_COLOR,Z_MODEL and Z_SIZE as key fields
Table Structure
Z_Color
Z_Model
Z_Size
Z_Car_Price
Table Contents
Z_Color Z_Model Z_Size Z_Car_Price
RED Honda Big BP_RED_HONDA_BIG
RED Honda Small BP_RED_HONDA_SML
Maintain the table values with all possible combinations and for each combination enter a unique key under Z_car_Price column. Remember the variant key length Max is 26 and you can use any unique value which should give a meaning by looking at
Once maintained the table write a dependency
Table VT_BASE_PRICE
(Z_COLOR = Z_COLOR,
Z_MODEL = Z_MODEL,
Z_SIZE = Z_SIZE,
Z_CAR_PRICE = $self.Z_CAR_PRICE)
Thus for each combination no need to write the code to infer the variant key. It will automatically choose from table as per configuration values entered.For each variant key you need to maintain price in condition records for condition type.
Regards,
Brahmaji D -
Tcode for Useful life of the asset
Hi Gurus,
Is there any standard report or Tcode to know the "Useful life of the Assets" ?
MadhuHi
Please check table ANLB
Thanks & Regards
Phaneendra -
Issues while JDBC System Object Creation for accessing MS SQL 2000 Server
Dear Experts,
I am creating system object to connect to MS 2000 server in Ep 7.3
1) created system with all the properties
2) User mapping done
3) permissions ok
but still while testing connection its giving error
"No connection to system DBSQL found:
com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: A nested exception occurred. Could not initialize physical connection.
Connection Failed: A nested exception occurred. Could not initialize physical connection.
Connection Failed: A nested exception occurred. Could not create JCO connection.
'user' missing"
""" Connection Test for Connectors:
Test Details:
The test consists of the following steps:
1. Retrieve the default alias of the system
2. Check the connection to the back-end application using the connector defined in this system object
Results
Default alias retrieved successfully
Connection failed. Make sure user mapping is set correctly and all connection properties are correct. """"Dear Mr. Arun,
thanks for the valuable sap note
I have applied the note but same result :
No connection to system DBSQL found:
com.sapportals.connector.connection.ConnectionFailedException: Connection Failed: A nested exception occurred. Could not initialize physical connection.
Connection Failed: A nested exception occurred. Could not initialize physical connection.
Connection Failed: A nested exception occurred. Could not create JCO connection.
'user' missing
1) i have created JDBC Driver as mentioned in sap note
2) created System object
3) created destination as required in EP 7.1 and above
4) mapped user in user administration
when i am testnig connection its giving above mentioned error
same system object when i am creating for EP 7 its working fine with all 3 jar files and system creating succesfully
plz help -
Again: The Life of the Battery
Hi, I've read a lot of messages with this problem, but, i can't still understand how difficult is to make our batteries have at least more than 2 hours life, using all the resources this kind of computer give us.
I follow all the steps to make it better, all of them, but still my battery has 2hours life. Charging about 4hours or more.
Of couse I use the MBP with all I have to work: web, airport on, bluetooth on, various applications, but I think, most of the people does. So, shouldn't a machine like this deserves a better battery????
Thanks all
Sorry, I'm a little disapointed with THE BATTERY!It's a simple proposition really; more work a processor can do the more energy it takes. All that heat that people complain about has to come from some energy source and that's the battery. There's a price to be paid for using screaming Intel chips and this is one of them.
I'm getting about three and a half hours out of my MBP running a 2.16 GHz processor. That's optimized for battery life. I suspect that it'll average out to be about two hours forty-five minutes to three hours. My two year old iBook does about that now, averaging just about three hours. Not exciting, but not all that bad either. I honestly don't know how they do it considering how much energy these Intel processors need.
All things considered, the MBP battery lasts longer than my Sony Vaio ever did, and longer than every Dell notebook I've had the occasion of using. Newer Dell machines seem to be on par, however.
The advice of others is good. Turn-off bluetooth, and if you're not using the Airport card, turn that off too. Set up your use while on battery for maximum energy savings. If you're concerned about watching movies on a trip, rip the DVDs to hard disk instead of playing them from the superdrive. Every little-bit helps.
Maybe you are looking for
-
HT1541 How can I cancel an Itunes gift send by email?
How can I cancel An Itunes gift send to an email by mistake?
-
Enable reporting of offensive content not working in sharepoint 2013 community site
i am trying to enable "Report to moderator option" in community site but when i checked option "Enable reporting of offensive content" in a community site settings and clicked Ok. I am getting an error "The file is not checked out.You must first chec
-
How to install Apache Web Server with PHP on Sun Solaris Sparc machine
Hi, We are trying to install the Apache Web Server and the PHP package on a Sun Solaris Sparc machine running on SunOS 5.8. We are having compilation problems with the source code of both these packages. Does anybody know if there are ready solaris p
-
Update not commit in a function
Hi, I created a function that does an update. The SQL statement works fine on its own. But when I put this SQL statement in a function and used a .NET application to call this function, it didn't update the record. I even put the commit statement aft
-
URGENT REQUIRE -- parameter's form language cann't read
i have a problem with my report. field in parameter form in report builder can not change in thai language (font). So I can't read output word in Thai. what should I do ? (urgent require...) )