This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes BEA/Weblogic and the fly likes WebLogic and CORBA Portable Interceptors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "WebLogic and CORBA Portable Interceptors " Watch "WebLogic and CORBA Portable Interceptors " New topic
Author

WebLogic and CORBA Portable Interceptors

Sharon Ben Asher
Greenhorn

Joined: Feb 07, 2008
Posts: 5
Hello Everyone.

I am having a problem with BEA WebLogic. Let me describe the problem:

Problem Description:
What I need is to pass some arbitrary piece of data between the RMI client and server, so I want to inject the data on the client and retrieve it on the server (the ultimate goal being able to trace transaction flow across multiple app servers)

CORBA Portable Interceptors fit the bill perfectly and are designed for that specific purpose. The interceptors are CORBA standard and were added to J2EE 1.4 standard. Sun own ORB, IBM WebSphere and JBOSS all support Portable Interceptors.
WebLogic does not

I looked at WebLogic documentation and could find no replacement for interception of RMI flow. The last resort is code instrumentation, but I really want to avoid that since I have to support J2SE 1.4 code that is prior to javaagent.

Has anyone ever implemented something similar for WebLogic (v8.1 and up) or can point me to any feature of the product that can help me?
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
Are you looking to intercept the IIOP stream? This is not a requirement of the EJB specification, and WebLogic Server does not expose the CORBA portable interceptor interfaces. Are you locked into WebLogic Server? If not, then JBoss does support portable interceptors as you say.


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
Sharon Ben Asher
Greenhorn

Joined: Feb 07, 2008
Posts: 5
thanks, Roger, for the prompt reply.

I understand that PI is not a requirement of the EJB specification. It is, however, part of J2EE 1.4 standard from Sun.

My application needs to support multiple vendors. Someone on another forum pointed me to WebLogic WorkContext which propagates arbitrary context across servers. This seems to fit the bill in terms of functionality, however, it needs to be coded into the client and server, whereas I was looking for external invocation like PI (which is invoked via VM arguments).
Roger Chung-Wee
Ranch Hand

Joined: Sep 29, 2002
Posts: 1683
As we all know, every EJB server is different. So, your build for every target platform will be different, even if it is only the way in which things like JNDI mappings is done.

WebLogic Server context propagation does indeed require both client and server code to work. I think you just have to accept that this is a case of needing to do some proprietary work in order to meet your business requirement.
Sharon Ben Asher
Greenhorn

Joined: Feb 07, 2008
Posts: 5
so much for java portability...
thanks anyway
michael mcknerney
Greenhorn

Joined: Sep 24, 2008
Posts: 1
just switch out the WL ORB to Sun's ORB which does support pi . . . anybody know any ill consequences of doing such ?

-Dorg.omg.CORBA.ORBSingletonClass=com.sun.corba.se.internal.corba.ORBSingleton
-Dorg.omg.CORBA.ORBClass=com.sun.corba.se.internal.Interceptors.PIORB'
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WebLogic and CORBA Portable Interceptors
 
Similar Threads
WebLogic and CORBA Portable Interceptors
using dll
RMI Context propagation in OracleAS
CORBA & Firewalls
Question about JNI and RMI-IIOP