[Logo] Terracotta Discussion Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Error unmarshalling Job  XML
Forum Index -> Quartz
Author Message
bjoern

neo

Joined: 08/07/2012 06:51:39
Messages: 3
Offline

Hi,
i want to use RMI to start/stop jobs in my application. The following line throws an UnmarshalException:

Code:
JobDetail job = scheduler.getJobDetail(key);


Exeption:
Code:
Caused by: java.rmi.UnmarshalException: error unmarshalling return; nested exception is: 
 	java.lang.ClassNotFoundException: de.csconnect.udb.business.dienste.impl.TestJob
 	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:178)
 	at org.quartz.core.QuartzScheduler_Stub.getJobDetail(Unknown Source)
 	at org.quartz.impl.RemoteScheduler.getJobDetail(RemoteScheduler.java:720)
 	... 2 more


I know that i cannot access the class TestJob (different codebase), but all i want is to use its interface JobDetail. Is there a way to tell RMi just to unmarshall the interface? Any other idea how this problem may be solved?

Thanks Björn
jhouse

seraphim
[Avatar]
Joined: 11/06/2009 15:29:56
Messages: 1654
Online


> Is there a way to tell RMi just to unmarshall the interface?

No, RMI does not work that way.

> Any other idea how this problem may be solved?

The FAQ has links to some RMI references, also there are many out there if you just google.

http://www.quartz-scheduler.org/documentation/faq#FAQ-rmi
bjoern

neo

Joined: 08/07/2012 06:51:39
Messages: 3
Offline

Hi,
thanks for the quick answer, suddenly i realize you only need the interface of the service, but the implementation of the passed objects. So there is no way to write an app that starts/stops jobs via rmi without having the same codebase, right? Is there an other technique i might use?
 
Forum Index -> Quartz
Go to:   
Powered by JForum 2.1.7 © JForum Team