|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| Dinamically set the file path in a trace node | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | raquel.saracay | 
			  
				|  Posted: Thu May 31, 2007 2:08 pm    Post subject: Dinamically set the file path in a trace node |   |  |  
		  |  Novice
 
 
 Joined: 10 May 2007Posts: 11
 
 
 | 
			  
				| I need to set dinamically the file path in a trace node. Is there any way to specify this parameter in development time?. We are trying to avoid changes in the message flow from test environment to  production environment, so we want to set the parameter in a table insted of hard code it in the trace node. We also want to have a different log file for each day, and want to specify the name of the file adding the date.
 
 Thanks for your help
 |  |  
		  | Back to top |  |  
		  |  |  
		  | marcin.kasinski | 
			  
				|  Posted: Fri Jun 01, 2007 5:38 am    Post subject: Re: Dinamically set the file path in a trace node |   |  |  
		  | Sentinel
 
 
 Joined: 21 Dec 2004Posts: 850
 Location: Poland / Warsaw
 
 | 
			  
				| Hi, I think it is not possible with all of this requrements (with standard nodes). 
 You can set different filepath on DEV and PRD by promoting this attribute and  set it to proper value in bar file.
 
 Rest of this requirements   (parameter in a table, different log file for each day, and adding the date) you can achieve by JAVACompute node.
 _________________
 Marcin
 |  |  
		  | Back to top |  |  
		  |  |  
		  | elvis_gn | 
			  
				|  Posted: Fri Jun 01, 2007 5:58 am    Post subject: |   |  |  
		  |  Padawan
 
 
 Joined: 08 Oct 2004Posts: 1905
 Location: Dubai
 
 | 
			  
				| Hi raquel.saracay, 
 I don't see why you should be having different paths for Dev and Prod in the first place, becoz....you would not be having the Dev and Prod on the same box in the first place(and so not have any confusion as to who is writing the log)...and you should not be using a path like '../Dev/..' or '../Prod/..' but a common path like '../logs/..'(this will help developers and testers too, rather than remembering different paths in different machines)...
 
 The rest ofcourse as marcin.kasinski said, can be done from Java Compute node, or from a backend scheduled Java app, which will trigger every night, read that days log(perhaps sending notification to some user or admin) and rename it with the date..etc etc
   
 Regards.
 |  |  
		  | Back to top |  |  
		  |  |  
		  |  |  |  
  
	|    |  | Page 1 of 1 |  
 
 
  
  	| 
		
		  | 
 
 | You cannot post new topics in this forum You cannot reply to topics in this forum
 You cannot edit your posts in this forum
 You cannot delete your posts in this forum
 You cannot vote in polls in this forum
 
 |  |  |  |