Hi
Yepp - Done that.
Here is an example :
Public static function loadSpringBean($name)
{
$session=java_session();
$ctx=java("org.springframework.web.context.support.WebApplicationContextUtils")->getWebApplicationContext($session->getServletContext());
return $ctx->getBean($name);
}
Call this method from where you want to use a Spring bean.
Hermod
-----Opprinnelig melding-----
Fra: php...@li... [mailto:php...@li...]
Sendt: 20. november 2012 21:10
Til: php...@li...
Emne: [Php-java-bridge-users] php-java-bridge with spring framework
Hi,
I would like to know if is possible to integrate the php-java bridge with a project created with spring and hibernate. I'm having some problems and I think it's because the bridge is not implementing the spring context that I use in the project.
Can I integrate the bridge with the spring context?
Thanks,
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DNB Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email.
This email message has been virus checked by the anti virus programs used in the DNB Group.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|