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...
Type: Posts; User: namon22; Keyword(s):
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...
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...
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:-(
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...
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.
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...
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...
Any one please :-( ...I am simply stuck and can't progress
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...
I will simplify the problem so that I could get some responses.
@Transactional
public class HibServiceImpl implements HibService{
@Transactional(readOnly = false, propagation =...
Come on guys , any one :-(
@Transactional
public class HibServiceImpl implements HibService{
@Transactional(readOnly = false)
public void bar(){
dao.insert(...); // ---> Write OP1
}
@Transactional(readOnly...
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...
@Transactional
class Test {
@Transactional
void foo() throws Exception {
//DB Op 1
//DB Op 2
throw new Exception()
}
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...
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...
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...
here is my test method
//@Test(expected = GeneralException.class) -----> 1
@ExpectedException(GeneralException.class) -----> 2
public void testGeneralException() throws Exception
{
...
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...
What if I need this functionality in business or service beans and not test bean.
The test bean has two members of same type "Manager which is simple DTO
public class ManagerTest extends AbstractDependencyInjectionSpringContextTests {
private Manager manager;
...
Right now I have following code snippet in my applicationcontext.xml
<tx:advice id="txAdvice" transaction-manager="txManager">
<tx:attributes>
<tx:method name="get*"...
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...
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.
...
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.
...