[Installation, Configuration & Deployment] - Re: Windows Explorer automatically pops up displaying C:\Pro
by Markus.Wahl
Hi Peter, thanx.
"PeterJ" wrote : I assume that you used the installer jar file to install JBoss and that you installed into the Program Files directory. Correct?
I did use the jar file (jboss-4.0.4.GA-Patch1-installer.jar) but I installed in the Program directory rather than Program Files (read someplace that JBoss don't like Program Files and that Program should be used instead).
"PeterJ" wrote : Did you set up JBoss as a service?
nope
"PeterJ" wrote : Post the contents of the resulting autorun.txt file.
HKLM\System\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\StartupPrograms
| rdpclip
| RDP Clip Monitor
| Microsoft Corporation
| c:\windows\system32\rdpclip.exe
|
| HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logon
| se.OfficeScan_AV-Check
| \\ibs.net\sysvol\ibs.net\policies\{619097fb-7336-446e-9427-62d15ba945dc}\user\scripts\logon\se_officescan_av-check.cmd
|
| HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Userinit
| C:\WINDOWS\system32\userinit.exe
| Userinit Logon Application
| Microsoft Corporation
| c:\windows\system32\userinit.exe
|
| HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Shell
| Explorer.exe
| Windows Explorer
| Microsoft Corporation
| c:\windows\explorer.exe
|
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
| TPHOTKEY
| c:\program files\lenovo\pkgmgr\hotkey\tphkmgr.exe
| TP4EX
| TrackPoint Accessibility Features
| Lenovo Group Limited
| C:\WINDOWS\system32\TP4EX.exe
| SynTPLpr
| TouchPad Driver Helper Application
| Synaptics, Inc.
| c:\program files\synaptics\syntp\syntplpr.exe
| SynTPEnh
| Synaptics TouchPad Enhancements
| Synaptics, Inc.
| c:\program files\synaptics\syntp\syntpenh.exe
| SoundMAXPnP
| SMax4PNP MFC Application
| Analog Devices, Inc.
| c:\program files\analog devices\soundmax\smax4pnp.exe
| SoundMAX
| SoundMAX Control Center
| Analog Devices, Inc.
| c:\program files\analog devices\soundmax\smax4.exe
| ATIPTA
| ATI Desktop Control Panel
| ATI Technologies, Inc.
| c:\program files\ati technologies\ati control panel\atiptaxx.exe
| TpShocks
| ThinkVantage Active Protection System
| Lenovo, Ltd. and IBM Corporation.
| c:\windows\system32\tpshocks.exe
| EZEJMNAP
| ThinkPad EasyEject Support Application
| Lenovo Group Limited
| c:\program files\thinkpad\utilities\ezejmnap.exe
| PWRMGRTR
| ThinkPad Power Manager Background Monitor and Tray Battery Gauge
| Lenovo Group Limited
| c:\program files\thinkpad\utilities\pwrmgrtr.dll
| BLOG
| c:\program files\thinkpad\utilities\batlogex.dll
| TPKMAPHELPER
| Anpassat tangentbord
| Lenovo
| c:\program files\thinkpad\program\tpkmapap.exe
| TPKBDLED
| c:\windows\system32\tpscrlk.exe
| Synchronization Manager
| Microsoft Synchronization Manager
| Microsoft Corporation
| c:\windows\system32\mobsync.exe
| OfficeScanNT Monitor
| I/O Monitor
| Trend Micro Inc.
| c:\program files\trend micro\officescan client\pccntmon.exe
| {0228e555-4f9c-4e35-a3ec-b109a192b4c2}
| Gmail Notifier
| Google Inc.
| c:\program files\google\gmail notifier\gnotify.exe
| PCSuiteTrayApplication
| PC Suite
| Nokia
| c:\program files\nokia\nokia pc suite 6\launchapplication.exe
| Logitech BT Wizard
| Bluetooth Services
| Logitech Inc.
| C:\Program Files\Logitech\SetPoint\LBTWiz.exe
| Logitech Hardware Abstraction Layer
| Logitech KHAL Main Process
| Logitech Inc.
| c:\windows\khalmnpr.exe
|
| C:\Documents and Settings\All Users\Start Menu\Programs\Startup
| BTTray.lnk
| Bluetooth Tray Application
| Broadcom Corporation.
| c:\program files\thinkpad\bluetooth software\bttray.exe
| Logitech SetPoint.lnk
| Logitech SetPoint Event Manager (UNICODE)
| Logitech Inc.
| c:\program files\logitech\setpoint\setpoint.exe
|
| C:\Documents and Settings\SEMARWAH\Start Menu\Programs\Startup
| Gmail Notifier.lnk
| Gmail Notifier
| Google Inc.
| c:\program files\google\gmail notifier\gnotify.exe
|
| HKCU\Software\Microsoft\Windows\CurrentVersion\Run
| googletalk
| Google Talk
| Google
| c:\program files\google\google talk\googletalk.exe
| PcSync
| PC Sync
| Time Information Services Ltd.
| c:\program files\nokia\nokia pc suite 6\pcsync2.exe
| ctfmon.exe
| CTF Loader
| Microsoft Corporation
| c:\windows\system32\ctfmon.exe
| TPKMAPMN
| c:\program files\thinkpad\program\tpkmapmn.exe
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959784#3959784
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959784
19 years, 9 months
[JCA/JBoss] - Re: Regarding the No ManagedConnection error in jboss-4.0.3S
by ottran75@yahoo.co.in
Please find the oracle-ds.xml file
<local-tx-datasource>
<jndi-name>OracleDS</jndi-name>
<connection-url>jdbc:oracle:thin:@url</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>USER</user-name>
Pswd
<min-pool-size>50</min-pool-size>
<max-pool-size>75</max-pool-size>
<idle-timeout-minutes>1</idle-timeout-minutes>
<!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
<!--valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name-->
<!-- Checks the Oracle error codes and messages for fatal errors -->
<exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
<!-- sql to call when connection is created
<new-connection-sql>some arbitrary sql</new-connection-sql>
-->
<!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker is prefered
<check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql>
-->
<!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->
<type-mapping>Oracle9i</type-mapping>
</local-tx-datasource>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959783#3959783
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959783
19 years, 9 months
[EJB/JBoss] - Default Transaction Attribute in JBoss
by Hari Prasad
Hai All,
I am currently using JBoss-4.0.2 in my project.It works with a Default Transaction attribute of 'Required'.
But since the Spec does not mandate any Default Transaction Attribute and also I read the Transaction attribute varies with different versions of JBoss....What is the safest flexible approach I can take in the following scenario?
I have a Session Facade method which invokes a series of services to create/update/remove records in DB.And it should succeed function in all or none basis.So now, for defining a Transaction in this case :
1. Is it good to define Transaction as 'Required' in all Session Facade methods and Entity Bean setters ?
(or)
2. Is it enough to define Transaction as 'Required' only in the main Facade method which invokes series of services,as I understand that Transaction attribute varies only from 'Required' to 'Supports' in different versions.So in that case all the Session Facade and Entity Beans would participate in Transaction context set by the main Facade.
Can anybody help/suggest me in this case!!!
Thanks,
Hari Prasad K.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959776#3959776
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959776
19 years, 9 months
[EJB/JBoss] - Re: EntityManager merge and the seam-registration example.
by hchafi
|
| import static org.jboss.seam.ScopeType.SESSION;
|
| import java.io.Serializable;
| ...
| import org.jboss.seam.annotations.Scope;
|
| @Entity
| @Name("user")
| @Scope(SESSION)
| @Table(name="users",
| uniqueConstraints={@UniqueConstraint(columnNames={"username"})})
| public class User implements Serializable {
|
|
| private static final long serialVersionUID = 9093363133205674398L;
|
| private Long id;
| private String username = null;
| private String password = null;
| private Boolean seller = null;
| private SellerInfo sellerInfo = null;
| private ContactInfo contactInfo = null;
| private String firstName;
| private String lastName;
|
| public String getFirstName() {
| return firstName;
| }
| public void setFirstName(String firstName) {
| this.firstName = firstName;
| }
| public String getLastName() {
| return lastName;
| }
| public void setLastName(String lastName) {
| this.lastName = lastName;
| }
|
|
| public ContactInfo getContactInfo() {
| return contactInfo;
| }
| public void setContactInfo(ContactInfo contactInfo) {
| this.contactInfo = contactInfo;
| }
|
|
| public User() {
| super();
| }
|
|
| @NotNull @Length(min=5, max=15)
| public String getPassword() {
| return password;
| }
| public void setPassword(String password) {
| this.password = password;
| }
|
| @NotNull @Length(min=5, max=15)
| public String getUsername() {
| return username;
| }
| public void setUsername(String username) {
| this.username = username;
| }
| public SellerInfo getSellerInfo() {
| return sellerInfo;
| }
| public void setSellerInfo(SellerInfo sellerInfo) {
| this.sellerInfo = sellerInfo;
| }
|
| @Id @GeneratedValue(strategy=GenerationType.AUTO)
| public Long getId() {
| return id;
| }
| public void setId(Long id) {
| this.id = id;
| }
| public Boolean getSeller() {
| return seller;
| }
| public void setSeller(Boolean seller) {
| this.seller = seller;
| }
|
|
| }
|
My impression was that @Scope did the binding.
The remaining code is almost identical to initial example code, but for completness sake.
| <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
| <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
| <%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
| <html>
| <head>
| <title>Register New User</title>
| </head>
| <body>
| <f:view>
| <h:form>
| <table border="0">
| <s:validateAll>
| <tr>
| <td>Username</td>
| <td><h:inputText value="#{user.username}" required="true"/></td>
| </tr>
| <tr>
| <td>First Name</td>
| <td><h:inputText value="#{user.firstName}" required="true"/></td>
| </tr>
| <tr>
| <td>Last Name</td>
| <td><h:inputText value="#{user.lastName}" required="true"/></td>
| </tr>
| <tr>
| <td>Password</td>
| <td><h:inputSecret value="#{user.password}" required="true"/></td>
| </tr>
| </s:validateAll>
| </table>
| <h:messages/>
| <h:commandButton type="submit" value="Register" action="#{register.register}"/>
| </h:form>
| </f:view>
| </body>
| </html>
|
Finally the RegisterAction, all I changed is the em.persist to em.merge
| import java.util.List;
|
| import javax.ejb.Stateless;
| ...
| import org.jboss.seam.log.Log;
|
| import com.genietown.model.User;
|
| @Stateless
| @Name("register")
| public class RegisterAction implements Register
| {
|
| @In @Valid
| private User user;
|
| @PersistenceContext
| private EntityManager em;
|
| @Logger
| private Log log;
|
| public String register()
| {
| List existing = em.createQuery("select username from User where username=:username")
| .setParameter("username", user.getUsername())
| .getResultList();
| if (existing.size()==0)
| {
| em.merge(user);
| log.info("Registered new user #{user.username}");
| return "/registered.jsp";
| }
| else
| {
| FacesMessages.instance().add("User #{user.username} already exists");
| return null;
| }
| }
|
| }
|
Thanks for your help. To restate the question, why wouldn't merge simply update the user info instead of creating a new user? Obviously the later is what I want, but I am not sure why this works the way it is setup currently.
-hc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959775#3959775
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959775
19 years, 9 months