Re: [SmartFrog-support] question on naming of components

Andreas Unterkircher <[email protected]> Fri, 26 Jan 2007 16:55:37 +0100
Newsgroups gmane.comp.java.smartfrog.user
Organization CERN
Message-ID <[email protected]>
Steve Loughran wrote:

> There's no real notion of username in java, because it isnt there in all 
> versions of windows, mobile phones, printers, etc.
> 
> ${user.home} is the closest there is to a username, and its really just 
> the path to a home directory. This is implicitly available in a 
> deployment descriptor, so could be extracted:
> 
> user.home PROPERTY user.home
> 
> However, your request makes me think. It makes me think that perhaps 
> deployed components really need some metadata attached to them that 
> records how they were deployed -hostname/ipaddr, time, ${user.home}. 
> etc. You could certainly tweak the code behind sfStart to add these 
> attributes, though there is always a risk of side effects.
> 
> -steve

My question comes from the fact that we use the management console 
really to manage our components and as several people deploy components 
we'd like to know to whom the components belong. You're right that on a 
larger, more general scale one might want to have metadata attached to 
the components or one finds this information somewhere in logs. Also for 
security and debugging reasons this could be quite useful. The first 
problem that comes to my mind is that attached metadata would blow up 
the memory consumption of the components.

Andreas

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV