NumberFormat pattern issue

Hi,
I have to format the number in "##,##,##,###" pattern. I have coded the following code to apply the pattern. Bellow code giving the output as 123,456,789
As per the applied format output should be 12,34,56,789.
Please help me to resolve the issue.
        NumberFormat nf = NumberFormat.getNumberInstance();
        DecimalFormat df = (DecimalFormat)nf;
        df.applyPattern("##,##,##,###");
        String output = df.format(123456789);

There's no "workaround" because this is not a bug. There's nothing that needs to be worked around. It's simply a problem you wish to solve that doesn't have a direct solution already implemented in the core API. So you write a method that implements the same logic you'd use to do it by hand, just like you would for any other such problem.

Similar Messages

  • Seamless Pattern Issue

    I created a really intricate seamless pattern filled with brush strokes.
    I have 2 issues:
    1) I have to print the patterns on a large format printer and the printer will not print them correctly unlesss I expand them.  When I expand the pattern the details get lost, lines appear thicker and it changes the design.  Any ideas on how to avoid this?
    2) When I am trying to pull the swatch onto the artboard to change and edit it, I can't.  Not sure why....
    Thanks!!

    1. Without seeing the patterns, it's hard to guess, but perhaps there is a way to simplify them. You say the pattern detail gets lost when expanding… could this be a screen issue? Have you tried rasterizing it?
    2. When you attempt to edit the pattern, are you pulling the swatch out, over a raster image? Try dropping it in a blank area of the artboard.

  • Route Pattern issue

    I am running Cisco Unified Communications Manager Version 8.6 and I am trying to add a route pattern that I can not get to work. I am copying an existing route pattern that works and only changing the prefix. i.e. 9.331XXXX copied and changed to 9.551XXXX. Both are in the same route list and group and I have verified that the new prefix is a local prefix. When dialing the 551 number it is telling me you need to dial a 1 first. Dialing 9.1551XXXX gets the message that says "your call can not be completed as dialed. please consult your directory.......". If you dial it as 9-1-area code-551XXXX it still tells you that you need to dial a 1 before dialing the number.
    Not sure what I am missing but any suggestions would be much appreciated.
    John

    The only message that comes from CUCM is the "your call cannot be completed as dialed..." all of the other messages come from your telco, you would need to ask them exactly what digits they're expecting to accept the call as valid.
    Did you change the RP to be 9.1551XXXX or did you simply tried to dial with 9.551XXXX configured?????
    I'm guessing the latter as you got the "your call cannot be completed as dialed..." message from CUCM

  • BPM :: n To 1 Collected Payload Pattern issue

    Hi
    I am working on following scenario -->
    Web Page --> HTTP Adapter --> XI with BPM ( Using n To 1 Payload Pattern ) --> RFC Adapter --> SAP R/3 --> XI With BPM --> File Adapter --> Legacy System with Response from RFC
    Now everything is configured & when first time I executed the scenario it gives me " Green Flag " under Outbound Status for interface from Web Page to XI. Also date format error in next 2 messages. So I corrected the date format & execute it again.
    But since from than I am getting " <b>Red Flag</b> " ( <i>Message has error status on outbound side</i> ) under Outbound status. I checked my BPM under MONI also & all the mapping & configuration is fine. Even I made the Overall messages as 1 but still getting the same error.
    I am able to see the correlation ID of message also.
    Pls. suggest.

    Hi
    My Scenario is working now & I am able to correlate the payloads on Vendor Name. But I need to clarify the concept of n:1 Pattern.
    In my multi-mapping occurence of source message is 0 to N & Target message is 1. Now when I am sending the message in this format ( coming from web page when i am clicking the SUBMIT button two times ) :
    <p3:PurOrder_Request_MT xmlns:p3="http://BpmCollectMsg:AsyncSync:AlertMgt">
             <Total_Msgs/>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
             <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          </p3:PurOrder_Request_MT>
    <p3:PurOrder_Request_MT xmlns:p3="http://BpmCollectMsg:AsyncSync:AlertMgt">
             <Total_Msgs/>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
             <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          </p3:PurOrder_Request_MT>
    I am getting results in same format means two different nodes of " PurOrder_Request_MT ".
    But I was expecting results in this format ::
    <p3:PurOrder_Request_MT xmlns:p3="http://BpmCollectMsg:AsyncSync:AlertMgt">
             <Total_Msgs/>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <HEADER>
                <DOCDATE/>
                <VENDOR/>
             </HEADER>
             <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
          <ITEMS>
                <PURMAT/>
                <NETPRICE/>
                <UNIT/>
                <PRICEUNIT/>
             </ITEMS>
             <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          <Items_Schedule>
                <QUANTITY/>
                <DELIVERYDATE/>
             </Items_Schedule>
          </p3:PurOrder_Request_MT>
    As in target they are coming as two different payloads & I am calling the RFC one time only. RFC is taking the data of first payload only. Right now my scenario is working more as creating a batch of payloads who has same Vendor Name. But my RFC doesn't take batch of payloads.
    Can you pls. explain what exactly the n:1 pattern means.
    Best regards
    Lalit

  • Pattern issue

    Hello, I have a problem to unlock my Sony xperia z3 compact. 
    I set-up a pattern but once I try to unlock the phone, the patters is not accepted and I can not unlock the phone. Also I am not receiving forrgoten pattern option, Just 30 second waiting for new attempt. 
    The phone is updated to android 5.0. 
    Can you please advise how can I proceed to unlock the phone ? 
    Thank you very much. 
    Solved!
    Go to Solution.

    If the above does not apply,you may need to perform a software repair using PC Companion.The process will erase all internal memory.You might need to charge your device for about 1-2 hours before so the device has at least 60% battery.
    Make sure the device is not connected to computer or laptop and turned off (sometimes you have to press power button and volume up until the device vibrates 3 times or on some devices you have to press the small button near the SIM tray or on the back of the device).
    Open PC companion->support zone->phone/tablet software update->repair my phone/tablet blue highlighted.Follow the steps given,do not connect your phone until prompted to press volume down while plugging USB cable. If PC companion does not start the repair process, you might need to run it in compatibility mode with Windows 7 (in some cases XP).
    All we have to decide is what to do with the time that is given to us - J.R.R. Tolkien

  • Command Pattern Issue

    Hello.
    I started learning about command pattern and so I tried taking the data I learned and applying it to what I have been doing. I put together an image gallery using command pattern but the images are not appearing on the stage and I can't figure out why. There are no errors a trace I put in is showing up.
    Been going over all my files for a while now and I have not been able to figure out what I have done wrong. : (
    Is someone out there who is familiar with this - possibly you! - that would be willing to look at my structure and maybe you could spot what I am doing wrong?
    I would post the code here but the structure contains 9 files (most of which are very small) and I dont know which file to post.
    Thanks for any help!
    http://www.ziddu.com/download/9026721/commandpatternforpost.zip.html

    Hi Maruthee.
    The simple answer is that Contexts remain in the cluster after Commands have been executed. They are not removed.
    Hope this helps.
    -- Brian
    Brian Oliver | Architect | Oracle Coherence Engineering
    Oracle Fusion Middleware

  • Cffridcolumn numberformat comma issue

    Hi,
    I'm using cfgrid cfgridcolumn to display data on a page.  Somehow the following code does not show the comma.  Cfgrid is in html format.
    <cfgridcolumn name="InletFlueGasFlow_acfm" numberformat="9,999,999" header="Inlet Flue Gas Flow ACFM">
    tried also with type
    <cfgridcolumn name="InletFlueGasFlow_acfm"   type="numeric" numberformat="9,999,999" header="Inlet Flue Gas Flow ACFM">
    What is a valid numberformat?  The Adobe documentation for cfgridcolumn says numberformat="format"
    9 Optional digit placeholder. Same as _ but shows decimal places more clearly.
    , Separates thousands with commas.
    Any idea why my comma not showing?
    Thanks.

    Is the data coming from a query? Is the query field numeric or a string of some kind? For example, although its number it could be stored in a varchar datatype which cfgrid might not see as numeric and not apply the format to.

  • "State" Design Pattern Issues

    I am implementing a class that requires state information. I decided to follow the design pattern, and I found a great site for reference (which provided the code below) but I need to implement substates. It would be impractical to store all of the states in the fashion below. I am trying to find a way to somehow store another substate in the class below without creating so many classes. I am thinking about creating the substates the classic way with just constants, but I cant store the current substate in the static final States. In short, either using the code below or not, how do I implement a system with states and substates following the State Design Pattern?
    abstract class State {
        static State initialState;
        static final State state1 = new State1();
        static final State state2 = new State2();
        protected State() {
          if (initialState == null) initialState = this;
        abstract void stateExit(StateOwner owner);
        abstract void stateEnter(StateOwner owner);
      class State1 extends State {
        void stateExit(StateOwner owner) {
        void stateEnter(StateOwner owner) {
      class State2 extends State {
        void stateExit(StateOwner owner) {
        void stateEnter(StateOwner owner) {
      }

    This isn't exactly an implementation of the state pattern.
    I suggest that you check out the GOF book for details but here are some suggestions:
    1) Your abstract State should not contain State objects but should provide the interface for your State behavior.
    2) Each substate that you describe is actually an individual State and should be a concrete implementation of the State class or interface.
    3) There are several ways to handle state transitions but one that I like is to have the concrete States know about when to make state transitions and provide a call back mechanism to the context that has the handle to the state to allow the state to set the new state in the context when a state transition occurs.
    For example
    abstract class State
        abstract void stateExit(StateOwner owner);
        abstract void stateEnter(StateOwner owner);
    class State1 extends State {   
        void stateExit(StateOwner owner) {
            owner.setState(new State2().stateEnter(owner));
        void stateEnter(StateOwner owner) {
    class State2 extends State {
       void stateExit(StateOwner owner) {
        void stateEnter(StateOwner owner) {
    public class StateOwner
        State s;
        public StateOwner()
            s = new State1(this);
            s.stateEnter(this);
        public void setState(State s)
            this.s = s;
    }This is how I've implemented it and in general how it is done in GOF.
    Hope this helps.
    Charles

  • Jdeveloper 11g + decode syntax exception

    Hello,
    I am using Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536.
    When I add decode sql function in order by clause,following exception throws in Jdeveloper IDE. it looks like pattern issue,any clue??
    SEVERE: exception visiting oracle.xml.parser.v2.XMLAttr@6e80b2
    DeptView.xml [1047:1063) [45,4:45,20)
    44: <ViewLinkAccessor
    45: Name="EmpEOView"
    46: ViewLink="model.WorksInDeptLink"
    47: Type="oracle.jbo.RowIterator"
    java.util.regex.PatternSyntaxException: Unclosed group near index 16
    \bDECODE(DNAME\b
    ^
         at java.util.regex.Pattern.error(Pattern.java:1713)
         at java.util.regex.Pattern.accept(Pattern.java:1571)
         at java.util.regex.Pattern.group0(Pattern.java:2533)
         at java.util.regex.Pattern.sequence(Pattern.java:1806)
         at java.util.regex.Pattern.expr(Pattern.java:1752)
         at java.util.regex.Pattern.compile(Pattern.java:1460)
         at java.util.regex.Pattern.<init>(Pattern.java:1133)
         at java.util.regex.Pattern.compile(Pattern.java:823)
         at oracle.jbo.dt.dependency.xdf.SQLReferenceFactory.getStartIndex(SQLReferenceFactory.java:286)
    Thanks
    RB

    To anyone else encountering this:
    I would just like to report, that Oracle Development has managed to reproduce this problem from scratch by following a similar upgrade path 10.1.3.0->10.1.3.4->11.1.1.0. The problem is NOT OS-related, but related to migrating the user settings from 10.1.3.3. So Jan you were right about that. Credits go to you :)
    The only workaround for me has so far been to take a backup of my old SYSTEM directory causing the problem, and I have been forced to carefully recreate all my settings to get around this problem, since I already removed my old 10.1.3.3 installation, assuming the migration went OK - which it didn't... So, I will keep my old backup, in the hope that Development finds a fix to this issue, so I can go back to the settings I used to have, even though I THINK I have recreated them all for 11g - not completely sure though... time will tell.
    Until then, I will track the bug, that Didier has logged for me, which he mentioned in his post.
    Regards,
    Jacob

  • Any reported problems using jdbc over a WAN?

    If im trying to connect to a Database that's on a WAN will I experience any issues in using jdbc to connect and execute queries to that database?
    I know problems would come up if my wan network is slow, but has jdbc been able to handle long distance database queries? timeout values?

    but why?
    is it because of security? If a company had a database with your personal info hanging out on the Web for anyone to query without any validation or security, how would you feel about it?
    design pattern issues? It's just good layered design.
    just doesnt make sense?Not in my opinion.
    have u experienced/heard of any problems of
    connecting to a database over a WAN and executing
    queries?You don't say anything about who the client is. If the database is behind a firewall, outside clients shouldn't be able to access the port where the listener is running. Only port 80 should be open on that firewall.
    So you either write a servlet that listens on port 80 for HTTP requests from a browser-based client OR you ask your firewall admin to punch a hole in the firewall and open up the port on which your database is listening for queries and use a Swing client.
    If s/he agrees to do it, quit immediately. It means your company doesn't know anything about security.
    %

  • How to put all contacts in gmail

    I am facing issues while emoving contacts to gmail, I can see my contacts backup in live.com but need that list in gmail as well. When I export contacts in csv then due to number pattern issues some of my contacts gets changed to exponential number or if they have a 0 at start then it get removed.
    I want to put contacts list as it is of my phone to gmail.
    Using phone Nokia Lumia 800

    Strange. I did the same but just the other way around. Took CSV file from my Windows Live and and put it to my Google account in order to be able to use them with my Android phone. Works OK.
    I've never tried to transfer Google account contacts to Windows Live but maybe I should experiment with that as well in order to find out whether it's acting the way you described 

  • My calls are being blocked from calling our office.

    I haven't been able to make calls to any of our office (various locations) phone numbers using my AT&T cell phone for the last 3 days.  My phone works fine otherwise - I can call everywhere else.  Why are the calls being blocked?  The office uses Integra Telecom.  Apparently NO AT&T cell phone calls are going through.  There is no problem with any other carriers, just AT&T.

    Hello @susankip
    I’m sorry you’re not able to dial out to your office.
    It sounds like there is definitely a routing or dialing pattern issue going on.
    To better assist with this, please contact us as soon as possible.
    You are welcome to use our live chat option as well.
    Thank you,
    Charise

  • Anyone else not happy with CS3 for Mac?

    I converted to a Mac a year or so ago and was amazed how bad
    Dreamweaver and Fireworks 8 were compared to the Windows version. I
    couldn't find anyone complaining about it the web, so I figured it
    was just me. After a month I eBayed the Mac and went back to a PC.
    Well, I couldn't do without the Mac again so I bought a 3.0
    GHz MacPro with 3GB RAM a few months ago. I eagerly awaited the
    release of CS3 thinking "Ahhh, maybe they fixed the stuff I didn't
    like. I mean, it was SO bad that SOMEONE had to complain about it."
    Nope.
    Trying it out tonight and I've found this...
    Scrollbars in the floating panels
    don't work with 4 of the mice I own
    I make my own keyboard shortcuts and
    save them. When I return to Fireworks, they're intermittently back
    to the "Web Standard"
    Much like the keyboard shortcut
    issue, my saved Workspace Layout doesn't load when I start
    Fireworks again
    In Preferences, I point to an
    additional Photoshop plug-in directory and Patterns directory. I
    exit Fireworks and the plug-ins are there... quit and start
    again... gone!
    Property Inspector...
    ZZZZZZZZZZZZZZZZ, oh it refreshed, good. Yawn.
    If anyone feels like duplicating the Keyboard
    shortcut/Plug-In/Patterns issue, this is how I do it...
    1. Save yourself a set of Keyboard shortcuts
    2. Save yourself a Workspace, arrange the floaty panels
    around where you want 'em
    3. Go into Prefrences and find an additional Plug-Ins folder
    (ie Applications:Photoshop:etc:etc)
    4. Restart Fireworks
    5. The Plugins are there! Yay
    6. Go back into Preferences and Browse to a different
    Patterns directory.
    7. Restart Fireworks
    8. Whoa, Keyboard shortcuts and Workspace are back to their
    defaults, and gone are the Plug-ins AND the Patterns.
    Hopefully someone else on a Mac can duplicate that.
    I've used and been an advocate of this program since version
    3, on Windows. Absolutly love it. Do any other
    ex-Windows-now-Mac-users know what I am talking about?
    I could list a load of stuff about my old friend Dreamweaver
    but that's a different forum.

    Hi, R e j u v e s i t e
    I know exactly what you talking about ...
    I've posted a lot of message about it in this forum ...
    adobe's people seems to be blind to my messages ...or their mouse
    jump over the line of my post ... i don't know...
    I'm so disapointed by the OSX version of FW ... I miss the
    Macromedia's team
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=14&catid=193&threadid =1263252&highlight_key=y

  • Configuring web.xml when using JSP as display technology

    Hi,
    I have a very simple HelloWorld style jsp.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
      <html>
        <head>
          <title>
            JSF in Action - Hello, world!
          </title>
        </head>
        <body>
          <h:form id="welcomeForm">
            <h:outputText id="welcomeOutput" value="Welcome to JavaServer Faces!"
                           style="font-family: Arial, sans-serif; font-size: 24; color: green;"/>
            <p>
             <h:message id="errors" for="helloInput" style="color: red"/>
            </p>
            <p>
              <h:outputLabel for="helloInput">
                <h:outputText id="helloInputLabel"
                              value="Enter number of controls to display:"/>
              </h:outputLabel>
              <h:inputText id="helloInput" value="#{helloBean.numControls}"
                           required="true">
                <f:validateLongRange minimum="1" maximum="500"/>
              </h:inputText>
            </p>
            <p>
              <h:panelGrid id="controlPanel" binding="#{helloBean.controlPanel}"
                           columns="20" border="1" cellspacing="0"/>
            </p>
            <h:commandButton id="redisplayCommand" type="submit" value="Redisplay"
                             actionListener="#{helloBean.addControls}"/>
            <h:commandButton id="goodbyeCommand" type="submit" value="Goodbye"
                             action="#{helloBean.goodbye}" immediate="true"/>
          </h:form>
        </body>
      </html>
    </f:view>To get this working I had to use the following web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>JSFHelloWorld3</display-name>
      <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
      </welcome-file-list>
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>/faces/*</url-pattern>
      </servlet-mapping>
      <context-param>
        <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
        <param-value>client</param-value>
      </context-param>
      <context-param>
        <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
        <param-value>resources.application</param-value>
      </context-param>
      <listener>
        <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
      </listener>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.faces</url-pattern>
      </servlet-mapping>
    </web-app>When I go to:
    http://localhost:8080/MyApp/hello.jsp
    I get:
    org.apache.jasper.JasperException: An exception occurred processing JSP page /hello.jsp at line 23
    20: <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    21: <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    22:
    23: <f:view>
    24:   <html>
    25:     <head>
    26:       <title>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    root cause
    java.lang.RuntimeException: Cannot find FacesContext
         javax.faces.webapp.UIComponentClassicTagBase.getFacesContext(UIComponentClassicTagBase.java:1855)
         javax.faces.webapp.UIComponentClassicTagBase.setJspId(UIComponentClassicTagBase.java:1672)
         org.apache.jsp.hello_jsp._jspx_meth_f_005fview_005f0(hello_jsp.java:119)But when I go to:
    http://localhost:8080/MyApp/hello.faces
    Everything is ok?
    I am confused why?
    Any help appreciated.

    I believe this is a url pattern issue. You have one for *.jsf as opposed to *.jsp.
    <url-pattern>*.jsf</url-pattern>
    This likely any pattern containing "faces".
    <url-pattern>/faces/*</url-pattern>
    Add one for *.jsp and you should be OK.

  • A web service design issue with patterns

    Hello,
    I�d like to ask for your help in the following design issue:
    I need to create an email sending web service (with Axis). Only just one method which returns with an integer return code. This handles the following:
    - based on the given parameters gets the email addresses from an
    LDAP server (with netscape ldap for java)
    -     makes a cache from them (only after a timeout period will be the cache
    refreshed) (don�t know what tool to use for this)
    -     selects html templates which to be sent based on the given parameters
    -     sends emails with the appropriate templates (with Velocity)
    -     the whole process is logged (with log4j)
    I have to write the code as generic as possible. I know that some design pattern should be used for this. (some from GoF , and I know there exists design patterns specially created for web services as well).
    Could you enumerate me which patterns (and for what part of the program) would be the best choice to solve this problem? I have read through some books about patterns, but don�t have the knowledge to pick up the right one for a concrete problem like this..
    Thank you in advance,
    nagybaly

    Hello,
    I�d like to ask for your help in the following design
    issue:
    I need to create an email sending web service (with
    Axis). Only just one method which returns with an
    integer return code. This handles the following:Lots of responsibilities here. You would do well to break this up into several classes that you can test separately.
    I would also advise that you not embed all this in a servlet. Make a service that collaborates with several objects to accomplish the task and let the serlvet just call it.
    .> - based on the given parameters gets the email
    addresses from an
    LDAP server (with netscape ldap for java)I'd recommend Spring's LDAP module. Pretty terrific stuff.
    cache from them (only after a timeout period will be
    the cache
    refreshed) (don�t know what tool to use for
    this)Maybe EhCache or OsCache or something like that.
    -     selects html templates which to be sent based on
    the given parametersWhere does this come from? Certainly not the LDAP. A relational database? Write a DAO for the document template.
    -     sends emails with the appropriate templates (with
    Velocity)Have an e-mail sender service using Java Mail.
    -     the whole process is logged (with log4j)Easily done.
    I have to write the code as generic as possible. I
    know that some design pattern should be used for
    this. No pattern. There might be patterns, if you say that the DAOs to access the LDAP and RDB are patterns.
    Stop thinking patterns and start thinking objects.
    (some from GoF , and I know there exists design
    patterns specially created for web services as
    well).Nope.
    Could you enumerate me which patterns (and for what
    part of the program) would be the best choice to
    solve this problem? I have read through some books
    about patterns, but don�t have the knowledge to pick
    up the right one for a concrete problem like this..
    Thank you in advance,
    nagybalyYou haven't read them because they aren't there. Your problem is pretty specific, even if it's common.
    %

Maybe you are looking for

  • HT4363 how do i use multiple computers on apple tv?

    trying to get my imac to work with apple tv. already setup and used my macbook pro and it works great. i just want to get my imac to work also. what to do?????

  • Can't get EPSON nx300 to work with airport express

    hey yall i'm running a 3 year old white 13" macbook with 10.5.7 osx installed -~- having trouble getting things to print via my new airport express. my boyfriend has no troubles with his brand new macbook pro - it just worked instantly for him. my co

  • Centering web site pages in Dreamweaver

    Just wondering if someone know's how to center web site pages using CSS if thats possible, if not what other way? (i'm using MX or 8)

  • Missing PPD in Adobe CS5.5 (Mac OS 10.7)

    Hi there, After installed the InDesign CS5.5. The PPD in Print dialog became Device Independent. And the POstScript file is failed by using PDF/X-1a joboptions because of the missing geometry set. Thanks in advance. Best regards, KK

  • LWAPP to CAPWAP across different software versions. ?

    Hi guys, I was wondering if someone could clarify what happens when you have controllers live on two different software versions.. We have 4 controllers.. 2 on version 4.2, which APs currently register to with LWAPP and 2 new ones on version 7.. On W