wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes Calling EJB 2.0 of websphere application server 6.1 from EJB 2.0 websphere application server 8.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Calling EJB 2.0 of websphere application server 6.1 from EJB 2.0 websphere application server 8.5" Watch "Calling EJB 2.0 of websphere application server 6.1 from EJB 2.0 websphere application server 8.5" New topic
Author

Calling EJB 2.0 of websphere application server 6.1 from EJB 2.0 websphere application server 8.5

Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
Hi All,

In project there is requirement where we need to call EJB deployed on remote machine on WebSphere application server 6.1 from EJB application deployed on local machine on WebSphere application server 8.1.
Calling flow is as follow,


When calling remote EJB WAS 6.1 from WAS 8.5, call succeed & return to EJB WAS 8.1 with expected result, when flow came to the return statement of EJB WAS 8.1 InvocationTargetException is being thrown, stack trace is as follows,
when I commented call to remote EJB WAS 6.1 then it works fine, ever though in below stack trace there is no InvocationTargetException but it is thrown underneath.

I do not understand call to EJB WAS 6.1 is success but why throwing exception while returning from EJB WAS 8.5 to service locator?



Please help me to understand issue...Thanks in advance.


Thanks,
Shailesh
Dieter Quickfend
Bartender

Joined: Aug 06, 2010
Posts: 543
    
    4

Try turning on trace for both servers - I suspect it's either a resource issue or a security issue. are you passing parameters to the call, and if so, are they Serializable? Does your resource support two-phase commit? Are you using global security? if so, is "Transaction Service > Enable protocol security" turned off in the admin console?


Oracle Certified Professional: Java SE 6 Programmer && Oracle Certified Expert: (JEE 6 Web Component Developer && JEE 6 EJB Developer)
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
Hi,

Thanks Dieter for reply you are right it is a security issue. fix by doing bellow setting on admin console of servers.
we have been able to fix issue by unchecking checkbox of "Enable administrative security" from both server 6.1& 8.5.

Admin console --> Security tab(left menu) --> Global Security -->disable "Enable administrative security" check box from "Administrative security" section.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling EJB 2.0 of websphere application server 6.1 from EJB 2.0 websphere application server 8.5