1. /*
  2. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  3. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. */
  5. package javax.resource.spi;
  6. import javax.resource.ResourceException;
  7. /** The ManagedConnectionMetaData interface provides information about the
  8. * underlying EIS instance associated with a ManagedConnection instance.
  9. * An application server uses this information to get runtime information
  10. * about a connected EIS instance.
  11. *
  12. * <p>The method ManagedConnection.getMetaData returns a
  13. * ManagedConnectionMetaData instance.
  14. *
  15. * @version 0.8
  16. * @author Rahul Sharma
  17. * @see javax.resource.spi.ManagedConnection
  18. **/
  19. public interface ManagedConnectionMetaData {
  20. /** Returns Product name of the underlying EIS instance connected
  21. * through the ManagedConnection.
  22. *
  23. * @return Product name of the EIS instance.
  24. **/
  25. public
  26. String getEISProductName() throws ResourceException;
  27. /** Returns product version of the underlying EIS instance connected
  28. * through the ManagedConnection.
  29. *
  30. * @return Product version of the EIS instance
  31. **/
  32. public
  33. String getEISProductVersion() throws ResourceException;
  34. /** Returns maximum limit on number of active concurrent connections
  35. * that an EIS instance can support across client processes. If an EIS
  36. * instance does not know about (or does not have) any such limit, it
  37. * returns a 0.
  38. *
  39. * @return Maximum limit for number of active concurrent connections
  40. **/
  41. public
  42. int getMaxConnections() throws ResourceException;
  43. /** Returns name of the user associated with the ManagedConnection
  44. * instance. The name corresponds to the resource principal under whose
  45. * whose security context, a connection to the EIS instance has been
  46. * established.
  47. *
  48. * @return name of the user
  49. **/
  50. public
  51. String getUserName() throws ResourceException;
  52. }