• Post Reply Bookmark Topic Watch Topic
  • New Topic

RMI-OID-RMI

 
Raja Ramesh Kumar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've a scenario like this...

We've two machines in Machine-1 oracle 10g (v10.1.2) Insfrastructure version installed. In the Machine-2 Oracle 10g(v10.1.2) middle tier got installed.

In machine-1 an application called 'X' deployed and it is pointing to OID in the same machine.

In machine-2 an application called 'Y' deployed and pointing to OID in machine-1.

As part of the business login application-X should communicate with application-Y using RMI protocol. Here we are getting "authentication exception". But with the same userid/password we are able to login to both X and Y applications respectively.

Amd even with standalone java application also i'm not able to lookup any of these services.

env.put("java.naming.factory.initial",
"com.evermind.server.rmi.RMIInitialContextFactory");
env.put("java.naming.security.principal",args[0]);
env.put("java.naming.security.credentials",args[1]);
env.put("java.naming.provider.url", "ormi://rmahasivabhattu:3201/X");
env.put("LoadBalanceOnLookup", "true");
ctx = new InitialContext(env);
Object obj = ctx.lookup("myservice");

Can anybody susggest solutions to this?

thanks in advance

regards,
Raja Ramesh Kumar M
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"rajaramesh_m" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

I'm not sure how it's done specifically with the Oracle implementation, but this link covers how to do normal authentication using JNDI/LDAP. Maybe it will help out.

Thanks! and welcome to the JavaRanch!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!