Search:

Type: Posts; User: namon22; Keyword(s):

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    0
    Views
    794

    Code Obfuscation

    Sorry for posting it here if it does not belong, cant find appropriate forum for that.

    My PM is asking for Code Obfuscation to stop reverse engineering.

    If I obfuscate my code then class names...
  2. Replies
    1
    Views
    2,122

    Code Obfuscation

    My PM is asking for Code Obfuscation to stop reverse engineering.

    If I obfuscate my code then class names would be changed and I would have to re write my spring applicationcontext file. Is there...
  3. If I can move code to some other class for insert...

    If I can move code to some other class for insert 2 then I can live with proxy mode and it will solve all issues but this is legacy application and I can't move code too much:-(
  4. Thanks but it would not work if other function is...

    Thanks but it would not work if other function is in same service so it becomes self invoke and calls new function w/o transaction. (Please look section 6.6.1 of tutorial about proxy mode). So to get...
  5. Last solution of creating new thread would not...

    Last solution of creating new thread would not work if there were two insert in thread and if second insert fails and first one succeed then first one will be persisted in DB.
  6. I did dirty thing to get this done but I don't...

    I did dirty thing to get this done but I don't like it. Got new thread so I got new session so if that failed then it did not affect my insert 1 and 3. Would it gave have any side effects ?

    Any...
  7. Hibernate + Spring Transaction , 20 $ via pay pal for right solution

    I am now pretty desperate to get this thing done. If you help me to get answer to my problem then I will pay 20$ via pay pal.

    The problem is very simple.

    I am using Spring + Hibernate and...
  8. Replies
    6
    Views
    1,228

    Any one please :-( ...I am simply stuck and can't...

    Any one please :-( ...I am simply stuck and can't progress
  9. Replies
    6
    Views
    1,228

    Thanks dejanp. So hibernate session is...

    Thanks dejanp.

    So hibernate session is unusable after hibernate exception and I need new session and new transaction so I put the code that throws exception in some other function

    So my code...
  10. Replies
    6
    Views
    1,228

    I will simplify the problem so that I could get...

    I will simplify the problem so that I could get some responses.


    @Transactional
    public class HibServiceImpl implements HibService{

    @Transactional(readOnly = false, propagation =...
  11. Replies
    6
    Views
    1,228

    Come on guys , any one :-(

    Come on guys , any one :-(
  12. Replies
    6
    Views
    1,228

    Weird Behavior or Expected Behavior or Bug

    @Transactional
    public class HibServiceImpl implements HibService{


    @Transactional(readOnly = false)
    public void bar(){
    dao.insert(...); // ---> Write OP1
    }

    @Transactional(readOnly...
  13. Replies
    2
    Views
    630

    Another thing, I would like to clarify is that if...

    Another thing, I would like to clarify is that if DB Op1 depends on DB Op3 then by time DB Op1 is executing, DB Op 3 is not committed so would DB Op 1 succeed ?

    For e.g.

    DB Op3 is "Inserting...
  14. Replies
    2
    Views
    630

    Trivia Transaction Boundaries Question

    @Transactional
    class Test {

    @Transactional
    void foo() throws Exception {
    //DB Op 1
    //DB Op 2
    throw new Exception()
    }
  15. Replies
    4
    Views
    1,039

    Actually I have setter method for B which I did...

    Actually I have setter method for B which I did not paste to simplify code.

    If I make a call to b.foo() in some other function of A besides constructor then it works fine but in constructor it...
  16. Replies
    4
    Views
    1,039

    Constructor throws Exception

    I have a simple class A that has one object of class B and it calls some function on b in its constructor but I get null pointer exception, I am creating object of B via DI. Seems that object of B is...
  17. Replies
    10
    Views
    15,985

    Okay, I am trying to ruinm simple test but...

    Okay, I am trying to ruinm simple test but hiotting exception :-(


    org.apache.maven.surefire.booter.SurefireExecutionException: org.junit.runner.notification.RunNotifier.testAborted(Lorg/junit...
  18. Replies
    10
    Views
    15,985

    here is my test method //@Test(expected =...

    here is my test method


    //@Test(expected = GeneralException.class) -----> 1
    @ExpectedException(GeneralException.class) -----> 2
    public void testGeneralException() throws Exception
    {
    ...
  19. Replies
    10
    Views
    15,985

    Spring Tests dont recognize @Test annotation

    My test class is extending AbstractDependencyInjectionSpringContextTests and has junit4.5 in its class path.

    I have @Test annotations in my test code but it does not identify it.

    I need to use...
  20. What if I need this functionality in business or...

    What if I need this functionality in business or service beans and not test bean.
  21. Exception: Class contains two beans of same type

    The test bean has two members of same type "Manager which is simple DTO




    public class ManagerTest extends AbstractDependencyInjectionSpringContextTests {

    private Manager manager;
    ...
  22. How to limit transaction for some functions of service

    Right now I have following code snippet in my applicationcontext.xml


    <tx:advice id="txAdvice" transaction-manager="txManager">
    <tx:attributes>
    <tx:method name="get*"...
  23. How to store thousands of Java Objects in DB efficiently

    I have to store thousands of Java objects in DB. My DB Administrator is not happy to have issuance of thousands of separate SQL inserts one for each object/record. Could some one please point me to...
  24. Thanks Marten

    Okay , I also added following snippet on my applicationcontext.xml after doing googling but still facing the same issue. Let me tell you I am niave i nsprinsg and just learning it on project.



    ...
  25. Spring/Hibernate Application Hangs after 8 sql statement

    I am using SQL server and its simple application to read data from it via hibernate/springs but my application ALWAYS hangs after 8 sql statements, could you please tell me what could be the issue.
    ...
Results 1 to 25 of 26
Page 1 of 2 1 2