Hi guys,
in my scenario I want to realize a template method. For this I implement
common abstract base class:
public abstract AbstractFooProducer {
protected void init() {}
@Produces
public Foo produceFoo() {
init();
return foo;
}
and then one or more specific
Okay, I've seen the recent OWB (or CDI) topics, so I thought I might
introduce a separate thread based on my experience today.
Months ago, I migrated from JSF managed beans to CDI manageds (and migrated
from Glassfish to TomEE/OpenWebBeans), two birds with one stone. During
that migration, I
Howard,
When were you recommended to use @Typed?
@Typed (in that thread) was being used to *remove* objects from being
installed via CDI.
If you want to use @Typed you need to use it as @Typed(pf_
OrderCustomerPointOfContactController.class)
On Mon, May 20, 2013 at 9:08 AM, Howard W. Smith, Jr.
There was a separate thread in PrimeFaces forum, where I was suggested to
use @Typed instead of my user-defined @Descendant. :)
I will try @Typed as you recommended and report back, ASAP. Thanks.
On Mon, May 20, 2013 at 9:13 AM, John D. Ament john.d.am...@gmail.comwrote:
Howard,
When were
Care to link to it, so we all have a frame of reference? I don't
immediately see it on their forums.
On Mon, May 20, 2013 at 9:15 AM, Howard W. Smith, Jr.
smithh032...@gmail.com wrote:
There was a separate thread in PrimeFaces forum, where I was suggested to
use @Typed instead of my
Start here[1] and go to the next page.
[1] http://forum.primefaces.org/viewtopic.php?f=3t=30309#p97538
On Mon, May 20, 2013 at 9:17 AM, John D. Ament john.d.am...@gmail.comwrote:
Care to link to it, so we all have a frame of reference? I don't
immediately see it on their forums.
On Mon,
As you suggested, I just added/modified the code, so the code now is as
follows:
@Inject @Typed(pf_OrderCustomerPointOfContactController.class)
private pf_OrderCustomerPointOfContactController
orderCustomerPointOfContactController;
which still results in the following (which prevents OWB
Just because another developer tells you they don't know what your
qualifier means, doesn't mean they are right :-)
I would recommend that you switch off of @Typed, it's not what you're
looking for.
@Named should correctly identify your specific bean. As long as you are
never referencing the
@Typed isn't a qualifier. It goes on the class definition, not on the
injection point.
@Typed(pf_OrderCustomerPointOfContactController.class)
public class pf_OrderCustomerPointOfContactController extends
WhateverBaseClass {
..
}
On Mon, May 20, 2013 at 9:23 AM, Howard W. Smith, Jr.
Okay, that is what I was doing wrong. maybe, just before you clicked the
Send button and sent your last response (below), I thought about checking
the class definition. Here is the class definition below.
@Typed
@Named(pf_orderCustomerPointOfContactController)
@SessionScoped
public class
When you do this..
@Typed
@Named(pf_orderCustomerPointOfContactController)
@SessionScoped
public class pf_OrderCustomerPointOfContactController extends
pf_PointOfContactController {
The injection point should be
@Inject @Named(pf_orderCustomerPointOfContactController)
private Object obj;
The
responses inline, below...
On Mon, May 20, 2013 at 9:41 AM, John D. Ament john.d.am...@gmail.comwrote:
When you do this..
@Typed
@Named(pf_orderCustomerPointOfContactController)
@SessionScoped
public class pf_OrderCustomerPointOfContactController extends
pf_PointOfContactController {
You get these errors in NetBeans or in TomEE? Or both?
On Mon, May 20, 2013 at 10:06 AM, Howard W. Smith, Jr.
smithh032...@gmail.com wrote:
responses inline, below...
On Mon, May 20, 2013 at 9:41 AM, John D. Ament john.d.am...@gmail.com
wrote:
When you do this..
@Typed
NetBeans (compiler-related messages). With that said, I didn't even try to
compile and/or generate the WAR, because I'm sure NetBeans (v7.3) would not
have generated the WAR with those errors.
I think I know where you going with that though. I wonder if you about to
question NetBean's conformance
you can't rely on IDEs ATM, basically Idea has false warnings too, eclipse
is far to be perfect etc...
instead of relying on the IDE it is always better to know what we write ;)
*Romain Manni-Bucau*
*Twitter: @rmannibucau https://twitter.com/rmannibucau*
*Blog:
Hi all,
I want to be able to get an absolute path I define in context.xml.
I was under the impression I should be able to put the following in
context.xml and it would be added to JNDI:
Environment name=AREE_FILES
description=Absolute Path to Files folder override=false
Hi
not sure it is merged in tomee envrt ATM but env-entries.properties should
work - http://tomee.apache.org/custom-injection.html
in all cases a sample showing it doesn't work will make your issue easier
to look.
PS: using cdi and deltaspike config is another good solution avoiding to
rely on
Agreed on all counts, but I am 'far' from being a user of the 'perfect'
eclipse. lol :)
I am learning what 'we' (tomee) writes by asking questions on the list or
listening to your/tomee responses. :)
I just had to write and entertain this topic, since I saw recent discussion
about using @Typed.
And thanks for that. It's useful and as important as providing tons of
lines of code.
JLouis
2013/5/20 Howard W. Smith, Jr. smithh032...@gmail.com
Agreed on all counts, but I am 'far' from being a user of the 'perfect'
eclipse. lol :)
I am learning what 'we' (tomee) writes by asking
Sure, does http://pastebin.com/0MZudM1x suffice or do you need a project?
--
View this message in context:
http://openejb.979440.n4.nabble.com/JDK7-java-nio-not-found-tp4663082p4663084.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
How do I check this? I have not adjusted it.
From my Mac's Terminal:
iMac-van-Caroline:Desktop caroline$ echo $JAVA_HOME
/Library/Java/Home
--
View this message in context:
http://openejb.979440.n4.nabble.com/JDK7-java-nio-not-found-tp4663082p4663086.html
Sent from the OpenEJB User mailing
First lines of the start command (./bin/catalina.sh start)
Le 20 mai 2013 21:56, Caroline caroline.van.den.ha...@gmail.com a
écrit :
How do I check this? I have not adjusted it.
From my Mac's Terminal:
iMac-van-Caroline:Desktop caroline$ echo $JAVA_HOME
/Library/Java/Home
--
View this
#
-
# OS specific support. $var _must_ be set to either true or false.
cygwin=false
darwin=false
os400=false
case `uname` in
CYGWIN*) cygwin=true;;
Darwin*) darwin=true;;
OS400*) os400=true;;
esac
# resolve links - $0
I'm sorry, I went over your question too quickly.
What I think you want: http://pastebin.com/U1j4F34K
The complete file: http://pastebin.com/vpspVG02
--
View this message in context:
http://openejb.979440.n4.nabble.com/JDK7-java-nio-not-found-tp4663082p4663089.html
Sent from the OpenEJB User
Hmm, was more expecting you to run the command and check console output ;)
Le 20 mai 2013 22:13, Caroline caroline.van.den.ha...@gmail.com a
écrit :
I'm sorry, I went over your question too quickly.
What I think you want: http://pastebin.com/U1j4F34K
The complete file:
Haha! Alright:
$ ./bin/catalina.sh start
Using CATALINA_BASE: /Library/TomEEp
Using CATALINA_HOME: /Library/TomEEp
Using CATALINA_TMPDIR: /Library/TomEEp/temp
Using JRE_HOME:/Library/Java/Home
Using CLASSPATH:
/Library/TomEEp/bin/bootstrap.jar:/Library/TomEEp/bin/tomcat-juli.jar
Really, tons? Wow. Trust me, I have written tons of code too. :-)
Usually, tons of code to decipher through can be a bit intimidating when
trying to help others.
On May 20, 2013 2:38 PM, Jean-Louis MONTEIRO jeano...@gmail.com wrote:
And thanks for that. It's useful and as important as providing
It seems to be working on Tomcat 7.0.40, unfortunately there my CDI doesn't.
:)
--
View this message in context:
http://openejb.979440.n4.nabble.com/JDK7-java-nio-not-found-tp4663082p4663096.html
Sent from the OpenEJB User mailing list archive at Nabble.com.
28 matches
Mail list logo