Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Enable Startup beans service using Script

 
Shankar sanjay
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

we enable startup beans service using administrative console.

Servers > Application servers >server_name > Container services > Startup beans service
I am creating data source Jndi using JACL and ServerConfig.properties file.
JDBCDATASOURCE.jndiName.1 =jdbc/myJndiDS , this entry is in ServerConfig.properties file and using JACL script to do server configuration.

Is there any way to enable "Startup beans service" property using script?. I want to set a property in ServerConfig.properties file which has to be enabled startup beans in Server.
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it is possible to turn on the startup beans service using JCAL or Jython script. Let me know if you need the script.
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sample Jython script that will enable Startup Services for you.
 
Shankar sanjay
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thanks for the script. Do you have JACL script?
 
Deepak Pant
Ranch Hand
Posts: 446
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No I don't have the JACL script. IBM has deprecated JACL starting with 6.1. You run this script by changing Lang option.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic