Win a copy of Spark in Action this week in the Open Source Projects forum!

luis meira

Ranch Hand
+ Follow
since Apr 18, 2002
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by luis meira

Dear Friends
i'm currently studying for part i and i'm having a certantain dificulty visualizing some of the design patterns.
by any chance you know any good tutorial of design patterns ?
can someone post a java example on the builder Pattern ?
best regards
luis meira
hello everyone,
does any one has read the new architect certification book from Osborne :
Sun Certified Enterprise Architect for J2EE
what is your opinion ? do you recomend reading it ?
best regards
Luis Filipe Meira
What are the Objectives for part I ???
hello again
<module-option name ="principal">???</module-option>
what sould i put on ???
best regards
LFM
17 years ago
hello again
<module-option name ="principal">???</module-option>
what sould i put on ???
best regards
LFM
17 years ago
Hello everyone
by any chance any one off you uses JBoss ?
I need some help configuring a DB2 datasource.
by any chance any one of you has done that ?
best regards
Luis Meira
hello everyone
i'm trying to configure a db2 datasource with jboss/tomcat but so far i haven't had luck.
so i was wondering if you could give me some help ?
here are the files change :
- db2-service.xml
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=DB2DS">
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=DB2DS">
<attribute name="JndiName">DB2DS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL" type="java.lang.String">jdbc b2:eshop</config-property>
<config-property name="DriverClass" type="java.lang.String">COM.ibm.db2.jdbc.app.DB2Driver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String"></config-property>
<config-property name="Password" type="java.lang.String"></config-property>
</properties>
</attribute>
<!--Below here are advanced properties -->
<!--hack-->
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
</mbean>
</depends>
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=DB2DS">
<attribute name="MinSize">0</attribute>
<attribute name="MaxSize">50</attribute>
<attribute name="BlockingTimeoutMillis">5000</attribute>
<attribute name="IdleTimeoutMinutes">15</attribute>
17 years ago
hello everyone,
witch book would you recomend for this certification :
Sun Certified Enterprise Architect for J2EE Study Guide: Exam 301-051 (Osborne Certification Press)
Paul Allen, Joseph Bambara
Sun Certified Enterprise Architect for J2EE Technology: Study Guide
Mark Cade, Simon Roberts
if you any other sugestion just say it.
best regards
Luis Meira
well everyone,
i just return from the exam. i'm still in the state of shock. i actualy got 98%.
so right now there's a huge mixe of feeling in my mind.
i'm terrible happy because even dought i've work very hard to pass this exam i didn't expect such a grade.
on the other my professionist side is driving me crazy, to know that i only had one question wrong and not being allowed to see what i made wrong it's truly a torture.
for those of you still preparing to make the exam
i would sugest you buy JWebPlus. Most the exam question were allmost identical to the one JWeb Plus has.
has for books i bought the sybex book and since i bought JWeb plus i also have the manning book.
i found the sybex book to be very bad, full of mistakes that might cause some confusion.
the manning also has some mistakes but nothing compared the sybex one. so i would recomend this one.
for those of you who plan on making the architech exam we will keep in touch for the others thanks for everything good luck for the exam.
merry christmas and happy new year
best regards
Lu�s Filipe Meira
17 years ago
thanks for the help.
best regards
Luis Meira
hi everybody,
i've been reading the sybex book for this certification and i have the following dought.
are this tag's correct :
<context path="/eshop" docbase="/" reloadable="true" >
<context-param>
<param-name>xpto</param-name>
<param-value>teste</param-value>
</context-param>
</context>
i'm geting an error when startinhg up tomcat.
it doesn't seems to like the context tag.
i took a look at dtd and i didn't find this tag defined, does this tag realy exists or this another book error.
best regards
Luis Meira
i everybody
i created 3 diferent tld teste1.tld, teste2.tld and teste3.tld exacly under META-INF.
i named the resulting the jar mytags.jar.
from what i can tell it's like this :
<%@taglib prefix="buga" uri="/WEB-INF/lib/mytags.jar" %>
this doesn't work, you can only use a direct uri to a jar if taglib.tld exists in the META-INF.
if you change the web.xml like this :
<taglib>
<taglib-uri>/xpto</taglib-uri>
<taglib-location>/WEB-INF/lib/mytags.jar</tablib-uri>
</taglib>
and of course change the following :
<%@taglib prefix="buga" uri="/xpto" %>
this doesn't work for the same reason i gave before.
but if u change each one of the tld's and include a
uri tag it will work like a charme becaus when tomcat load's the jar it automaticaly creates a taglib map for each tag.
for example :
adding this to the teste.tld
<uri>/xpto</uri>
and then updating the tag directive
<%@taglib prefix="buga" uri="/xpto" %>
this will work i haven't tried it on any other application server so i can't tell if it's only a tomcat thing or no.
best regards
Luis Meira
Your right.
when i tested several tld in META-INF i had Specify <uri></uri> in the tld.
thanks for the correction.
Luis Meira

Originally posted by Peter den Haan:
I don't have the Manning book, but what you state here is essentially correct. There is a "but", though.

  • If in the deployment descriptor (web.xml) you map a taglib URI to a jar, the TLD used will be META-INF/taglib.tld in the jar.
  • By the same token, multiple TLDs in a jar only make sense if these TLDs specify a taglib URI so you can actually refer to them.
  • HTH,
    - Peter

    hello everyone,
    i've been studying hard for the certification and right now i'm taking a closer look at the custom tags.
    after some carefull reading of both jsp 1.2 specification and the maning book i think i found a bug on the manning book.
    this book states that when you deploy a tag in jar you have to put the tld in the META-INF directory, and the tld must be called taglib.tld. according to jsp specification this is was true for the old specification ( JSP.7.2.1 ) on the new specification you can had more than on tld file in the META-INF.
    this means that you can deploy more than one tag for jar.
    best regards
    Luis Meira
    well i forgot to mention that one.
    but i also made that change.
    my dougt was why i get an exception 1) and why get an exception 2.1) and works perfectly 2.2)
    any ideas ?
    luis meira

    Originally posted by Vedhas Pitkar:
    Hi,In your jsp file after changes 2, try putting
    <%@taglib prefix="x" uri="/buga" %>