import coldfusion.cfc.CFCProxy;
import coldfusion.cfc.CFCProxy;
cfcConnector = new CFCProxy(cfcPath, true); //cfcPath needs to be absolute
Object[] args = { "my message" };
cfcConnector.invoke("onMessage", args); // call the method "onMessage" defined in your CFC
Hey John,
You can also create a CFC like this:
CFMLEngine engine = CFMLEngineFactory.getInstance();
Creation creationUtil = engine.getCreationUtil();
PageContext pageContext =
engine.getThreadPageContext();
Component cfc = creationUtil.createComponentFromName(pageContext,
"package.ComponentName");
See
http://docs.lucee.org/guides/working-with-source/java-using-lucee-in-java.html
for more.
Igal Sapir
Lucee Core Developer
Lucee.org
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/71e7fe7b-705e-4a96-a0d0-3f4182f2cb0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
John,
I wrote that document originally years ago, back in the Railo days. Micha added to it some recent, Lucee-5 stuff. The PageContext in the example is not linked to the correct Application, so it does not give you the correct session.
Lucee is made of two parts: Loader and Core. Loader provides an
API, while Core is "use-at-your-own-risk" private
implementations. To run the code examples, you need to have the
Lucee Loader, which is exposed via the Lucee.jar in your
classpath.
In general we would love to see more Java users' involvement
and/or contributions, so it'd be great if you can update whatever
errors you find in the Wiki.
I'm considering working on a Websocket implementation for Lucee, possibly as an extension, but am still collecting information as to how it would be best used. I also need to discuss this with Micha and others before we implement anything.
Igal Sapir
Lucee Core Developer
Lucee.org
--
Get 10% off of the regular price for this years CFCamp in Munich, Germany (Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189€ instead of 210€. Visit https://ti.to/cfcamp/cfcamp-2016/discount/Lucee@cfcamp
---
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/8a7ba7a9-efc5-4ae2-9d5b-eab7ef46c342%40googlegroups.com.
Lucee really needs a websocket solution badly. I hope a solution can be built soon!
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/e2ac8ea7-8bdb-850a-4d3f-d33b9d8818ee%40lucee.org.