Topic
2 replies Latest Post - ‏2013-01-30T12:33:54Z by DWWorks
DWWorks
DWWorks
34 Posts
ACCEPTED ANSWER

Pinned topic Invoking DB2 commands within an EJB

‏2013-01-22T11:58:40Z |
I would like to run some DB2 commands, such as dbadvis, from within an EJB. What is the simplest way to do this ?

Thank you
dieter
Updated on 2013-01-30T12:33:54Z at 2013-01-30T12:33:54Z by DWWorks
  • bpaskin
    bpaskin
    3765 Posts
    ACCEPTED ANSWER

    Re: Invoking DB2 commands within an EJB

    ‏2013-01-22T14:17:47Z  in response to DWWorks
    Hi,

    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

    Regards,
    Brian
    • DWWorks
      DWWorks
      34 Posts
      ACCEPTED ANSWER

      Re: Invoking DB2 commands within an EJB

      ‏2013-01-30T12:33:54Z  in response to bpaskin
      Thank you, will give it a try

      dieter