Hello!

> I have found several examples in java code for registering the custom
function but nothing
showing how to do it in the xml config file.

// Preparing a cache configuration.CacheConfiguration cfg = new
CacheConfiguration();
// Registering the class that contains custom SQL
functions.cfg.setSqlFunctionClasses(MyFunctions.class);

should roughy convert to
<bean class="org.apache.ignite.configuration.CacheConfiguration">
<property
name="sqlFunctionClasses"><list><value>com.pany.MyFunctions</value></list></property>

> Also i am unsure where the classpath will be given that this is all
running with a .net wrapper.

You can put your JAR and all its dependencies under $IGNITE_HOME\libs

Under Windows some flavor of IGNITE_HOME will be created for you
implicitly, but you can always specify your own IgniteHome, pointing to
unzipped binary Ignite release.

Regards,
-- 
Ilya Kasnacheev


ср, 27 февр. 2019 г. в 18:42, Pavel Tupitsyn <[email protected]>:

> Hi Wayne,
>
> You can write a service in Java that registers custom SQL function.
> Then call that service from .NET.
> Classpath is provided in IgniteConfiguration.JvmClasspath.
>
> See https://ptupitsyn.github.io/Ignite-Plugin/ to get some idea on how to
> combine Java-based Ignite stuff with Ignite.NET.
> Let me know if you need more details.
>
> Thanks,
> Pavel
>
> On Wed, Feb 27, 2019 at 5:54 PM wt <[email protected]> wrote:
>
>> Thanks Ilya
>>
>> So i need a little guidance here if you don't mind i am just throwing
>> together a quick test as a precursor to a new project.
>>
>> I have a .net ignite service wrapper
>>
>>
>> ----
>>  var cfg = new IgniteConfiguration()
>>                 {
>>                     SpringConfigUrl = "/ignitecfg.xml",
>>                     DiscoverySpi = new TcpDiscoverySpi
>>                     {
>>                         IpFinder = new TcpDiscoveryStaticIpFinder
>>                         {
>>                             Endpoints = new[] { "127.0.0.1:47500..47509"
>> }
>>                         },
>>                         SocketTimeout = TimeSpan.FromSeconds(0.3)
>>                     }
>>
>>                 };
>>
>>                 Ignition.Start(cfg);
>>
>> -----
>>
>> i am using the spring xml section to register the custom sql functions
>> which
>> i have written in java and compiled to a jar file. I have found several
>> examples in java code for registering the custom function but nothing
>> showing how to do it in the xml config file. Also i am unsure where the
>> classpath will be given that this is all running with a .net wrapper. Any
>> guidance here will be super awesome.
>>
>> thanks
>> Wayne
>>
>>
>>
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>>
>

Reply via email to