Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need to access an EJB in another Domain

1 view
Skip to first unread message

Vasu

unread,
Jul 8, 2002, 12:50:06 AM7/8/02
to

Hi,

I am trying to call a EJB (B) in another domain from an EJB (A).

EJB - A is in Domain D1 and EJB - B is in domain D2. Both A and B are stateless session
beans. A can update some local entity beans and the call B which can update some
related entity bean in it's domain.

From A I can see that B is executing but then I see the errors below. How do I get
rid of these errors (assuming that EJB B just for now does a bunch of system.outs).

Secondly How do i guarantee transaction across the domains.

//==========================================================
<Jul 7, 2002 8:48:36 PM PDT> <Notice> <WebLogicServer> <000354> <Thread "ListenT
hread.Default" listening on port 7552>
printParam :: Executing App1 Session Bean 300 Message = This is a test message f
rom the engine
<Jul 7, 2002 8:55:09 PM PDT> <Error> <JTA> <110201> <User [<anonymous>] is not a
uthorized to invoke startRollback on a transaction branch.>
weblogic.management.NoAccessRuntimeException: Access not allowed for subject: pr
incipals=[], on ResourceType: ServerConfig Action: execute, Target: lookupServer
Runtime
at weblogic.management.internal.Helper$IsAccessAllowedPrivilegeAction.ru
n(Helper.java:2012)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:721)
at weblogic.management.internal.Helper.isAccessAllowed(Helper.java:1857)

at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:918)
at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unkn
own Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:359)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:762)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
<Jul 7, 2002 8:55:38 PM PDT> <Error> <JTA> <110201> <User [<anonymous>] is not a
uthorized to invoke startRollback on a transaction branch.>
<Jul 7, 2002 8:55:39 PM PDT> <Error> <JTA> <110201> <User [<anonymous>] is not a
uthorized to invoke startRollback on a transaction branch.>
printParam :: Executing App1 Session Bean 300 Message = This is a test message f
rom the engine
<Jul 7, 2002 9:42:12 PM PDT> <Error> <JTA> <110201> <User [<anonymous>] is not a
uthorized to invoke startRollback on a transaction branch.>
<Jul 7, 2002 9:42:42 PM PDT> <Error> <JTA> <110201> <User [<anonymous>] is not a
uthorized to invoke startRollback on a transaction branch.>
<Jul 7, 2002 9:42:43 PM PDT> <Error> <JTA> <110201> <User [<anonymous>] is not a
uthorized to invoke startRollback on a transaction branch.>
//=================================================



Yeshwant

unread,
Jul 8, 2002, 4:55:54 PM7/8/02
to

in 6.1 you have to set the same system password for both domains
in 7.0 you have to set the credentials same for both the domains
(done through the console )

Christian

unread,
Jul 10, 2002, 2:01:12 PM7/10/02
to

Hi,

in WLS 7.0 I have defined the same user with the same password in both domains (D1
and D2), but the result of calling the Bean B in the domain D2 from Bean A in domain
D1 is following exception (both EJBs are secured with method permissions, the client
calls Bean A using JAAS):

java.lang.SecurityException: Invalid Subject: principals=[wittmer, testgroup]

Does that mean, that a Bean to Bean call is not possible if the beans are not in
the same WLS domain?

Thanks,
Christian

0 new messages