[Design of JBoss Transaction Services] - Re: IIOP stub compiler design problem
by adrian@jboss.org
"jhalliday" wrote : Adrian -
| What's the correct technique where a client application is needing to use dynamically generated stubs? Presumably the compilation occurs on the server and the stub is sent down to the client. Does the generated code do runtime lookup of the ORB to use in the client JVM? How do I interfere with that process, since ORBInitialContextFactory is not present on the client? Or do I need to add it to the client classpath, even though it's part of the /server/lib not /client/lib It seems like if I can do a ORBInitialContextFactory.setORB(myORB); in the client and the dynamically loaded stubs will respect it then that should work?
The ORBInitialContextFactory should be automatically setup by the appclient environment.
If you are outside an appclient then you need to do it yourself.
Other alternatives include:
1) Setting the ORB in the environment yourself (after the initial context
is constructed)
2) Configuring the ORBInitialContextFactory yourself
3) Writing your own ICF
4) Let CosNaming create an ORB for every request, but override all
the system properties to make it use JacORB
when it creates a new one (see the testsuite for details).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086067#4086067
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086067
18 years, 6 months
[Design of JCA on JBoss] - Re: Resource adapter transaction timeout enforcement
by adrian@jboss.org
"david.lloyd(a)jboss.com" wrote :
| Remoting has no state, or direct awareness of transactions. However, whatever service you're connecting to by way of Remoting may (and probably does). The reason Remoting 3 has this capability is so that there's a single standard way to propagate transaction state between endpoints - whether it's a database to an app server, two app servers together, or two client applications that don't even know anything about JTA or JCA or anything like that.
|
I don't understand. Unless I've misunderstand your requirement.
What you describe is called OTS/JTS. It's already a standard
and is probably a lot more complicated than you've envisoned to do correctly
and efficiently. :-)
There's also already an implementation of JTS that uses remoting in JBoss5 - see the
transaction project, but we are dropping it in favour of JBoss JTS (which should be augmented with a version that runs over remoting rather than just RMI/IIOP).
There's also some overlap with transactional webservices.
You need to speak to the transaction team and make sure you are on the same page.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4086052#4086052
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4086052
18 years, 6 months