What is the maximum number of connections allowed to a Metaspace? Is it possible to connect to the same metaspace from the same process in Java?

What is the maximum number of connections allowed to a Metaspace? Is it possible to connect to the same metaspace from the same process in Java?

book

Article ID: KB0093080

calendar_today

Updated On:

Products Versions
TIBCO ActiveSpaces -
Not Applicable -

Description

Resolution:
A single process can only have a single connection to a particular metaspace (it can be connected to more than one separate metaspace however). There is an easy way to address this. You can use the ASCommon.getMetaspace(String metaspaceName) as often as you want:
  • If you are already connected to the metaspace in question, it will return a copy of the valid metaspace object that you can use.
  • If the process is not already connect to the named metaspace then this call will return null. In that case you can call Metaspace.connect() to make your initial connection to the Metaspace.

Issue/Introduction

What is the maximum number of connections allowed to a Metaspace? Is it possible to connect to the same metaspace from the same process in Java?

Additional Information