users@glassfish.java.net

Re: Possible to include HTTP header information as part of RMI-IIOP?

From: <glassfish_at_javadesktop.org>
Date: Thu, 22 May 2008 15:25:07 PDT

Yes, it is possible to do exactly what you want to do by adding a CORBA
ServiceContext to the GIOP request and response headers. The programmatic
API for this is called Portable Interceptors. Using it is a bit complicated, but here
are a few references (also easily found on Google):

There is a reasonable introduction in the article "CORBA meta-programming mechanisms"
by Doug Schmidt and Steve Vinoski at http://www.ddj.com/cpp/184403860

There is a fairly advanced and detailed tutorial (with example code) at
http://java.sun.com/j2se/1.4.2/docs/guide/idl/PI.html
Although this was written for JDK 1.4.2, there are no significant changes
in this area for JDK 5 or 6

Finally, if you need all of the details, the official specification chapter is available at:
http://www.omg.org/cgi-bin/doc?formal/01-02-57

This is actually chapter 21 of the official CORBA specification, also available at the
OMG as http://www.omg.org/cgi-bin/doc?formal/02-11-01 (this is version 3.0.1. A later
version is available, but the 3.0.1 version has the correct PI chapter in it).

I can provide more details if needed.
[Message sent by forum member 'kcavanaugh' (kcavanaugh)]

http://forums.java.net/jive/thread.jspa?messageID=276169