Ole,
After restarting JBoss (2.2.1 with Jetty), the getEJBMetaData().getHomeInterfaceClass()
works the way it should again.
I am also confused, why before restarting JBoss it was acting so strange!
Now it seems to work fine.
Thanxs a lot for your help!
Best regards
Lorenzo
Ole Husgaard wro
Lorenzo Resta wrote:
> I have tried the getEJBMetaData().getHomeInterfaceClass() method in JBoss,
> but all i am getting here is the "$Proxy2" class name again,
> so i suspect that the mentioned method returns the class that implements
> the Home interface.
I dont think it should (or does), and I
Maurice,
I did set all the JNDI properties like this:
private String J2EE_BEAN_INITIAL_CONTEXT = "org.jnp.interfaces.NamingContextFactory";
private String J2EE_SERVER = "maloja:1099";
private String J2EE_SERVER_USER = "username";
private
>I have tried the getEJBMetaData().getHomeInterfaceClass() method in
>JBoss, but all i am getting here is the "$Proxy2" class name again,
>so i suspect that the mentioned method returns the class that implements
>the Home interface.
The $Proxy2 is a class that is dynamically generated and wraps
Hi Rajesh,
You should be able to look up your beans in JNDI and call your desired
methods with help of java reflection.
I just tried a little example. It looks like that:
The registerEJB() method takes a JNDI context name as parameter and looks
up your beans in the given context name
Hi Ole,
I have tried the getEJBMetaData().getHomeInterfaceClass() method in JBoss,
but all i am getting here is the "$Proxy2" class name again,
so i suspect that the mentioned method returns the class that implements
the Home interface.
There is also the getEJBMetaData().getEJBHome(), but when
); log.debug("HomeInterface: " + home.getEJBMetaData().getHomeInterfaceClass()); Burkhard - Original Message - From: "Lorenzo Resta" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 19, 2001 4:49 PM Subject: [JBoss-user] Classnames in JNDI Hi,
Hi,
Lorenzo Resta wrote:
> Shouldn't the getEJBMetaData().getHomeInterfaceClass() return the home interface, or
>does it
> return the class that implements the home interface?
I think it should return the home interface class, and
_not_ the class implementing the home interface.
The EJB1.1 spe
From: Lorenzo Resta[SMTP:[EMAIL PROTECTED]]
> Reply To: [EMAIL PROTECTED]
> Sent: Thursday, July 19, 2001 12:20 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [JBoss-user] Classnames in JNDI
>
> Hi Burkhard,
>
> The problem is that i don't know
Alexander,
I know that somebody has to implement an interface.. That's not the point.
I was simply trying the find the name of the home interface.
It would be nice if JBoss would publish the name of the home interface in
JNDI.
Shouldn't the getEJBMetaData().getHomeInterfaceClass() return
Lorenzo,
1. Actually the *real* name is the "$ProxyN".
JBoss uses dynamic proxy to construct a
sort of stub for your EJB client.
The returned "$Proxy" class implements
your HomeInterface.
2. You HomeInterface is the *interface*.
So anyway, something should implement it.
What did you expect?
age -From: "Lorenzo Resta" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Thursday, July 19, 2001 4:49 PMSubject: [JBoss-user] Classnames in JNDI
Hi,Does someone know how to get the thre "real" class names of EJB's lookedup through a given context?Right now i t
JBMetaData().getHomeInterfaceClass());
Burkhard
- Original Message -
From: "Lorenzo Resta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 4:49 PM
Subject: [JBoss-user] Classnames in JNDI
> Hi,
>
> Does someone know how to get the thr
Hi,
Does someone know how to get the thre "real" class names of EJB's looked
up through a given context?
Right now i try to look up all name in a specified context like this:
myContext = new InitialContext();
theNames = myContext.list("/company/applications");
while(theNames.ha
14 matches
Mail list logo