aspose file tools*
The moose likes Websphere and the fly likes Enable Startup beans service using Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Enable Startup beans service using Script" Watch "Enable Startup beans service using Script" New topic
Author

Enable Startup beans service using Script

Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
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

Joined: Feb 13, 2004
Posts: 443
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

Joined: Feb 13, 2004
Posts: 443
Sample Jython script that will enable Startup Services for you.
Shankar sanjay
Ranch Hand

Joined: Sep 14, 2009
Posts: 117
Hi Thanks for the script. Do you have JACL script?
Deepak Pant
Ranch Hand

Joined: Feb 13, 2004
Posts: 443
No I don't have the JACL script. IBM has deprecated JACL starting with 6.1. You run this script by changing Lang option.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Enable Startup beans service using Script