Skip to main content

[PROJECT PHOBOS] Calling SessionBeans

1 reply [Last post]
Joined: 2005-07-17


I'm posting this here, since there is no other forum for project phobos here...

I found a tutorial on how to call a JPA Unit/entity Beans inside phobos, but I'm still looking for a way of calling session beans - is there any way at all?


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-10

If you're running Phobos in a servlet container, you can use JNDI just as in any other web application: get an initial context, lookup the home interface, call create, etc. The JavaScript code would look very similar to the Java one. Don't forget the Packages prefix, e.g. to get the initial context you need to do:
var ic = new Packages.javax.naming.InitialContext();