TraderHome home = (TraderHome)ctx.lookup("TraderJNDI");
should work. Your JNDI name is
Thanks for pointout out the error. Its working fine.
I am new to JBOSS.My ejb is working fine..What is the CLASSPATH to set to run the client?
Rightnow I am setting
But getting exceptions
as Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/tm/TransactionPropagationContextFactory
I know i don;t need to have all the above jars.
CAN U PLEASE tell me what r the exact jars needed to run the client.
I'm by no means a JBOSS expert, but I thought I'd share my CLASSPATH since I most recently had the same issue. You probably want to ignore everything except the JBoss jars, but I thought I'd include the path for my client in its entirety:
Hope that helps.
By the way, not sure if you're doing this by manually, but I'm using IntelliJ's idea to create specific JBoss libraries that I can include when necessary.