View Full Version : Access Remote EJB
Mar 11th, 2005, 03:51 AM
How can I access remote EJBs. Where should we place application context files. What context file should we need. Im new to Spring.
Mar 11th, 2005, 03:58 AM
See http://www.springframework.org/docs/reference/ejb.html#ejb-access. The example is local, but the principle is the same.
The application context files containing definitions like this should be part of your client. For example, you might have a remote web application or rich client. You also need to ensure that you have the correct JNDI properties set, and any necessary client-side libraries. Please consult the documentation for your application server for those issues.
Mar 11th, 2005, 04:58 AM
Thanx for your immediate reply.
I can able to access the reomote EJB using normal java techniques.
I dont know how to implement that in Spring.Could you please help me.
I have created a java client which access the Remote EJB. It works fine.
The steps involved are
1.The EJBs are having ClientLoginModule. Using javax.security.auth.login.LoginContext I login.
2.Im setting properties like javax.naming.Context.INITIAL_CONTEXT_FACTORY javax.naming.Context.PROVIDER_URL
java.naming.factory.url.pkgs to InitialContext.
3. Using IC i look up the home interface
4. using home.create() Im getting service to call their methods.
This is working fine
How can I implement this using Spring Framework. What will be the file structure including .xml files and classes.
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.