access a Local Session Bean from another EAR?

前端 未结 3 1440
深忆病人
深忆病人 2020-12-18 14:05

How can I call a Local Session Bean inside an EAR from another EAR, both deployed in the same Glassfish v3 domain?

This is the structure:

G         


        
3条回答
  •  情歌与酒
    2020-12-18 14:40

    This is the first message I post on Stackoverflow but I admit I read it often. By the way, sorry in advance for my english.

    I think I found an alternative solution to this issue :

    I have annotated my EJB with @Remote and here's my sun-ejb config.

    sun-ejb-jar.xml

      
        XXX
    
        
            
                required 
                required
                supported
                required
            
    
            
                supported
            
        
      
    

    After some tests, it appears that the EJB is not accessible by a client without a known certificate. The others EARs can access to this EJB without any authentication.

    Edit: I tried the ClassLoader solution but it's not viable for my project

提交回复
热议问题