Re: INFORMIX-4GL AND JAVA
Posted in 2000
Mike Segel a écrit : > As its been pointed out, > you would be better off rewriting your 4GL functions into java. > > You could take a shortcut, and use JNI (Java Native Interface ) to C and > compile your 4GL to C, but its going to be an ugly kludge. > Did jou know how i can do this, because it's my need, i've got 4 functions write in informix-4gl ( for create customer, orders, and consult stock items ). So it's a small part of my application, and we want used this solution to create a web site for our customers. > > BUT! If you bite the bullet and convert to Java, you then can run the code > anywhere including the engine. (If you upgrade to 9.x IDSwhatever or > Foundation.2000) > > Take the time and think about it. Doing the conversion now will end up > being the best thing in the long run. Oh and do it by hand. This does two > things. First it familiarizes you with the code, second, you are switching > from a procedureal language to an OO language. You may want to consider > redesigning your business logic. > > But hey, what do I know? > I'm just getting paid to do Java against an Oracle database. (I'm getting > paid to learn Oracle. Fancy that!) > > -Uncle Mikey. > > Jamel SMATI wrote: > > > Hi, > > > > How can i, used my informix-4gl functions inside a java program. > > I supposed, i need to compile my informix-4gl functions in C with c4gl, > > but after i don't know what to do. > > > > Then , i can develop a class accessed with RMI, and i don't have to > > rewrite all my code. > > > > Thanks for your answers.