Q
Problem solve Get help with specific problems with your technologies, process and projects.

Can an EJB bean make RMI calls to remote objects that are not EJBs?

Hi, I'm new to EJBs and would like to know if an EJB bean (especially a session bean) can explicitly make RMI calls to remote objects that are not EJBs? Thanks in advance for your advice.
I don't see why that should be a problem. There are definitely some restrictions on EJBs (no file IO, no Thread creation), but that should be ok. Just look up the remote objects as usual, or even better, register the RMI stubs in your JNDI server with your beans. Of course, be warned, any resources, such as database connections, will not have the transactional capabilitie your beans do, unless they are explicitly using the EJB resource manager and transaction manager.

Dig Deeper on Topics Archive

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchAWS

SearchCloudComputing

TheServerSide.com

Close