I am having problems with persistence. I am not sure what I am missing.
In my jboss services module I have:
| <mbean
| code="org.jboss.nukes.addons.modules.kingpin.KingpinModule"
| name="nukes.modules:name=kingpin"
| xmbean-dd=""
| xmbean-code="org.jboss.nukes.component.NukesMBean">
| <depends>nukes.modules:name=core</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Subscription</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/DataType</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/EventLog</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Feedback</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/FtpPackage</depends>
|
<depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/KingpinExport</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/KingpinFile</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/KingpinInbox</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Measurement</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/LovValues</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Media</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Mission</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Package</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Report</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Requirement</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Signal</depends>
| <depends>jboss.j2ee:service=EJB,jndiName=nukes/kingpin/Tape</depends>
| <constructor>
| <arg type="boolean" value="true"/>
| </constructor>
| <xmbean>
| <attribute
| name="NumberPackagesPerPage"
| description="Number of packages to display in the package
list">10</attribute>
| <attribute
| name="ThresholdEvent"
| description="Event to start counting from">Package Created</attribute>
| <attribute
| name="ThresholdDay1"
| description="Threashold Day to use color 1">15</attribute>
| <attribute
| name="ThresholdDay2"
| description="Threashold Day to use color 2">30</attribute>
| <attribute
| name="ThresholdDay3"
| description="Threashold Day to use color 3">60</attribute>
| <attribute
| name="ThresholdColor1"
| description="Color to use for Threshold Day 1">green</attribute>
| <attribute
| name="ThresholdColor2"
| description="Color to use for Threshold Day 2">yellow</attribute>
| <attribute
| name="ThresholdColor3"
| description="Color to use for Threshold Day 3">red</attribute>
| <attribute name="Security">
| <security>
| <permission group="User" pattern=".*:.*:.*" level="READ"/>
| <permission group="Admins" pattern=".*:.*:.*" level="ADMIN"/>
| </security>
| </attribute>
| <attribute name="Configuration">
| <module>
| <operation
| name="main"
| display-name="Kingpin"
| description="Kingpin module"
| image=""
| hint=""/>
| </module>
| </attribute>
| </xmbean>
| </mbean>
|
In my module I have:
| private int numberPackagesPerPage = 10;
| private long analysisSourceSeqNum = 0;
| private String thresholdEvent;
| private int thresholdDay1;
| private int thresholdDay2;
| private int thresholdDay3;
| private String thresholdColor1;
| private String thresholdColor2;
| private String thresholdColor3;
| private String ravenFeedbackLink="";
| private String requirementsPageLink="";
|
| /**
| * numberPackagesPerPage should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setNumberPackagesPerPage(int numberPackagesPerPage)
| {
| this.numberPackagesPerPage = numberPackagesPerPage;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public int getNumberPackagesPerPage()
| {
| return numberPackagesPerPage;
| }
|
| /**
| * analysisSourceSeqNum should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setAnalysisSourceSeqNum(long analysisSourceSeqNum)
| {
| this.analysisSourceSeqNum = analysisSourceSeqNum;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public long getAnalysisSourceSeqNum()
| {
| setAnalysisSourceSeqNum(analysisSourceSeqNum + 1);
| return analysisSourceSeqNum;
| }
|
| /**
| * thresholdDay1 should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setThresholdEvent(String thresholdEvent)
| {
| this.thresholdEvent = thresholdEvent;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public String getThresholdEvent()
| {
| return thresholdEvent;
| }
|
| /**
| * thresholdDay1 should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setThresholdDay1(int thresholdDay1)
| {
| this.thresholdDay1 = thresholdDay1;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public int getThresholdDay1()
| {
| return thresholdDay1;
| }
|
| /**
| * thresholdDay2 should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setThresholdDay2(int thresholdDay2)
| {
| this.thresholdDay2 = thresholdDay2;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public int getThresholdDay2()
| {
| return thresholdDay2;
| }
|
| /**
| * thresholdDay2 should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setThresholdDay3(int thresholdDay3)
| {
| this.thresholdDay3 = thresholdDay3;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public int getThresholdDay3()
| {
| return thresholdDay3;
| }
|
| /**
| * thresholdColor1 should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setThresholdColor1(String thresholdColor1)
| {
| this.thresholdColor1 = thresholdColor1;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public String getThresholdColor1()
| {
| return thresholdColor1;
| }
|
| /**
| * thresholdColor2 should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setThresholdColor2(String thresholdColor2)
| {
| this.thresholdColor2 = thresholdColor2;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public String getThresholdColor2()
| {
| return thresholdColor2;
| }
|
| /**
| * thresholdColor3 should be accessible from jmx-console
| *
| * @param value DOCUMENT ME!
| */
| public void setThresholdColor3(String thresholdColor3)
| {
| this.thresholdColor3 = thresholdColor3;
| }
|
| /**
| * DOCUMENT ME!
| *
| * @return DOCUMENT ME!
| */
| public String getThresholdColor3()
| {
| return thresholdColor3;
| }
| /**
| * @return
| */
| public String getRavenFeedbackLink()
| {
| return ravenFeedbackLink;
| }
|
| /**
| * @param string
| */
| public void setRavenFeedbackLink(String ravenFeedbackLink)
| {
| this.ravenFeedbackLink = ravenFeedbackLink;
| }
|
| /**
| * @return
| */
| public String getRequirementsPageLink()
| {
| return requirementsPageLink;
| }
|
| /**
| * @param string
| */
| public void setRequirementsPageLink(String requirementsPageLink)
| {
| this.requirementsPageLink = requirementsPageLink;
| }
|
The problem is when I call the set functions of any of these jmx variables in my
module, It doesn't update the entry in the nukes.nuke_services_attributes table. What
am I doing wrong?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849194#3849194
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849194
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development