I'm a little lost and trying to find answers but am struggling, so please forgive me if anything appears...well stupid.
I am trying to follow the org.jboss.remoting.samples.transporter.serialization and incorporate it into a seam project I have deployed as an ear. In other words the server side will be running within the seam application and client side will be a standalone distributed as a jar.
I have gotten it working with built in types i.e a String.
So change method footprint from:
public Order processOrder(Order order)
public String processOrder(String text)
I can call from the Client side just fine:
OrderProcessor orderProcessor = (OrderProcessor) TransporterClient.createTransporterClient(locatorURI, OrderProcessor.class); System.out.println("Order to be processed: " + order); String resultString = orderProcessor.processOrder("My Text");
and get back a result.
However if I try to use a custom object, like Order. I get ClassNotFoundException on the server side. How do I configure JBoss to use the classes deployed in my ear file? What confuses me is I have deployed the server transporter in my ear file as well as Order.class, however Order.class can't be found. I have tried following the instructions here: http://docs.jboss.org/jbossremoting/docs/guide/2.2/html/ch07.html but I think that I am misunderstanding the purpose of those instructions.
Can anyone clarify this for me?
The discussion in Chapter 7 of the Remoting Guide concerns the matter of downloading classes from the server to the client, so I don't think it's relevant to your problem. Before I refer you to another forum (Installation, Configuration & Deployment - http://community.jboss.org/en/jbossas/config), what does the CNFE stacktrace look like?