# ActiveMQServerResourceBase

- Module: [CommunityToolkit.Aspire.Hosting.ActiveMQ](/reference/api/typescript/communitytoolkit.aspire.hosting.activemq.md)
- Version: `13.4.0`
- Kind: `handle`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire)

Base class form ActiveMQ Classic and Artemis server resources.

## Definition

```typescript
interface ActiveMQServerResourceBase
  extends IComputeResource,
    IExpressionValue,
    IManifestExpressionProvider,
    IResource,
    IResourceWithArgs,
    IResourceWithConnectionString,
    IResourceWithEndpoints,
    IResourceWithEnvironment,
    IResourceWithProbes,
    IResourceWithWaitSupport,
    IValueProvider,
    IValueWithReferences {
  readonly connectionStringExpression: ReferenceExpression;
  readonly host: EndpointReferenceExpression;
  readonly passwordParameter: ParameterResource;
  readonly port: EndpointReferenceExpression;
  readonly primaryEndpoint: EndpointReference;
  readonly uriExpression: ReferenceExpression;
  readonly userNameParameter: ParameterResource;
  withConfBindMount(
      source: string,
      isReadOnly?: boolean): ActiveMQServerResourceBase;
  withConfVolume(
      name?: string,
      isReadOnly?: boolean): ActiveMQServerResourceBase;
  withDataBindMount(
      source: string,
      isReadOnly?: boolean): ActiveMQServerResourceBase;
  withDataVolume(
      name?: string,
      isReadOnly?: boolean): ActiveMQServerResourceBase;
}
```

## Properties

- `connectionStringExpression`: `ReferenceExpression` `get` -- Gets the ConnectionStringExpression property
- `host`: `EndpointReferenceExpression` `get` -- Gets the host endpoint reference for this resource.
- `passwordParameter`: `ParameterResource` `get` -- Gets the parameter that contains the ActiveMQ server password.
- `port`: `EndpointReferenceExpression` `get` -- Gets the port endpoint reference for this resource.
- `primaryEndpoint`: `EndpointReference` `get` -- Gets the primary endpoint for the ActiveMQ server.
- `uriExpression`: `ReferenceExpression` `get` -- Gets the connection URI expression for the ActiveMQ server.
- `userNameParameter`: `ParameterResource` `get` -- Gets the parameter that contains the ActiveMQ server username.

## Methods

- [withConfBindMount](/reference/api/typescript/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/withconfbindmount.md) -- `method` -- Adds a bind mount for the conf folder to a ActiveMQ container resource.
    ```typescript
  withConfBindMount(source: string, isReadOnly?: boolean): ActiveMQServerResourceBase
  ```
- [withConfVolume](/reference/api/typescript/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/withconfvolume.md) -- `method` -- Adds a named volume for the config folder to a ActiveMQ container resource.
    ```typescript
  withConfVolume(name?: string, isReadOnly?: boolean): ActiveMQServerResourceBase
  ```
- [withDataBindMount](/reference/api/typescript/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a ActiveMQ container resource.
    ```typescript
  withDataBindMount(source: string, isReadOnly?: boolean): ActiveMQServerResourceBase
  ```
- [withDataVolume](/reference/api/typescript/communitytoolkit.aspire.hosting.activemq/activemqserverresourcebase/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a ActiveMQ container resource.
    ```typescript
  withDataVolume(name?: string, isReadOnly?: boolean): ActiveMQServerResourceBase
  ```
