|
|
|
||||||||
|
IceGrid sessions, Glacier2 and factory objects?
Working with Glacier2 is still puzzling me. Any help is greatly appreciated.
As a variation on the IceGrid/"sayHello()" example, I extended the Demo module with a "HelloFactory": Quote:
Here comes my problem: Without using the Glacier2 router, both ways work as expected. However, with the Glacier2 router in place, the sayHello() call directly on the allocated Hello object still works, but the alternative via the factory yields an exception: Quote:
Below follow some details On the client, a session is obtained via Quote:
Quote:
Quote:
Also on the client, I select between the direct approach and the factory using a boolean "withFactory": Quote:
The server side implementation looks like: Quote:
Quote:
|
|
||||||
|
As Matthew pointed out, the problem is most likely that Glacier2 filtering only allows invocations on allocated objects (see 38.14.3 Allocating Servers and Objects).
To allow your client to access objects created by the factory, you can interpose a session like described by Matthew's article from the Connections newsletter issue #19. This interposed session will allow you to disable the default filtering or to add your own filtering. Another option is to mark the server as allocatable by adding allocatable="true" to the XML server element. With this attribute set, the allocation of the factory object will cause the allocation of the server and will alter the Glacier2 filtering to allow invocations on the objects from the "Hello" object adapter of the allocated server. Cheers, Benoit. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IceGrid sessions | mwilson | Help Center | 1 | 03-19-2007 04:14 PM |
| Multiple objects with IceGrid | lucsat | Help Center | 3 | 01-16-2007 12:35 PM |
| Glacier2, IceGrid, and Load Balancing | seth | Help Center | 15 | 11-06-2006 12:03 PM |
| Glacier2 multiple sessions per user | xdm | Help Center | 9 | 02-08-2006 04:58 PM |
| Destroying sessions with Glacier2 | Wayetender | Help Center | 1 | 07-31-2005 06:40 PM |