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

Jython Script Question

 
Craig McWilliam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use Jython scripting to set the "Resource Authorization" of CMP beans to "Container". But I keep getting exceptions. Can some one please help on what I am doing wrong?
I am trying

AdminApp.edit
(appname, ['-DataSourceFor20CMPBeans',
[[
"TestServices", "TestServices", uri, targetjndi, 'container']]])

Is DataSourceFor20CMPBeans not the correct attribute?


Thanks a lot!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic