The spec indicates that a bean can implement multiple interfaces. The spec also 
has annotations to support this as in:


public interface IState {
    public String getState();
}

public interface ICountry {
    public String getCountry();
}

@Stateless
@Remote({IState.class,ICountry.class})
public class LocationInformation implements IState,ICountry {
    public String getState() {
        ...
    }

    public String getCountry() {
        ...
    }
}


The specification is vague on how to interact with a bean defined this way.

>From a standalone client, how is the lookup done? Deploying this to JBoss does 
>not automatically put anything into the JNDI namespace the way it does when 
>you are working with a single remote business interface. If you were 
>interacting with it from within the container, say from another bean, how 
>could you inject a reference to this bean?

Logically, it seems like you would have to lookup and work with each interface.

I am curious to know how this should be done in from the perspective of the 
spec and how (or if) it can be done with JBoss.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3916093#3916093

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3916093


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to