I would like to run some DB2 commands, such as dbadvis, from within an EJB. What is the simplest way to do this ?
This topic has been locked.
2 replies Latest Post - 2013-01-30T12:33:54Z by DWWorks
Pinned topic Invoking DB2 commands within an EJB
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-30T12:33:54Z at 2013-01-30T12:33:54Z by DWWorks
bpaskin 110000EJCN3765 PostsACCEPTED ANSWER
Re: Invoking DB2 commands within an EJB2013-01-22T14:17:47Z in response to DWWorksHi,
the db2advis command is only available on the command line and through the control center, as far as I am aware. In an EJB you would need to call the local os and then execute the command, if the EJB is running on the same system as DB2/DB2 CLI. There is a nice doc explaining Process here: http://www.javaworld.com/jw-12-2000/jw-1229-traps.html