Local session bean lookup in another local session bean in EJB 3.0

Hi,
I am doing JNDI lookup of a local session bean in a session bean. ( I do not want to use EJB dependency injection).
Lookup of local interface from session bean is successful. But, when the calling session bean is a local session in another session bean, the lookup fails.
Here is an example:
@Stateless
@EJBs({@EJB(name="EJB2Local", beanInterface=EJB2Local.class),
@EJB(name="EJB3Local", beanInterface=EJB3Local.class)})
public class EJB1 implements EJB1Remote, EJB1Local{
public void findEJB3Local(){
//1. JNDI lookup for EJB3Local ----
//2. EJB3Local.someFunction()
@Stateless
@EJB(name="EJB1Local", beanInterface=EJB1Local.class)
public class EJB2 implements EJB2Remote, EJB2Local{
public void findEJB1Local(){
//1. JNDI lookup EJB1Local
// 2. Call EJB1Local.findEJB1Local method
//THIS METHOD CALL WILL FAIL.
public void findEJB1Remote(){
//1. JNDI lookup EJB1
/ 2. Call EJB1Local.findEJB1 method
@Stateless
public class EJB3 implements EJB3Remote, EJB3Local{
public void someFunction(){}
This setup was working in EJB 2.1, as we had clear ejb-local-ref definitions in our ejb-jar.xml file.
I am suspecting that EJB 3.0 has special annotation to use when lookup is made from another local session bean.
Any comments will be appreciated.
Thanks,
Mohan

From a private component environment perspective, declaring @EJB in a bean class is equivalent
to using ejb-ref or ejb-local-ref for that same bean in ejb-jar.xml. In each case, the EJB dependency
is declared for that bean. Each EJB component has its own private component environment, so
code running within invocations on different EJBs can not see the component environment of the
components that made the invocations.
What exact error are you getting? Please post the stack trace if possible.
--ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Local Session Bean calling another local Session Bean in EJB 3.0

    Hi,
    In EJB 3.0, I am trying to do JNDI lookup of a local sesion bean from another session bean's helper class.
    I am not using @EJB injection mechanism here, as call to the local session bean is made in a helper class. Helper classes do not support resource injection.
    Following are the EJB class definitions used in my project. Call to "EJB3Local" made from "EJB1" fails as the "EJB2" helper class is calling "EJB1Local"
    @Stateless
    @EJBs({@EJB(name="EJB2Local", beanInterface=EJB2Local.class),
    @EJB(name="EJB3Local", beanInterface=EJB3Local.class)})
    public class EJB1 implements EJB1Remote, EJB1Local{
    public void findEJB3Local(){
    //1. JNDI lookup for EJB3Local ----
    //2. EJB3Local.someFunction()
    @Stateless
    @EJB(name="EJB1Local", beanInterface=EJB1Local.class)
    public class EJB2 implements EJB2Remote, EJB2Local{
    public void findEJB1Local(){
    //1. JNDI lookup EJB1Local
    // 2. Call EJB1Local.findEJB1Local method
    @Stateless
    public class EJB3 implements EJB3Remote, EJB3Local{
    public void someFunction(){}
    A remote call to EJB2.findEJB1Local() will invoke EJb1Local.findEJB3Local method and the call fails with "java:comp/env/EJB3Local" not found in EJB1Local.
    Has anybody encountered an issue like this issue with local interface calling another local interface?
    Thanks,
    Mohan

    To refer a Ejb from another Ejb include <ejb-ref> element
    in ejb-jar.xml
    <session>
    <ejb-name>SessionBeanA</ejb-name>
    <ejb-ref>
    <ejb-ref-name>SessionBeanB</ejb-ref-name>
    <ejb-ref-type>Session</ejb-ref-type>
    <home>com.ejb.SessionBeanBHome</home>
    <remote>com.ejb.SessionBeanB</remote>
    </ejb-ref>
    </session>
    Include a <reference-descriptor> in weblogic-ejb-jar.xml
    <weblogic-enterprise-bean>
    <ejb-name>SessionBeanA</ejb-name>
    <reference-descriptor>
    <ejb-reference-description>
    <ejb-ref-name>SessionBeanB</ejb-ref-name>
    <jndi-name>com.ejb.SessionBeanBHome</jndi-name>
    </ejb-reference-description>
    </reference-descriptor>
    </weblogic-enterprise-bean>
    In SessionBeanA Bean class refer to SessionBeanB with
    a remote reference to SessionBeanB.
    InitialContext initialContext=new InitialContext();
    SessionBeanBHome sessionBeanBHome=(SessionBeanBHome)
    initialContext.lookup("com.ejb.SessionBeanBHome");
    SessionBeanB sessionBeanB=sessionBeanBHome.findByPrimaryKey(primarykey);
    sessionBeanB.update();
    sessionBeanB.getAll();
    thanks,
    Deepak

  • JNDI lookup of a Stateless Session bean from another stateless session bean

    Hi,
       I am working on SAP Netweaver. We have created a stateless session bean which is finally deployed as a webservice. From this stateless session bean we need to call another stateless session bean as a local reference.
        I have done the following.
    1. Added JNDI-Name to the ejb-j2ee-engine.xml.
    2. My lookup code is as follows
    Context context = null;
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sap.engine.services.jndi.InitialContextFactoryImpl");
    context = new InitialContext(env);
    Object ejbObj =     context.lookup("MyBean");
    But i get the NamingException .Here MyBean is the jndi-name provided in the ejb-j2ee-engine.xml.
    Can somebody tell me what i am doing wrong.
    Thanks
    Priya

    Hi,
        Thanks for your replies.I did as you had suggested.I added ejb-local-ref to the ejb-jar.xml and i provided ejb-ref as MyBean.
    My lookup code uses the string
    ctxt.lookup("localejbs\MyBean");
    But still i get Naming Exception.
    I tried something different yesterday.
    I changed the code to use
    InitialContext ctxt = new InitialContext();
    ctxt.lookup("localejbs/"+ pathfromJNDIRegistry);
    and this time i did not get Naming exception but i got RemoteException saying there was error loading the class.
    Is there something i need to add somewhere for the classloader to be able to find and load this class in the second scenario.
    Please suggest me which method to go for amongst the two and what is the missing information i need to add.
    Thanks
    Priya

  • Profile locked by another local session, please retry later

    Hi when i ran the "netweaver initial setup" task, this error occurs
    "com.sap.rprof.dbprofiles.AccessException: Profile locked by another
    local session, please retry later.", i checked in TCODE SM12 and saw an
    register "001 PILDUSER 16:57:44 X AII_PROFILES AIICOMMON
    exchange_profile.xml 1 0", i saw the sap note 1333205, and update my
    Support Packages to Stack 11 of Netweaver 7.1, but not was solved.
    Thanks
    Josue Neto

    Dear all,
    we had the same problem on our PI7.0 SP21, that CTS was not working and IntegrationBuilder was not operational, aso...
    The lock "AII_TABLES" was visible in SM12 and appeared immediately after restart or manual deletion.
    We have opened a very high message to SAP, as the recomm. from SAP Note 1602945 did no help. Once they replied we have additionaly applied SAP_JTECHS PL30 and added parameter "com.sap.aii.ib.remote.exprof.enabled=TRUE" to the exchange profile per each server node.
    After these changes and restart, the lock is not active anymore - this was implemented and tested on Dev and Test systems. We will proceed with the Prod later on, we believe it helps.
    Regards,
    Peter Bajza

  • Ejb3 session bean lookup

    Hello, I have following problem with the ejb3 and session bean lookup:
    For example, I have a session bean with some dummy method, i.e. getInfo() :
    @Stateless
    public class MySessionBean implements MySessionLocal {
    public String getInfo() {return "Hello from Session bean";}
    When I lookup and use this bean in servlet in the following way, everything is OK:
    public class MyServlet extends HttpServlet {
    @EJB() MySessionLocal mySession;
    protected void doPost(HttpServletRequest request, HttpServletResponse response) {
    out.println(mySession.getInfo());
    On the other side, when I create some java bean object as a facade, import and use it in servlet , it doesn't work:
    public class Facade {
    @EJB() MySessionLocal mySession;
    public String getInfo() { return mySession.getInfo();}
    public class MyServlet extends HttpServlet {
    protected void doPost(HttpServletRequest request, HttpServletResponse response) {
    Facade myFacade = new Facade();
    out.println(myFacade.getInfo());
    When servlet runs and gets to the command myFacade.getInfo(), NullPointerException is thrown, because mySession object in myFacade is null (ejb lookup method probably fails to perform...)
    I'm trying to use Facade to be able to use my Session Bean in JSP pages, i.e. to do something like <jsp:useBean id="myFacade" class="Facade" ...>
    Could someone clarify why lookup doesn't work in javabean object, despite the fact that it works in servlets?
    P.S. I'm running the latest promoted build (b31) of GlassFish (maybe this is the cause) and NetBeans IDE...

    Hi,
    Please try this ... http://weblogic-wonders.com/weblogic/2009/08/16/weblogic-10-3-ejb3-local-lookup-sample/ (Lookup from JSP)
    and
    http://weblogic-wonders.com/weblogic/2009/08/15/hello-world-2/  (Lookup/Injection from Servlet)
    Thanks
    Jay SenSharma

  • Local Devices not found while on Remote Session

    Hopefully someone in the forum will have an idea where I am failing.
    I have an hp laptop (model 15--b123cl) running windows 8.1.
    I am Remote Desktop Connecting into my Server running Windows 7 Professional SP1.
    Both my hp laptop and the server have all Updates installed (including KB 2830477 for Windows 7 SP1).
    I have checked all options in my Remote Desktop Connection (Show Options) Local Resources tab to allow Local Devices and Printers to be available on my laptop (the client) while in a remote session on my server.
    (Checked Printers, Clipboards and all options under "more" such as Ports, Drivers, etc.)
    The connection works fine but no local devices (printers, thumbdrives, etc.) are visible or accessible while in the remote session.  My laptop recognizes the devices being plugged into the USB port (tone sounds), but the device will not show up in the
    remote session.  (They are shown on my local hp when I minimize the Remote connection.)
    My real need is to print to my hp printer while logged onto  the remote server.  I have an hp Officejet Pro 8600 which I have plugged-in to my laptop USB.  I relalize that while in remote connections I won't find wireless devices
    on my local (client) network unless mapped to a LPT or COM port, so I hard-plug into my USB.  I have also tried mapping my printer to a second port such as LPT2 or COM1 - still no luck.
    No matter what I have tried or read about Remote Desktop Sessions, I can not get my Local hp Printer to show up while in my remote session.  Any ideas?
    Thanks
    SL in Virginia  

    Hi Avi,
    Thanks for your reply!
    I am using JDeveloper version 9.0.3.1035!
    When I say it works in JDeveloper, I do mean the embedded server.
    In JDeveloper I have two projects, a) a session bean project and b) an entity bean project.
    I can run my code fine against the embedded server.
    However once I deploy the two jars to the standalone server things fall apart.
    When I reverted back to putting the session beans & entity beans all in one jar everythinh worked fine.
    However, I do not want to do this, I want to maintain my entity beans independently ( for maintenance & de- coupling reasons).
    So, I guess what I really want, is to see in black and white that local references do or do not traverse different jars on the same server.
    thanks,
    Kevin

  • Stateless Session Bean lookup truble on standalone OC4J (9.0.3)

    Hi all,
    I've folowing truble:
    I deploy my app, start browser and get an Excwption
    javax.naming.NamingException: Error instantiating web-app JNDI-context: No location specified and no suitable instance found for the ejb-ref 'ejb/ActivationSessionHome', an EJB with matching home and remote name was found, but it was an Entity, not a Session.
    If I deploy my Session Bean as Entity the Exception ended:
    ..., but it was a Session, not an Entity.
    Please help me understand and fix this %-(
    Thanks.

    Hi Vladimir,
    I understand that you are trying to access a session bean from a servlet where both the session bean and servlet are part of the same J2EE application that you have deployed to (stand-alone) OC4J. If this is correct, then have you seen the following tutorial (which does exactly the same thing):
    http://kb.atlassian.com/content/tutorials/jollem/orion-primer/
    Hope this helps you.
    Good Luck,
    Avi.

  • Using a CMP Entity Bean local stub as a field of another CMP Entity Bean

    Hello,
    Is it possible to implement a field of a CMP Entity bean as another CMP Entity bean and how is it done?
    I've seen a pseudo code for this in Ed Roman's Mastering EJBs, second edition, but I can't seem to get it to work (pages: 330 - 1:1 using CMP and 339 - fake M:N using CMP).
    I'm using SUN ONE Application Sever 7. Is this server capable of this?
    I'm trying to implement a fake M:N relationship using 3 beans: 2 for each side of the relationship and one as the "bridge" table.
    For example, the two beans on each side of the relationship are SubscriberBean, SubscriptionBean and the "bridge: bean is SubscriberSubscriptionBean. The SubscriberSubscriptionBean has two fields: SubscriberLocal stub and SubscriptionLocal stub.
    Please let me know if you need more information to answer this question.
    Thanks.
    Nikola

    Im sorry but i dont know about the example you are talking about. I kinda learn
    all those techniques from forums, articles and tutorials because book often suffer from
    not having the information im mostly looking for.
    As far as i understand you, you want to implement a bridge been, which is representing a row in a join table. So that if one side of the relation is deleted the join-table entry (your bridge-CMP-Bean) is cascaded. Right?
    First of all the simple part: (My approach)
    - The joint table is foreign keys only - without a relation description. -
    In this case you dont have to implement a bridge bean. Because it just wouldnt represent anything of sense.
    Lets think of an entity/table USER whith the columns name (PRIMARY KEY), and prename.
    Our second entity/table is ADDRESS with the columns road (PRIMARY KEY) and housenr.
    The join table is simply: USER_ADDRESS with fk_name (FOREIGN KEY) and fk_road (FOREIGN KEY) both on CASCADE DELETE. So if the address is deleted the mapping entry is deleted, too same for the user part:
    USER -> USER_ADDRESS <- ADDRESS.
    Our entity Beans are called User and Address in class-names JNDI-names and names.
    Now we want to create the CMR mapping so we can access the addresses of a user from the user bean directly. The methods on the user side are:
    public abstract Collection getAddresses();
    and
    public abstract void setAddresses(Collection new_addresses);
    the xdoclet comments on the User side are (for the getter only)
    * @ejb.interface-method
    * @ejb.relation
    *                name = "User-has-Addresses"
    *                role-name = "User-Addresses"
    *                target-ejb = "Address"
    *                target-multiple = "true"
    * @sunone.relation
    *                column="USER_ADDRESS.fk_name"               
    *                target="USER_ADDRESS.fk_road"               
    public abstract Collection getAddresses();
    for the other side of the relation we define in the Address-Entity
    public abstract Collection getUsers();
    and
    public void setUsers(Collection users);
    the xdoclet comments on the Address side are (for the getter only)
    * @ejb.interface-method
    * @ejb.relation
    *                name = "User-has-Addresses"
    *                role-name = "Address-User"
    *                target-ejb = "User"
    *                target-multiple = "true"
    * @sunone.relation
    *                target="USER_ADDRESS.fk_road"               
    *                column="USER_ADDRESS.fk_name"
    As we dont want the user or address to be deleted if the other side of the relation is deleted we dont specify cascade-delete="yes" in the ejb.relation namespace.
    The sun-cmp-mappings.xml should now look like this:
    (For the User - side)
    <!-- Relationship User-has-Addresses, role User-Addresses -->
    <cmr-field-mapping>
    <cmr-field-name>addresses</cmr-field-name>
    <column-pair>
    <column-name>USER_ADDRESS.fk_name</column-name>
    <column-name>USER_ADDRESS.fk_road</column-name>
    </column-pair>
    </cmr-field-mapping>
    and similar on the Address-Side:
    <cmr-field-mapping>
    <cmr-field-name>users</cmr-field-name>
    <column-pair>
    <column-name>USER_ADDRESS.fk_road</column-name>
    <column-name>USER_ADDRESS.fk_name>/column-name>
    </column-pair>
    </cmr-field-mapping>
    Dont forget that all elements in the Collection must be of the right Interface-type.
    First of all the harder part:
    Now what you might want is when the relation has some information specified like user live at address and is tenant or facility manager.
    The, in the first step you will have to implement the UserAddressRelation entity which will have to CMR fields of the 1:N type.(Just as you wish)
    Lets think of the example above extended by the relation type. Our relation bean is named UserAddressRelation.
    Now User has the methods as above but the classes in the Collection must now be of the UserAddressRelationLocal/Remote interface and not AddressLocal/Remote-interface.
    You will have to change the xdoclet comment to:
    * @ejb.interface-method
    * @ejb.relation
    *                name = "User-has-Addresses"
    *                role-name = "User-Address"
    *                target-ejb = "UserAddressRelation"
    *                target-multiple = "true"
    * @sunone.relation
    *                target="USER_ADDRESS.fk_name"               
    *                column="USER.name"
    So we now dont reference the other side bean directly. We reference the relation EntityBean. Do the similar changes on the other side.
    In particular you will have to specify 4 CMR mappings now:
    1. User to UserAddressRelation 1:N
    2. UserAddressRelation N:1
    3. Address to UserAddressRelation 1:N
    4. UserAddressRelation N:1
    Which i dont want to explain in detail now because its kinda all the same as above.
    Now you cann access the Addresses of a user in the way.
    UserLocal.getAddresses(); <- !you get the mappings!
    UserLocal.getAddresses().item(0).getAddress() <- you get the address (this is dirty coding just for understanding)
    UserLocal.getAddresses().item(0).getUserRole() <. you get the role of the user at this address.
    Hope this helped you. You are welcome to ask any detailed question.

  • The pooled JMS session is enlisted in another transaction error

    I have an MDB with pool size 2 deployed in weblogic 9.2.3(linux). I see the following error in server logs.
    <May 27, 2009 7:32:26 AM CDT> <Error> <EJB> <BEA-010079> <An error occurred while attempting to receive a message from JMS for processing by a message-driven bean: javax.jms.JMSException: [J2EE:160054]The pooled JMS session is enlisted in another transaction and may not be used elsewhere
    The exception is : javax.jms.JMSException: [J2EE:160054]The pooled JMS session is enlisted in another transaction and may not be used elsewhere
         at weblogic.deployment.jms.JMSExceptions.getJMSException(JMSExceptions.java:22)
         at weblogic.deployment.jms.WrappedTransactionalSession.enlistInTransaction(WrappedTransactionalSession.java:196)
         at weblogic.deployment.jms.WrappedMessageConsumer.receive(WrappedMessageConsumer.java:198)
         at weblogic.ejb.container.internal.JMSMessagePoller.processOneMessage(JMSMessagePoller.java:297)
         at weblogic.ejb.container.internal.JMSMessagePoller.pollContinuously(JMSMessagePoller.java:394)
         at weblogic.ejb.container.internal.JMSMessagePoller.pollForParent(JMSMessagePoller.java:517)
         at weblogic.ejb.container.internal.JMSMessagePoller.run(JMSMessagePoller.java:533)
         at java.lang.Thread.run(Thread.java:595)
    >
    any idea why this error is coming??

    Looks it is like a bug, you can ask patch for from support.

  • How Do I Move Local OneDrive Storage Folder to Another Location?

    Howdy,
    I've just installed the new 9926 build and wanted to sync my OneDrive data. I am using native VHD boot and so OneDrive setup wizard automatically chose the local
    %USERPROFILE%\OneDrive folder as a local storage for the data obtained from OneDrive.
    However, I don't want the data to be stored on my VHD drive. The OneDrive wizard didn't provide any Back button to change settings for the local storage location, so I had to use the location I've chosen.
    Now how do I move the OneDrive folder to another location? Previously you could right-click OneDrive folder, chose Properties and change the location on the Location tab. Now there isn't such a tab.
    Is it a step back in usability for OneDrive feature?
    How do I move local OneDrive cache folder to another location?
    Thank you.
    Well this is the world we live in And these are the hands we're given...

    I've found out that you have to unlink OneDrive from your PC and repeat configuration steps to change the location of OneDrive folder on your PC, just like you did so in pre-Windows 8.1 builds.
    Is it a new behavior and MSFT wants to get rid of Location feature in newer Windows 10 builds, or it is just a temporary issue because some parts of Windows 10 TP code are based on pre-Windows 8.1 codebase?
    Thank you.
    See also
    Move the OneDrive Folder
    Well this is the world we live in And these are the hands we're given...

  • How to assign bean value to a local variable in JSP using struts.

    Hi everybody!
    I've a problem that puzzled me on how to assign a bean value to a local variable like String in JSP using struts.
    we can have someting like this to display the value
    <bean:write name="detailService" property="status" />or
    <bean:define id="theStatus" name="detailService" property="status"/>
         This is country: <%=theStatus%>but an error occured when I tried like this:
    String currentStatus = "<bean:define id="theStatus" name="detailService" property="status"/>";
    or
    String currentStatus = "<bean:write name="detailService" property="status" />";Is there a way to do this?.....
    Any help pretty much appreciated

    Java != JSP.
    The <bean:define> and <bean:write> tags are custom tags meant to appear in the HTML section of a JSP file, as opposed to the scriptlet section. They actually get turned into java code as part of the translation process.
    The <bean:write> tag naturally just writes out what you tell it to.
    The <bean:define> tag defines a local variable, and gives it a value.
    this should do it.
    <bean:define id="theStatus" name="detailService" property="status" type="java.lang.String"/>
    <%
      String currentStatus = theStatus;
    %>With the advent of JSTL, you shouldn't really need to use scriptlet code anymore. Personally I am for 0% scriptlet code in any jsp I write.

  • How to pass data from one internal session to another internal session

    hi all sap experts ,
    How to pass data from one internal session to another internal session and from oneExternal session to another external session.
    Except : Import and Export parameters and SPA/GPA parameters.
    Tell me the otherWay to pass data ..
    Plz
    Thanks in advance

    hi,
      abap memory management u will understand about this concept.
    the import /export parameter will help u that passing data between two internal sessions by using abap memory.
      for syntax
    Passing Data Between Programs
    There are two ways of passing data to a called program:
    Passing Data Using Internal Memory Areas
    There are two cross-program memory areas to which ABAP programs have access (refer to the diagram in Memory Structures of an ABAP Program) that you can use to pass data between programs.
    SAP Memory
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens (see below).
    ABAP Memory
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this area remains intact during a whole sequence of program calls. To pass data to a program which you are calling, the data needs to be placed in ABAP memory before the call is made. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory. If control is then returned to the program which made the initial call, the same process operates in reverse. For further information, refer to Data Clusters in ABAP Memory.
    Filling Input Fields on an Initial Screen
    Most programs that you call from other programs have their own initial screen that the user must fill with values. For an executable program, this is normally the selection screen. The SUBMIT statement has a series of additions that you can use to fill the input fields of the called program:
    Filling the Selection Screen of a Called Program
    You cannot fill the input fields of a screen using additions in the calling statement. Instead, you can use SPA/GPA parameters. For further information, refer to Filling an Initial Screen Using SPA/GPA Parameters.
    Message was edited by:
            sunil kumar
    Message was edited by:
            sunil kumar

  • [SOLVED] XFCE4: how to start another X session?

    Hi there!
    I recently dumped KDE4 in favor of XFCE. Now the question is: if user A is logged in, how can user B start another X session to log in? In KDE's kickoff, there was this handy entry "Start new session", which I'm missing in XFCE (I'm still using kdm to log in).
    Is there any way to get another session? Maybe if I replace kdm as well?
    Alternatively: Is there a way to start (right at powerup) one login manager on TTY7 and another one on TTY8? Currently I've got kdm in my DAEMONS array, maybe there's a way by using some xinitrc magic?
    Best wishes,
    Rufus
    Last edited by RufusD (2011-07-10 15:28:28)

    moetunes wrote:
    I don't use a *dm to login just run startx so to start another X session I go to tty2 and login and run
    startx -- :1
    if ~/.xinitrc is setup it should work for you too.
    (It's been that long since I've used a *dm to login with I've forgotten if they use .xinitrc or not...)
    I'm not sure, but I think that should be
    startx -- :2
    if you are starting a second X session, :3 for the third, etc...

  • Copy Session function in 4.6C (To view another users session).

    Hi All,
    I recall in version 4.0 of R3 an option called copy session which allowed you to view another users session.  This option seems to have been taken away in newer version.
    Does anyone know of another way of interactively looking at another users session,
    Kind regards,
    James Mandikos.

    Hi James,
    Sometime back I have invested a lot of time and effort trying to do exactly what you're now up to !!
    Unfortunately, I have not been able to do it. I have done a lot of debugging and tried to do that in some way or the other, but in vain. The reason, if I remember correctly, is that the code responsible for that action is not even there in the higher releases. That is presumably for reasons of security.
    Regards,
    Anand Mandalika.

  • ITunes could not sync information to the iPod "...." because another sync session was already running.

    Normally, syncing my iPod Touch is no problem. However, last time I tried to sync, the process hung up and even after half an hour the progress bar would not finish. I ended up having to force quit iTunes. Now when I try to sync I get 2 messages: the first says "iTunes could not back up the iPod "......" because a session could not be started with the iPod." as soon as I close that message another appears: "iTunes could not sync information to the iPod "......." because another sync session was already running."
    There seems to be a half finished sync file saved somewhere and a new one cannot be started. However, I can't continue the partial one either so I'm stuck.
    Other than that my iPod Touch 4 is operating normally. Syncing with Mac Book Pro.
    How do I fix this problem?

    WHat do yo meanby rebooting?
    Is is a reset like defined in the users guide:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.

Maybe you are looking for

  • Poor sound quality on podcasts after upgrading to leopard

    I upgraded my Powerbook G4 to Leopard yesterday. Currently, my podcasts from Bloomberg on the Econonmy are almost uninteligible as they skipp words, have static etc. Before the update, everything worked fine. Is this a compresssion issue? What can I

  • Is it possible to install Lightroom 2.0 onto a Mac Book Pro running 10.8.5?

    I have a disc for LR 2.0 and I am trying to install it onto my Mac Book Pro running 10.8.5.   I have tried three times and the installation has failed with a message saying contact the manufacturer. I have managed to install Lightroom 1.0 from disc a

  • I own audiobooks on cd, how do i put them on my ipad

    I have several audiobooks on cds.  I am trying to figure out how to load them to my IPAD.  I tried to simply load one disk at a time in my ITunes but that created a mess.

  • How to split image into smaller (same size) pieces?

    Hi all, My question is how to split image into smaller (same size) pieces, using Photoshop elements 13? Could anyone help me with this one? Thanks!

  • 1208 top frame symbols

    I have a Nokia 1208, bought about a month ago, its working perfectly, except for the font size on SMS's, but thats ok. What bothers me is that, until today, I knew what all the little symbols that appear on the top side of the screen mean (little key