Memory concerns over bean

Hello All,
I'm developing an application and I've written this bean containing [many] convenience methods.
Now, over time, I've added more and more methods to this particular bean until the compiled class has risen to the approximate size of 80K. Which isn't massive, but seeing it contains a fairly substantial amount of code and I instantiate it in practically every single class that I've written, I'm concerned as to whether I've taken the correct approach from a memory usage point of view.
It's rare that any given class will use ALL of the methods that I've written into this 80K bean, in fact it's rare that a class will use more than a few methods for each instantiation.
Is it therefore best practice to "bust" beans like this up and leave the method names in the bean, but extract the code into a sub-package instead? That way the 80K bean could be reduced to a fraction of it's total potential size and only access the code the loading class needs...
OR
Are my concerns just issues that were relevent in the past and should I just trust the caching abilities of the JVM (the standard Sun JVM in this case)?

Each class and its methods are loaded at most once (unless you have multiple classloaders)
This means you can create as many instances as you wish without increasing the code size at all.
What is a good number of methods to have depends on coding style and there are some classes in the standard libraries with more methods than you suggest.
The to do what you suggest is to have all the helper methods in a Helper or Service class. You can have the base class and a getHelper() method to get all the methods you want as help methods. The base class can call the helper for you for key methods.
Have alook at the number of methods including inherited methods
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JTable.html
void      addColumn(TableColumn aColumn)
void      addColumnSelectionInterval(int index0, int index1)
void      addNotify()
void      addRowSelectionInterval(int index0, int index1)
void      clearSelection()
void      columnAdded(TableColumnModelEvent e)
int      columnAtPoint(Point point)
void      columnMarginChanged(ChangeEvent e)
void      columnMoved(TableColumnModelEvent e)
void      columnRemoved(TableColumnModelEvent e)
void      columnSelectionChanged(ListSelectionEvent e)
protected void      configureEnclosingScrollPane()
int      convertColumnIndexToModel(int viewColumnIndex)
int      convertColumnIndexToView(int modelColumnIndex)
protected TableColumnModel      createDefaultColumnModel()
void      createDefaultColumnsFromModel()
protected void      createDefaultRenderers()
protected ListSelectionModel      createDefaultSelectionModel()
protected JTableHeader      createDefaultTableHeader()
static JScrollPane      createScrollPaneForTable(JTable aTable)
void      doLayout()
boolean      editCellAt(int row, int column)
boolean      editCellAt(int row, int column, EventObject e)
void      editingCanceled(ChangeEvent e)
void      editingStopped(ChangeEvent e)
AccessibleContext      getAccessibleContext()
boolean      getAutoCreateColumnsFromModel()
int      getAutoResizeMode()
TableCellEditor      getCellEditor()
TableCellEditor      getCellEditor(int row, int column)
Rectangle      getCellRect(int row, int column, boolean includeSpacing)
TableCellRenderer      getCellRenderer(int row, int column)
boolean      getCellSelectionEnabled()
TableColumn      getColumn(Object identifier)
Class      getColumnClass(int column)
int      getColumnCount()
TableColumnModel      getColumnModel()
String      getColumnName(int column)
boolean      getColumnSelectionAllowed()
TableCellEditor      getDefaultEditor(Class columnClass)
TableCellRenderer      getDefaultRenderer(Class columnClass)
boolean      getDragEnabled()
int      getEditingColumn()
int      getEditingRow()
Component      getEditorComponent()
Color      getGridColor()
Dimension      getIntercellSpacing()
TableModel      getModel()
Dimension      getPreferredScrollableViewportSize()
int      getRowCount()
int      getRowHeight()
int      getRowHeight(int row)
int      getRowMargin()
boolean      getRowSelectionAllowed()
int      getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
boolean      getScrollableTracksViewportHeight()
boolean      getScrollableTracksViewportWidth()
int      getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
int      getSelectedColumn()
int      getSelectedColumnCount()
int[]      getSelectedColumns()
int      getSelectedRow()
int      getSelectedRowCount()
int[]      getSelectedRows()
Color      getSelectionBackground()
Color      getSelectionForeground()
ListSelectionModel      getSelectionModel()
boolean      getShowHorizontalLines()
boolean      getShowVerticalLines()
boolean      getSurrendersFocusOnKeystroke()
JTableHeader      getTableHeader()
String      getToolTipText(MouseEvent event)
TableUI      getUI()
String      getUIClassID()
Object      getValueAt(int row, int column)
protected void      initializeLocalVars()
boolean      isCellEditable(int row, int column)
boolean      isCellSelected(int row, int column)
boolean      isColumnSelected(int column)
boolean      isEditing()
boolean      isRowSelected(int row)
void      moveColumn(int column, int targetColumn)
protected String      paramString()
Component      prepareEditor(TableCellEditor editor, int row, int column)
Component      prepareRenderer(TableCellRenderer renderer, int row, int column)
protected boolean      processKeyBinding(KeyStroke ks, KeyEvent e, int condition, boolean pressed)
void      removeColumn(TableColumn aColumn)
void      removeColumnSelectionInterval(int index0, int index1)
void      removeEditor()
void      removeNotify()
void      removeRowSelectionInterval(int index0, int index1)
protected void      resizeAndRepaint()
int      rowAtPoint(Point point)
void      selectAll()
void      setAutoCreateColumnsFromModel(boolean autoCreateColumnsFromModel)
void      setAutoResizeMode(int mode)
void      setCellEditor(TableCellEditor anEditor)
void      setCellSelectionEnabled(boolean cellSelectionEnabled)
void      setColumnModel(TableColumnModel columnModel)
void      setColumnSelectionAllowed(boolean columnSelectionAllowed)
void      setColumnSelectionInterval(int index0, int index1)
Selects the columns from index0 to index1, inclusive.
void      setDefaultEditor(Class columnClass, TableCellEditor editor)
void      setDefaultRenderer(Class columnClass, TableCellRenderer renderer)
void      setDragEnabled(boolean b)
void      setEditingColumn(int aColumn)
void      setEditingRow(int aRow)
void      setGridColor(Color gridColor)
void      setIntercellSpacing(Dimension intercellSpacing)
void      setModel(TableModel dataModel)
void      setPreferredScrollableViewportSize(Dimension size)
void      setRowHeight(int rowHeight)
void      setRowHeight(int row, int rowHeight)
void      setRowMargin(int rowMargin)
void      setRowSelectionAllowed(boolean rowSelectionAllowed)
void      setRowSelectionInterval(int index0, int index1)
void      setSelectionBackground(Color selectionBackground)
void      setSelectionForeground(Color selectionForeground)
void      setSelectionMode(int selectionMode)
void      setSelectionModel(ListSelectionModel newModel)
void      setShowGrid(boolean showGrid)
void      setShowHorizontalLines(boolean showHorizontalLines)
void      setShowVerticalLines(boolean showVerticalLines)
void      setSurrendersFocusOnKeystroke(boolean surrendersFocusOnKeystroke)
void      setTableHeader(JTableHeader tableHeader)
void      setUI(TableUI ui)
void      setValueAt(Object aValue, int row, int column)
void      sizeColumnsToFit(boolean lastColumnOnly)
void      sizeColumnsToFit(int resizingColumn)
void      tableChanged(TableModelEvent e)
protected void      unconfigureEnclosingScrollPane()
void      updateUI()
void      valueChanged(ListSelectionEvent e)
Methods inherited from class javax.swing.JComponent
addAncestorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Similar Messages

  • Bulk batch Jax-WS web services and memory concerns

    I have a requirement to create a web service client to upload 150,000+ records from our database.  My main question is whether others are creating web services to process bulk data and how they handle memory concerns.
    I began with the standard API, populating the jax-b annotated beans created from the wsimport.  I used JConsole to analyze memory usage.  I noticed that there is a sharp spike in the plot of the heap usage (from 200MB to 800MB) right after the invoke method call.
    The problem is that the max heap size on our app server is set to 1GB and since this application shares it with other applications I keep getting a out of memory error.
    I was asked to look for alternatives, so I tried using the Dispatch API creating the payload by sub-tree marshaling to StAX.  The issue I then ran into is that I have a outputstream and the dispatch api is expecting an inputstream.  I tried the options found here http://ostermiller.org/convert_java_outputstream_inputstream.html
    However after using jconsole to analyze again it appears the writing to a temp file or using a byte array increases the amount of memory being used to almost equivalent of using the standard API.  I tried using piped streams in separate threads and the single threaded circular buffer methods, but the application seems to hang after the invoke method call.
    Any help would be appreciated.

    also, you could "page" the data, returning some max number of records in each page of data and a "next page" cookie. this is the standard approach to returning bulk data from a web service.

  • HT201269 i hardly have things on my iphone but its saying my memory is over capacity

    im having trouble with my memory being over capacity

    Hello lyndsey1430,
    From what I can gather, it sounds like you're having issues restoring your device. After reviewing your post, I have located an article that can help in this situation. It contains helpful advice concerning recovery mode:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Use recovery mode
    You might need to use recovery mode to restore your device in these cases:
    iTunes doesn't recognize your device or says it's in recovery mode.
    You see the Apple logo onscreen for several minutes with no progress bar.
    You see the Connect to iTunes screen.
    Learn what to do if you see the progress bar onscreen for several minutes.
    To put your device into recovery mode, follow these steps:
    Turn off your device and leave it off.
    Plug in your device's USB cable to a computer with iTunes. 
    Hold down the Home button on your device as you connect the USB cable. Keep holding down the Home button until you see the Connect to iTunes screen.
    When you see this screen, release the Home button. If you don't see this screen, try steps 1 through 3 again. 
    When your device is connected, iTunes will open. You'll see a message saying that iTunes has detected an iPhone, iPad, or iPod touch in recovery mode.
    Use iTunes to restore your device. Restoring in recovery mode will erase your device. If you previously synced with iTunes or iCloud, you might be able to restore from your backup.
    Get more help
    Learn what to do if you don't see your device in iTunes for OS X, or in iTunes for Windows.
    If you put your device into recovery mode by mistake, restart it. Or you can wait 15 minutes and your device will exit recovery mode by itself.
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • Available memory decreases over time

    Hello,
    I noticed that under ICS, the available memory decreases over time. After about 10-15 days of use without reboot, the available memory goes from approx 150Mb to 70Mb. It is not my applications that are taking the RAM but it rather seems that it is the OS itself that is using it.
    Under the Settings>apps>running> the first portion of the memory (OS I presume) keeps taking more space. Then after 10-15 days, the phone slows down and becomes jerky. After a reboot, everything goes back to normal.
    I can't remember if it was the same under GB. Anyone experiencing this?

    Thanks for you replies guys. This isn't so great to have to reboot every so often. There must be a memory leak somewhere.
    Invar, even if I close an app, there is still a bunch of memory that's taken by the OS that doesn't get released. It's ok that apps take RAM so that they load faster when I need them, but when the OS takes up all the RAM, then the apps have little RAM to play with and it becomes laggy.
    I definitely won't be rebooting every day. I like my phone to just work and forget about it. In my case, I can probably wait about 10 days until it starts becoming laggy again.
    Yea, I do miss phones of yesterday where they just worked (I'm thinking dumb phones, BB). Android is cool, we just need the bugs to be fixed. I hope 4.0.4 fixes that.

  • I Have a Security Concern Over the AT&T U-verse Router Pace Plc 5031NV-030

    Hello ?? I Have a Security Concern Over the AT&T U-verse Router Pace Plc 5031NV-030 Pace Plc 5031NV-030 Ser # 48131N052034 Hardware Version 2701-000875-004 Software Version 9.8.1.489233-att All someone Needs is a Ethernet cord in his back pocket. Connected to Your Router and They Can Find My "Secure" Network Wireless Key is Visable Just By Typing the Default http://192.168.1.254/ IP for my Gateway, in to a browser device on a portable device, so They Can Next Access My Network without My Permmission Net Time !!!!  This is a Serious Security Concern  on  A&TT's Part !!! AT&T Should Have a Concern Over This Too, I Do All I Can to Prevent Theft of My Intenet Service, But If I have a Guest Visit Me, And I Leave the Room Where This Router is Located, I Will Not Know If This Has Taken Place !!!??   AT&T Should Be Very Concerned in This Regard !!!!

     No, you should be concerned about the friends you have at your place.  If you think they will do that, I'd suggest you get some more trustworthy friends.
    Take some personal responsibility to protect your internet service.
    Personally I only use a wired ethernet connected laptop and have wireless turned off, so that concern is mitigated.
    Chris
    Please NO SD stretch-o-vision or 480 SD HD Channels
    Need Help? PM ATT Uverse Care (all service problems)
    ATT Customer Care(all other problems)
    Your Results May Vary, In My Humble Opinion
    I Call It Like I See It, Simply a U-verse user, nothing more

  • Memory and java beans

    i have servlet that creates a bean that holds some data from a table.
    Purpose: not to hit DB2 everytime to build some drop downs on jsp.
    We just wanted to have a bean in the memory and access it whenever we need it.
    Now, my concern is server memory.
    Can someone tell me how does java data beans effect memory?
    My java bean holds only plain text from the table.
    I think there are over 1300 records. is it worth doing this?
    Is there a guide that tells me for how many rows how many MB of ram is used?
    thanks
    nn

    Well you need not worry much about memory as this will be taken care by the Container i.e. EJB Server in general
    The EJB Server will serialize the object in the file if it is not used for a certain period of time and again deserialize when the file is used
    Bye for now
    CSJakharia

  • Concerns over switching between new Azure SQL Database Service Tiers

    Windows Azure's new SQL Database
    service tier pricing model will be put into effect in less than 12 months. We currently have SQL Databases on the Business and Web Edition pricing models.
    We recently asked Azure Support a number of questions around the scalability and ability to switch between these tiers. The responses so far have been far from encouraging:
    Q: If we exceed the criteria for a given tier (see http://msdn.microsoft.com/library/azure/dn741336.aspx), how will Azure respond? For example, if we are on the S1 service tier, and we exceed the maximum number of sessions (200), will any new sessions be
    blocked until we manually increase the service tier? Or will you automatically move (and bill) us to/for the next tier level?
    A: If you exceed the criteria of the existing tier, you shall be notified of performance issue like throttling. Users may experience slowness and blocking. There will not be any automatic upgrade.
    Q: So to confirm, if we suddenly experience increased, unanticipated client activity overnight due to our web site becoming more popular, you will be blocking any user sessions over and above our performance level limit, until we manually make the transition
    to the next level? Is there no “overdraft” facility/scalability in this respect? If this scenario took place within a short space of time, how would we have time to react? Simply blocking new sessions and preventing customers from using our site is not acceptable.
    A: I’m sure you understand that SQL Azure database is a shared resource and hence we cap the resources for individual subscription so that a fair service is provided to all the concurrent users. If you feel that you cannot compromise on the user experience
    then you shall think of an edition that best suits you. Please refer to the following document to best understand the throttling and its impact. http://social.technet.microsoft.com/wiki/contents/articles/1541.windows-azure-sql-database-connection-management.aspx#Throttling_Limits
    Q: Since the changing of the performance level could take several minutes/hours depending on the size of the database, would we experience any downtime/degradation of performance of the database during this period?
    A: You might
    Q: If downtime/degradation of performance are a possibility whilst we switch service tiers, what do Microsoft recommend we do to safeguard against this? Should we create a second database on a higher tier level and then export the data from the lower tier and
    import to the higher, before switching over? How do Microsoft recommend we switch tiers in a production environment with minimal disruption?
    A: If you want to upgrade the tiers due to degradation of performance, you will have to create another database on a higher tier and import the data.
    One of our key reasons for moving to Azure hosting was the seamless scalability it appeared to offered. As you can imagine, the responses above are a major concern for our production environment. Does anyone else have any thoughts or concerns in this respect?

    James,
    I reviewed the support incident you referred to and believe that the questions you asked may have been answered later in the interaction you had with the engineer.  For the benefit of others viewing this forum I want to reiterate the answers
    to your key questions here as well.
    Q. What is the behavior when you reach the limits for the service tier?
    A. Each service tier currently has limits on 4 different dimensions (CPU, physical reads, log writes and memory) of resource consumption.  When you reach one of the limits, the behavior depends on which resource limit you are hitting, but
    generally speaking is consistent with the behavior you would see with a similar hardware limit in the SQL Server box product.  For example, when you reach the CPU limit your queries will start showing more SOS_SCHEDULER_YIELD waits,
    the memory limit will cause a higher percentage of pages to be read from disk instead of the buffer cache (PAGEIOLATCH_xx waits), etc.  This set of limits does not directly abort any of your queries--they just run longer as they
    vie for the fixed set of resources made available to your database.  In a system where the load greatly exceeds the resources, queries may start to time out.
    The new service tiers continue with the Web/Business edition behavior of limiting the number of sessions and concurrent requests (worker threads) you can have.  When you exceed these limits you'll get error 10928.  Note that
    each tier in Basic/Standard/Premium have different values for these limits (http://msdn.microsoft.com/en-us/library/azure/dn369873.aspx) than Web/Business and thus may encounter the errors at different usage levels.  The key is choosing the appropriate
    service level for the application, and to facilitate that the sys.resource_stats view shows historical usage information so you know where you stand as far as reaching any of the limits.  This resource consumption data is also available in the portal.
    Q. Is it possible to switch service tiers, and is there any disruption when you do so?
    A. Yes, you can change between service tiers as described in this MSDN documentation (http://msdn.microsoft.com/en-us/library/azure/dn369872.aspx).  This can be done through the portal, powershell, or REST APIs.  [The preview currently has a restriction
    where legacy servers don't support switching to Basic/Standard which is expected to be removed in the near future.]  The link above outlines the limits on the number of tier changes you can do in a 24 hour period, expected time to perform the change, and
    the client disconnect that occurs.
    If you have further questions, feel free to re-engage on the support incident or reply to this forum thread.

  • Concern over Pre-order $10 Reward Certificate

    Hello, I pre-ordered Battlefield Hardline for the Xbox One and picked it up on release day. Well, I saw the drop in the price so I went in to get the price adjusted, but I don't think the lady there helping me really knew how to do it. After about 10 minutes of just standing there, she finally got me the difference back but on the receipt, it says exchange, not price match nor price adjustment, even though I kept the game and everything, she just refunded me the price difference. Well, it's been over 15 days since I got the game and my account shows no points nor reward certificates, so I'm wondering, did she do the process wrong and mess up my pre-order certificate? Any help would be appreciated, thank you.

    Hello BahrKode,
    Thank you for posting your concerns about your My Best Buy certificates.    I was able to locate your transactions and it appears that the points were allocated to your account on 3/17/2015.  
    You can view the current status of your account by clicking here and logging in.  Please let me know if you don't see these points in your account. 
    Blake|Social Media Specialist | Best Buy® Corporate
     Private Message

  • In Memory BCP from Bean to Sybase table

    I am looking for an example of how to bcp data to a sybase table from within a bean. I know it is possible to do so from within a C++ program, so I'm hoping the same is true when using EJB's. Bear in mind that I am not a Java developer, I am a Sybase DBA, but need this info to provide an example to our developers for my recommended approach. We do not want to have to write the hundreds of rows to a file and then invoke the bcp binary, we want to do it directly from memory. We will accumulate the rows to be inserted, then we want to bcp directly.
    Is there a function, method, or something that someone can show me, or if not a sample, then maybe just the correct syntax format?
    Thanks in advance!

    You probably can invoke bcp from an EJB, you can just put a method in the bean that executes bcp using Runtime.exec(...). However, this isn't really the sort of thing EJB's were invented for, I would probably write an RMI service to do it then bind that to JNDI so that I could access it in the same fashion as I would a bean.

  • Memory leak - Managed beans kept in memory in ADF

    Hi,
    Our application occasionally runs out of memory, and what we are finding is that the managed beans beneath components on the page are not being cleaned up, even after the user's session has expired.
    What I am finding, by using the JDeveloper debugger and Heap window, is that there are instances of com.evermind.server.http.EvermindHttpServletRequest left in memory, which hangs on to the entire page, and therefore all of the instances of the ADF Component classes and managaged beans.
    Has anyone else come across this and found a way to clean up all of the page information left on the EvermindHttpServletRequest after the page is no longer in scope, and the session has expired?
    Any assistance which anyone can provide on this issue would be greatly appreciated.

    Hi,
    I'm quite sure I'm hitting the same problem here. This is really serious!

  • Performance/Memory Concerns

    I have implemented my own logging strategy in an my applet which sends my log messages to a servlet that writes them to a file on the server. However I would also like to view these messages on the client side by useing Sytem.out.println(...) to put them in the Jave Plugin Console. I have the abbility to control the level of the logging from full off to full on and some step in beteween. My concern is that with logging full on there may be tens of thousands of messages printed to the Console in an hour of use which may impact performance or take up enough memory to cause more harm than good. Any thoughts? As a note logging would generally be turned off under normal operating conditions this would only be used by a maintainer to track down a problem.

    The maintainer then could select the logging level as needed.
    I see no problems - as long as the console doesn't go directly to hardcopy.

  • Xperia z3 D6603 concern over gaps between glass and frame.

    Hello,
    I recently upgraded my ion to z3. And there is no doubt that it's an amazing phone.
    But I have some concerns regarding the small gaps between glass panel and metal frame. It gets dust and more over that I am worried about its waterproofing. I want to know is it normal for all z3 out there or is it just me? What if it can't handle water in this regard?
    There are some pictures.
    Solved!
    Go to Solution.

    This subject has been mentioned many times before, from the Z all the way thru the models up to the Z3.......you have to have some uniform gap between the panels & the bezel...this is to allow some form of expansion due to temp changes, if you think about it.......if it was packed tight & the phone heats up the expansion would have nowhere to go resulting in damage. The gaps do not mean that you have a waterproof issue either.....
    Hope this helps 

  • Concerns Over Purchasing the MBP 17"

    I am so close to buying this bad boy, but I am reluntant...
    Is anyone under the impression that there are going to be significant upgrades by December?
    I don't really care about cpu speeds as they are always going to get higher and higher, but intel has some new chips coming out, wireless N is approaching, higher rez displays maybe...
    I am currently on a pretty beat up Powerbook G4 1.25 so I know there is going to be a HUGE difference, but I'm wondering whether or not I should wait...
    ....Though I'm not sure I am capable of waiting...
    What I'd really like so for someone to talk me into getting it. I'd like to go get it tomorrow so if you could be really convincing...
    bp

    No way! Do not wait. These new MacBook Pro are awesome. All the kinks have now been worked out creating a flawless machine to get work done and last about 3 to 5 years before its time to do it all over again.
    My rule of thumb is if I am doubling my speed and getting at least 10 true benefits, its worth the upgrade. I was on the fence until last sunday. I bought the 17 inch and I am very happy I did. There maybe a speed increase at the end of the year but until an all new design is created by Apple this is the way to go.
    The most you're going to get as far as speed is concerned is probably 10 percent increase against the latest 17 inchers. You really have to ask yourself what are you going to be doing with the machine to justify the wait and the cost. How long will it be before the kinks are ironed out on that new machine?
    I went from a G4 867 that I put a 1.4 dual processor in. I got the following in my new purchase of my 17 inch:
    1. Ability to do windows using parallel or bootcamp
    2. Higher ram ability and capacity
    3. Built in isight
    4. Built in WIFI
    5. Built in Bluetooth
    6. The Intel Core Duo
    7. Front Row
    8. Firewire 800
    9. Faster PCIe/34 slot
    10. Better graphics card (performance)
    11. Bigger hard drive (120GB)
    12. Portable vs Desktop (doesnt apply to you)
    13. Illuminated keyboard
    14. Better power adapter
    15. Faster frontside bus
    and much, much more - software blah, blah, blah.
    For me, it was well worth it.
    Good luck

  • How do I express my concern over Apple's recent e-mail offer to me for trade-in/upgrade of iPad?

    Here is what happened.  Can't even locate someone within Apple who would entertain such a complaint.  Apple has effectively turned its wonderful 'customer service' into a Rube Goldberg puzzle where the customer will take what is offered or take nothing at all.
    On July 9, 2014, I received an e-mail from Apple explaining I could trade in my old iPad and upgrade to a new one.  A refund gift card commensurate to my current iPad would be issued that I could use toward the purchase of a new iPad.
    I wiped my 3rd generation 32GB iPad clean and made the 72-mile round trip to your Apple Retail Store in Greensboro, NC on the morning of July 14th. I was greeted by one of your staff, Darius, and explained to him I'd like to turn in my old iPad for a gift card and purchase a new iPad. He immediately responded he didn't think that would be possible.  I offered to show him a copy of your e-mail I had received.  He then said I would be able to turn in the old iPad for a credit but I must immediately buy a new one there.  I asked for further clarification whether I could receive an Apple gift card since I wanted to buy a refurbished iPad Mini, Retina Display to save a little money and put that savings toward buying one with more memory.  He said "no", I could only buy a refurbished iPad through your online store.  Darius further explained that I could not use the Apple Store credit to buy an Apple product from the Apple Online Store. I also had brought to the store an old PowerBook G4 I wanted to turn in for recycling. Darius responded incredulously that the Apple Store, "does not do that". 
    I feel I was misled by your e-mail of July 11 in that it was not clear that I could only turn in my old iPad at an Apple Store if I purchased a new item at that particular store.  It was news to me that Apple Gift Cards are not universal between your online and physical stores.  I found the Apple Store representative to be very dismissive of my questions and to lack any imagination in trying to help me buy the Apple product I was interested in.  He was as happy to see me leave the store, empty-handed, as I was to leave.
    Regards,
    (contact info redacted for privacy)

    USer to user forum-no Apple here.
    I Think it is very clear you must use the card in store.
    Apple stores have never carried or sold refurbished devices.
    Apple stores have never claimed, advertised or posted signs saying they are a recycling center.

  • How do I get a MS Word document on a Memory stick over to my IPad to edit and continue writing?

    I am looking to transfer my book that I am writing, with photos, from a USB memory stick written in Microsoft Word document format across to my IPad 3 to continue working on, editing it and adding more text and photos.
    Thanks for any help.
    Michael D

    You can't directly - the camera connection kit which has a USB connection only supports the copying of photos and videos to the Photos app. You will need to copy the document onto a computer and then, depending on what the app that you want to edit it in on the iPad supports, either copy it via the file sharing section at the bottom of the device's apps tab when connected to iTunes, via wifi, email, dropbox etc

Maybe you are looking for

  • Create JCO Exception

    Hi Experts, My issue is: In Enterprise portal when i try to create Jco i am getting the following exception: java.lang.NullPointerException      at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.checkStatus(SystemLandscapeFactory.java:

  • Firefox has stopped working, cannot locate in process section. If I delete it altogether what will happen?

    Very frustrating its blocking many of my websites recieved through email. Just want to delete it altogether. Windows states it will close program until problem is resolved but no resolution comes. Now my printer is not working, not sure if firefox ha

  • Inforecord Price in Purchase Requisition

    Hello, when we create a PR manually, we are setting the material, plant, purchase organization, fixed vendor. In the PR screen then the inforecord number appears automatically, however, the valuation price for the PR is not taken from the inforecord,

  • Capturing the Transport Acknowledgment

    I am sending a PO from a legacy System (File Adapter /)Asynchronous and from XI we are sending to a Vendor using (Asynchronous/HTTP Adapter). I am using a BPM to do the above process. In my Send Step to Vendor, I have the Transport Acknowldgement set

  • Nokia E72 Phonebook Entry Issue

    I want to find out, how many contact numbers can be stored in the phonebook in Nokia E72 phone? I have around 3500 contact numbers. Phone get stucks all the time. Kindly let me know about the limitation..... Thank you very much