ahmad seddighi

+ Follow
since Jun 22, 2004
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ahmad seddighi

Thank you, dear.
Yes. I think my book is a good book to start. It assumes you a beginner in the context and teaches you from beginner to advance.

Spring and Hibernate are not alternatives to JSF and JPA. With Hibernate you can still continue JPA development, but now with Hibernate implementation. And with Spring you can work with JSF more easily than before.

Good Luck,
Spring Persistence with Hibernate
9 years ago
There is a recent book on Spring and Hibernate; you can find more about it at Spring Persistence with Hibernate
Ahmad Reza Seddighi
9 years ago
In essence, Hibernate is designed to map the object-oriented world to the relational world. So, Hibernate is perfect for projects which have a complicated object hierarchy and a complicated DB schema. Hibernate is not the best choice for data-centric applications which just include raw data and business rules on this data are implemented as procedures in the database-side.
Ahmad Reza Seddighi

Spring Persistence with Hibernate
Do you catch any exceptions? I need more information about your case to help...
Ahmad Reza Seddighi, the author of Spring Persistence with Hibernate
Transactions are transactions! But in Java applications, there are several APIs (or approaches) to manage transactions:
  • JDBC Transaction API
  • Java Transaction API (JTA)
  • Hibernate Transaction API
  • JPA Transaction API
  • Spring Transaction Abstraction API

  • To manage transactions in Hibernate applications, you can use Hibernate native API, JPA transaction API if you are developing on JPA, JTA if you are developing with multiple transactional resources, or preferably use Spring transaction abstraction API if you are developing Hibernate with Spring. You can find more about transaction management in Spring Persistence with Hibernate

    Spring Persistence with Hibernate, By Ahmad Reza Seddighi
    take a look at http://www.xmission.com/~goodhill/dates/datedeprecation.htm

    Spring Persistence with Hibernate
    Hibernate and Spring may be used together to develop most effective code in the data tier and solve problems related to this tier, such as managing transactions, handling exceptions, and so on. But to develop the whole application, we may use other frameworks to develop other tiers of the application; and this is when we use a framework such as Struts with Hibernate; Struts for the presentation tier and Hibernate for data tier.
    Ahmad Reza Seddighi

    Spring Persistence with Hibernate (Packt Publishing)
    I suggest you, Spring Persistence with Hibernate (Packt Publishing), that teaches you Hibernate with JPA with simple and comprehensive examples. With this book, you can also learn Spring integration since Hibernate is almost used with Spring. Here, you can find more about this book: Spring Persistence with Hibernate, By Ahmad Reza Seddighi
    Hi dears,
    I know how to deploy and test a servlet in tomcat 4.0.27, (just by copying servletname.class file in TOMCAT_HOME/webapps/ROOT/WEB-INF/classes and using http://localhost:8080/servlet/servletname in browser)

    but doing this in tomcat 4.1.27 did now worked correctly, does anyone know how can I solve it?

    by regars
    13 years ago
    Hi dears,
    I know how to deploy and test a servlet in tomcat 4.0.27, (just by copying servletname.class file in TOMCAT_HOME/webapps/ROOT/WEB-INF/classes and using http://localhost:8080/servlet/servletname in browser)

    but doing this instruction did now worked correctlyk, do anyone know how can I solve it?

    by regars
    13 years ago
    Hi Dear,

    I created HelloServlet.java servlet and compiled it, then I copied it in TOMCAT_HOME/webapps/ROOT/WEB-INF/classes/ in tomcat 4.0.27.
    but when I want to use tomcat 4.1.30 instead of 4.0.27, I coud not do it, because in tomcat 4.1.30 all of *.war files do not extracted when tomcat get started, and if I create new directory in webapps folder and create WEB-INF/classes forlders, at final it will not work.

    13 years ago
    Hi everybody,

    When I use Jasper Reports to print my documents, I encounter with this excpetion,

    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x7B274DA

    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.

    Current Java thread:
    at sun.awt.windows.WPrinterJob.textOut(Native Method)
    at sun.awt.windows.WPrinterJob.textOut(WPrinterJob.java:912)
    at sun.awt.windows.WPathGraphics.drawString(WPathGraphics.java:391)
    at java.awt.font.TextLayout$OptInfo.handleDraw(TextLayout.java:269)
    at sun.awt.font.Decoration$DecorationImpl.drawTextAndEmbellishments(Decoration.java:236)
    at sun.awt.font.Decoration$DecorationImpl.drawTextAndDecorations(Decoration.java:301)
    at java.awt.font.TextLayout$OptInfo.draw(TextLayout.java:298)
    at java.awt.font.TextLayout.draw(TextLayout.java:2660)
    at net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportText(JRGraphics2DExporter.java:1022)
    at net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportPage(JRGraphics2DExporter.java:281)
    at net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReportToGraphics2D(JRGraphics2DExporter.java:233)
    at net.sf.jasperreports.engine.export.JRGraphics2DExporter.exportReport(JRGraphics2DExporter.java:211)
    at net.sf.jasperreports.engine.print.JRPrinterAWT.print(JRPrinterAWT.java:268)
    at sun.print.RasterPrinterJob.printPage(RasterPrinterJob.java:1513)
    at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:1085)
    at sun.print.RasterPrinterJob.print(RasterPrinterJob.java:986)
    at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:223)
    at net.sf.jasperreports.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:131)
    at net.sf.jasperreports.engine.JasperPrintManager.printPages(JasperPrintManager.java:392)
    at net.sf.jasperreports.engine.JasperPrintManager.printReport(JasperPrintManager.java:283)
    at net.sf.jasperreports.view.JRViewer$21.run(JRViewer.java:1057)
    at java.lang.Thread.run(Thread.java:534)

    Dynamic libraries:
    0x00400000 - 0x00406000 F:\PrgTools\JDK1.4\bin\java.exe
    0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
    0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
    0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
    0x78000000 - 0x78086000 C:\WINDOWS\system32\RPCRT4.dll
    0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
    0x08000000 - 0x08138000 F:\PrgTools\JDK1.4\jre\bin\client\jvm.dll
    0x77D40000 - 0x77DCC000 C:\WINDOWS\system32\USER32.dll
    0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
    0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
    0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.DLL
    0x629C0000 - 0x629C8000 C:\WINDOWS\System32\LPK.DLL
    0x72FA0000 - 0x72FFA000 C:\WINDOWS\System32\USP10.dll
    0x10000000 - 0x10007000 F:\PrgTools\JDK1.4\jre\bin\hpi.dll
    0x003A0000 - 0x003AE000 F:\PrgTools\JDK1.4\jre\bin\verify.dll
    0x003B0000 - 0x003C9000 F:\PrgTools\JDK1.4\jre\bin\java.dll
    0x003D0000 - 0x003DD000 F:\PrgTools\JDK1.4\jre\bin\zip.dll
    0x02B60000 - 0x02B7C000 F:\PrgTools\JDK1.4\jre\bin\jdwp.dll
    0x06B80000 - 0x06B85000 F:\PrgTools\JDK1.4\jre\bin\dt_socket.dll
    0x71AB0000 - 0x71AC5000 C:\WINDOWS\System32\ws2_32.dll
    0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll
    0x71A50000 - 0x71A8B000 C:\WINDOWS\System32\mswsock.dll
    0x76F20000 - 0x76F45000 C:\WINDOWS\System32\DNSAPI.dll
    0x76FB0000 - 0x76FB7000 C:\WINDOWS\System32\winrnr.dll
    0x76F60000 - 0x76F8C000 C:\WINDOWS\system32\WLDAP32.dll
    0x76FC0000 - 0x76FC5000 C:\WINDOWS\System32\rasadhlp.dll
    0x71A90000 - 0x71A98000 C:\WINDOWS\System32\wshtcpip.dll
    0x073E0000 - 0x074EF000 F:\PrgTools\JDK1.4\jre\bin\awt.dll
    0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV
    0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll
    0x07500000 - 0x07550000 F:\PrgTools\JDK1.4\jre\bin\fontmanager.dll
    0x73760000 - 0x737A4000 C:\WINDOWS\System32\ddraw.dll
    0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
    0x73940000 - 0x73A07000 C:\WINDOWS\System32\D3DIM700.DLL
    0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll
    0x07650000 - 0x0767B000 C:\WINDOWS\System32\msctfime.ime
    0x07740000 - 0x0774F000 F:\PrgTools\JDK1.4\jre\bin\net.dll
    0x746F0000 - 0x74716000 C:\WINDOWS\System32\Msimtf.dll
    0x078F0000 - 0x0794B000 D:\Program Files\Babylon\CAPTLIB.DLL
    0x07B70000 - 0x07B92000 F:\PrgTools\JDK1.4\jre\bin\dcpr.dll
    0x763B0000 - 0x763F5000 C:\WINDOWS\system32\COMDLG32.DLL
    0x70A70000 - 0x70AD4000 C:\WINDOWS\system32\SHLWAPI.dll
    0x77340000 - 0x773CB000 C:\WINDOWS\system32\COMCTL32.dll
    0x773D0000 - 0x77BC7000 C:\WINDOWS\system32\SHELL32.dll
    0x71950000 - 0x71A34000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
    0x6A900000 - 0x6A949000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\CAP2UIK.DLL
    0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
    0x07B20000 - 0x07B3A000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\CAP2K.DLL
    0x50900000 - 0x5090E000 C:\WINDOWS\System32\spool\DRIVERS\W32X86\3\CAP2RDN.DLL
    0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
    0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
    0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL

    Heap at VM Abort:
    def new generation total 2304K, used 1731K [0x10010000, 0x10280000, 0x104f0000)
    eden space 2112K, 80% used [0x10010000, 0x101b9398, 0x10220000)
    from space 192K, 16% used [0x10250000, 0x10257bd0, 0x10280000)
    to space 192K, 0% used [0x10220000, 0x10220000, 0x10250000)
    tenured generation total 29472K, used 19639K [0x104f0000, 0x121b8000, 0x14010000)
    the space 29472K, 66% used [0x104f0000, 0x1181def0, 0x1181e000, 0x121b8000)
    compacting perm gen total 13824K, used 13724K [0x14010000, 0x14d90000, 0x18010000)
    the space 13824K, 99% used [0x14010000, 0x14d77198, 0x14d77200, 0x14d90000)

    Local Time = Tue Jan 18 14:23:09 2005
    Elapsed Time = 1752
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode)
    # An error report file has been saved as hs_err_pid6360.log.
    # Please refer to the file for further information.
    I do not know why this exception is occured.
    Ahmad R. Seddighi
    14 years ago

    when using server side component, I think it's better that you don't throw new exception rather than RemoteException to client side, but in client you can catch RemoteException and according your application, handle it.

    be success
    Ahmad R. Seddighi
    14 years ago
    Hi everybody,

    I made a TXDataSource datasource in weblogic application server,but when i want to deploy my ejbs, it can not be deploy,

    so my question is:
    how can I specify datasource type (TXDataSource) in my ejb?

    by the way, what is differences and advantages of this type of datasource and others.

    best regards
    thanks for your help

    Ahmad R. Seddighi