• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Communication between two EJB container

 
Damodar Mukherjee
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know how to communicate between two EJB containers or two web Containers or simply J2EE containers? I will be glad if you people please help me regarding this with example.

Thank You...
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java-based application servers communicate with each other using the Java Naming and Directory Interface API.

http://java.sun.com/products/jndi/
 
Damodar Mukherjee
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You so Much..
 
Damodar Mukherjee
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please give me any Idea how can I call a remote Interface in a J2EE container from a remote J2EE container.
How can I do lookup for he EJB in another container???
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Get the address of the naming registry of the remote J2EE container.

And then lookup. Same as we do with single Container.

Properties p=new Properties();
p.put(Context.PROVIDER_URL,"t3://ipaddess:7001/");
p.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
Context ctx=new InitialContext(p);
followed by Lookup.

Please correct me if am wrong.

Thanks.
 
Damodar Mukherjee
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You so Much... Your code helped me a lot...
 
Jetendra Ivaturi
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good congrates.

Which app server are you using?
 
Damodar Mukherjee
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Glassfish, The application is just in design phase. I wouls ask you one more question. Can you please suggest me how ho I communicate a a remote C++ application with J2EE Container with out using web Services?

Is Socket and XML is right choice? if right how can I fit all those things?

My front end is in jsp/Servlet, want the database to access trough EJB and My database is populated by a C++ application

Can you please help me...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic