Re: Creating fields, container, containerlist

Guillaume Kuhmel <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Hi Serge,

Another question regarding the database access: is it 
possible/recommended for webApp to access the Jahia connection pool?
Or do you advise to use, for instance the tomcat connection pooling via 
JNDI?

In my situation i want to create 3 webapps that use the that database 
that Jahia (but otjher tables)

Thanks



Serge Huber wrote:

>
> Hi Eric,
>
> Jahia uses a lot of cache systems to reduce load on the database, so 
> accessing directly the database functions will not work as the caches 
> will not be updated. Also, the subject of content creation has been 
> covered multiple times in this mailing list, try doing a search for 
> saveContainer in this mailing list.
>
> Regards,
>  Serge Huber.
>
> eric petit wrote:
>
>> Hello everybody,
>>
>> I have a question about the way to insert new ContainerList , new 
>> Container and Fields inside the Jahia DB.
>> My problem is that I use some servlet to do some calcul and I need to 
>> insert the result of this calcul inside Jahia fields,container and 
>> ContainerList.
>>
>> I managed to find the right method to do it but I'm a little bit lost 
>> with the jahia API I can use to do it.
>> I try to use those API : 
>> ServicesRegistry.getInstance().getJahiaFieldService().createJahiaField(...) 
>>
>> db_create_container(...)
>> db_create_container_list(...)
>>
>> But I does not work very well.
>> I just want to know if someone (maybe Serge Huber)could give me the 
>> right way to create and to insert fields , containers and 
>> containerlist into the Jahia DB without using Admin interface.
>>
>> Thanks a lot.
>>
>> Eric.
>>
>>
>>  
>>
>

-- 
------------------------------------------------------------------------

*Guillaume Kuhmel*
*Ingénieur Concepteur Développeur*
*[email protected] <mailto:[email protected]>*
*Tél. : +33 (0)6.88.33.36.16*

	

*http://www.sqli.com* <http://www.sqli.fr>
*Groupe SQLI**
**75 rue Marcelin Berthelot
13848 Aix en Provence Cedex 3*
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.