There doesn't seem to be a way to take advantage of the jboss remoting with
EJB3 (at least no responses). I was hoping to test between the
serializationtype=java and jboss, but oh well.
For anyone else interested, the following is all you need to do:
jndi.properties
| java.naming.provider.url=jnp://localhostorserver:1099
|
ClientSample.java
| Properties env = new Properties();
| //for security env.setProperty(Context.SECURITY_PRINCIPAL,
username);
| //for security
env.setProperty(Context.SECURITY_CREDENTIALS, password);
| env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jboss.security.jndi.JndiLoginInitialContextFactory");
| InitialContext ctx = new InitialContext(env);
|
| MyBeanInterface mbi =
(MyBeanInterface)ctx.lookup("MyBean/remote");
| //mbi.sayHello();
| return mbi;
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3923344#3923344
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3923344
-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user