java - Remote lookup using @ejb annotation -


i have 2 servers instances of jboss 5, each of deployed 2 ear's. client.ear , server.ear. server ear expose ejb's. want inject clientear via annotation. using jndi lookup did fine , works. using annotation javax.naming.namingexception. when injecting session beans accross deployment artifacts global jndi name has used injection , used @ejb(mappedname ="java:global/server/component/applicationservice!com.test.server.applicationserviceinterface")

but seems not providing provider_url of remote server bound client ear instance. how configure jndi properties, ie provider_url, initial context properites annotation @ ejb?

i found forum post answers question: https://community.jboss.org/thread/228789

in refers https://docs.jboss.org/author/display/as71/ejb+invocations+from+a+remote+server+instance

and accomplish jndi lookup @ejb annotaion uses

@ejb(lookup = "ejb:earname/modulename/beanclass!fully.qualified.remoteinterface") private remoteinterface bean; 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -