# org.omg.CORBA.ORBPackage

***

1. **Creating an ORB**:

   ```java
   // Create an ORB
   ORB orb = ORB.init(args, null);
   ```
2. **Getting the root POA**:

   ```java
   // Get the root POA
   POA rootPOA = orb.resolve_initial_references("RootPOA");
   ```
3. **Creating an object reference**:

   ```java
   // Create an object reference
   ObjectReference objRef = ORB.string_to_object("IOR:00000000000000000000000000000000");
   ```
4. **Getting the object**:

   ```java
   // Get the object
   Object obj = orb.string_to_object("IOR:00000000000000000000000000000000");
   ```
5. **Invoking a method on an object**:

   ```java
   // Invoke a method on an object
   obj.invoke("methodName", new Object[] {});
   ```
6. **Creating a servant**:

   ```java
   // Create a servant
   Servant servant = new MyServant();
   ```
7. **Activating a servant**:

   ```java
   // Activate a servant
   servant.activate(id, rootPOA);
   ```
8. **Deactivating a servant**:

   ```java
   // Deactivate a servant
   servant.deactivate(id, rootPOA);
   ```
9. **Obtaining a reference to an object**:

   ```java
   // Obtain a reference to an object
   ObjectReference objRef = servant.getReference();
   ```
10. **Creating an IOR**:

```java
// Create an IOR
IOR ior = orb.create_ior(servant, id);
```

11. **Getting the string representation of an IOR**:

```java
// Get the string representation of an IOR
String iorStr = ior.toString();
```

12. **Creating an IIOP profile**:

```java
// Create an IIOP profile
IIOPProfile iiopProfile = new IIOPProfile();
```

13. **Setting the host**:

```java
// Set the host
iiopProfile.host = "hostName";
```

14. **Setting the port**:

```java
// Set the port
iiopProfile.port = 1050;
```

15. **Getting the default IIOP profile**:

```java
// Get the default IIOP profile
IIOPProfile defaultIiopProfile = orb.get_default_IIOP_profile();
```

16. **Setting the default IIOP profile**:

```java
// Set the default IIOP profile
orb.set_default_IIOP_profile(iiopProfile);
```

17. **Getting the default ORB policy factory**:

```java
// Get the default ORB policy factory
PolicyFactory policyFactory = orb.get_default_policy_factory();
```

18. **Creating a policy**:

```java
// Create a policy
Policy policy = policyFactory.create_policy(PolicyType.TRANSACTION_POLICY_TYPE,
new TransactionPolicyImpl());
```

19. **Adding a policy to the ORB**:

```java
// Add a policy to the ORB
orb.set_policy(policy);
```

20. **Getting a policy from the ORB**:

```java
// Get a policy from the ORB
Policy policy = orb.get_policy(PolicyType.TRANSACTION_POLICY_TYPE);
```

21. **Creating an AOT strategy**:

```java
// Create an AOT strategy
AOTStrategy aotStrategy = orb.create_aot_strategy();
```

22. **Setting the AOT strategy**:

```java
// Set the AOT strategy
orb.set_aot_strategy(aotStrategy);
```

23. **Getting the AOT strategy**:

```java
// Get the AOT strategy
AOTStrategy aotStrategy = orb.get_aot_strategy();
```

24. **Creating an IOR strategy**:

```java
// Create an IOR strategy
IORStrategy iorStrategy = orb.create_ior_strategy();
```

25. **Setting the IOR strategy**:

```java
// Set the IOR strategy
orb.set_ior_strategy(iorStrategy);
```

26. **Getting the IOR strategy**:

```java
// Get the IOR strategy
IORStrategy iorStrategy = orb.get_ior_strategy();
```

27. **Creating an ORB listener**:

```java
// Create an ORB listener
ORBListener orbListener = new MyORBListener();
```

28. **Adding an ORB listener**:

```java
// Add an ORB listener
orb.add_listener(orbListener);
```

29. **Removing an ORB listener**:

```java
// Remove an ORB listener
orb.remove_listener(orbListener);
```

30. **Getting the list of ORB listeners**:

```java
// Get the list of ORB listeners
ORBListener[] orbListeners = orb.get_listeners();

```
