This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WebLogic and CORBA Portable Interceptors

 
Sharon Ben Asher
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sharon Ben Asher
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so much for java portability...
thanks anyway
 
michael mcknerney
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic