Hi Arun,
Your suggestion worked perfectly. My code looks like this now:
DistributedCache.addCacheFile(new URI(uri), conf);
DistributedCache.createSymlink(conf);
Thanks,
Cristi
> On Sep 7, 2010, at 6:02 AM, Cristi Cioriia wrote:
> > So I guess what I would like to have is something like
> > DistributedCache.addCacheFile(new
> > URI("/user/ccioriia/storage-conf.xml#storage-conf.xml"), conf);
> > which would also add it to the classpath so that the call
> > DatabaseDescriptor.class.getClassLoader().getResource("storage-
> > conf.xml");
> > returns the URL to the file instead of null.
> > Can you provide me an advice about how I could do this?
>
>
> Yep, also call DC.createSymlink(Configuration) in your launching
> program.
>
> Arun
--
Cristian-Andrei Cioriia
Programator Java
1&1 Internet Development S.R.L. - Bucharest/Romania - Web Applications
Hosting Romania
18 Mircea Eliade St
Sect 1, Bucharest
RO Bucharest, 012015
Număr de telefon: +40 751 812 984
cristian-andrei.cioriia@1and1.ro
|