# ForeignConnectionFactoryBean

Overview | Related MBeans | Attributes | Operations

## Overview

This bean represents a connection factory from a remote JNDI context.

Security roles | The following roles have read, write, and invoke permission for all non-encrypted attributes and operations in this MBean: Deployer
Fully Qualified Interface Name | If you use the `getMBeanInfo` operation in MBeanTypeServiceMBean, supply the following value as this MBean's fully qualified interface name: `weblogic.j2ee.descriptor.wl.ForeignConnectionFactoryBean`
Factory Methods | Factory methods in ForeignServerBean
Additional Access Points | In addition to accessing this MBean by invoking a factory method, you can also access this MBean from the following MBean attributes:
ForeignServerBean.ForeignConnectionFactories |

## Attributes

This section describes the following attributes:

LocalJNDIName Name Notes Password | PasswordEncrypted RemoteJNDIName Username

### LocalJNDIName

The name that the remote object will be bound to in the local server's JNDI tree. This is the name that should be used to look up the object on the local server.

Privileges | Read/Write
Type | java.lang.String

### Name

The name of this entity, represented in XML as a attribute

Many of the elements within the JMS module are named entities. All of the named entities encased by a type in the XML file must be unique. This is the identifier used to delineate a particular entity within the JMS module.

This attribute cannot be modified externally from the module (for example with a deployment plan) because it may be used inside the module referentially.

Privileges | Read/Write
Type | java.lang.String

### Notes

Optional information that you can include to describe this named JMS descriptor bean.

JMS module saves this note in the JMS descriptor file as XML PCDATA. All left angle brackets (<) are converted to the XML entity `&lt;`. Carriage returns/line feeds are preserved.

Note:

  If you create or edit a note from the Administration Console, the Administration Console does not preserve carriage returns/line feeds.

Privileges | Read/Write
Type | java.lang.String

### Password

The password used in conjunction with the user name specified in the `Username` parameter to access the remote connection factory.

Privileges | Read/Write
Type | java.lang.String
Encrypted | true

### PasswordEncrypted

The encrypted value of the password.

Privileges | Read/Write
Type | byte[]
Encrypted | true

### RemoteJNDIName

The name of the remote object that will be looked up in the remote JNDI directory.

Privileges | Read/Write
Type | java.lang.String

### Username

The user name that is passed when opening a connection to the remote server (represented by this foreign connection factory).

Privileges | Read/Write
Type | java.lang.String

## Operations

This section describes the following operations:

isSet unSet |

### isSet

Return true if the given property has been explicitly set in this bean.

Operation Name | `"isSet"`
Parameters | `Object [] { propertyName }` where: `propertyName` is an object of type `java.lang.String` that specifies: property to check
Signature | `String [] { "java.lang.String" }`
Returns | `boolean`
Exceptions | `java.lang.IllegalArgumentException` IllegalArgumentException if propertyName is not a recognized property

### unSet

Restore the given property to its default value.

Operation Name | `"unSet"`
Parameters | `Object [] { propertyName }` where: `propertyName` is an object of type `java.lang.String` that specifies: property to restore
Signature | `String [] { "java.lang.String" }`
Returns | `void`
Exceptions | `java.lang.IllegalArgumentException` UnsupportedOperationException if called on a runtime implementation.