WebLogic MBean help

Hi
I want to know what is the value or how to get the value for “cursorHandle” parameter in the weblogic.management.runtime.JMSDestinationRuntimeMBean.getCursorSize() and
value for “selector” parameter in weblogic.management.runtime.JMSDestinationRuntimeMBean. deleteMessages().
The document is just telling “cursorHandle is an object of type java.lang.String that specifies: The cursor handle”
and
“selector is an object of type java.lang.String that specifies: A JMS message selector to identify which messages to delete”
This is in WebLoigc 10.
Thanks

Hi,
The cursor handle is the returned value of one of the getMessages() API and the selector is the standard JMS selector expression.
Here is the sample snippet showing how to get the cursor handle, size and use of selector.
For more information on the MBean, please see http://download.oracle.com/docs/cd/E12840_01/wls/docs103/wlsmbeanref/mbeans/JMSMessageManagementRuntimeMBean.html
WLST snippet:
=========
# connect to the server
connect(‘weblogic’,’weblogic’,’t3://localhost:7001’)
# navigate to the root of the server’s Runtime MBean tree
serverRuntime()
# navigate to the JMSRuntime
cd(‘JMSRuntime/myserver.jms’)
# first navigate to the destination “MyQueue1”
cd (‘MyJMSServer/Destinations/MyJmsSystemResource!MyQueue1’)
# create a cursor to get all the UOO messages from the queue that
# belongs to the UOO named “my_uoo” that are currently
# in “ordered” state.
# Note 1: The third argument value represents the ‘state’.
# Note 2: To get all the ordered messages that may belong
# to more then one UOO, pass the first argument as ‘true’
cursor1=cmo.getMessages(‘JMS_BEA_UnitOfOrder LIKE \’my_uoo\’’,9999999,16)
# next find the cursor size
size=cmo.getCursorSize(cursor1)
# print the size value
print size
# delete all the messages belong to UOO “my_uoo”
# Note that this deletes both visible and invisible messages of the
# given UOO
# To delete all the messages pass ‘true’ as the first argument
count = cmo.deleteMessages(‘JMS_BEA_UnitOfOrder LIKE \’my_uoo\’’)
# print how many messages are deleted
print count
Hope this helps,
Kats

Similar Messages

  • Unable to deploy example 'banking' application on weblogic, please help...

    Hi,
    I have downloaded the example 'banking.zip' and have installed it.
    I have followed all given steps in the tutorial, but I am unable to
    see the login page.
    I am also not able to see the ejb and web application descriptor file
    from the admin console.
    I have copied the banking directory to
    '$WEBLOGIC\config\mydomain\applications'.
    There are 3 directories under it
    (1) ejb (containing meta-inf and examples directory. Meta-info
    contains the descriptor .xml files)
    (2) web (containing web-inf and html,jsp and image files. Web-inf
    contains weblogic.xml and web.xml)
    (3) Meta-Inf (containing the application.xml)
    I get the 'Error 404--Not Found' error when I go to
    http://localhost:8001/banking/login.html. (my server is running on
    8001 port, i hope this doesn't matter)
    When I try to edit the web application descriptor I get the following
    error
    java.lang.NullPointerException
         at weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:860)
         at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:142)
         at weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perform(MBeanDescriptorFramesetAction.java:133)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
         at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Could someone please help me ? I am trying to deploy this in the
    exploded form. My server is running in the development mode.
    - Thanks in advance,
    Sonali

    Hi,
    I was able to successfully deploy after installing
    weblogic 6.1 SP2 (earlier I had SP1). Also, I had to make
    changes in the BankAppServlet code since it tries to find the
    bean with a different name than one specified in jndi-name.
    - Thanks,
    Sonali
    [email protected] (Sonali Kale) wrote in message news:<[email protected]>...
    Hi,
    I have downloaded the example 'banking.zip' and have installed it.
    I have followed all given steps in the tutorial, but I am unable to
    see the login page.
    I am also not able to see the ejb and web application descriptor file
    from the admin console.
    I have copied the banking directory to
    '$WEBLOGIC\config\mydomain\applications'.
    There are 3 directories under it
    (1) ejb (containing meta-inf and examples directory. Meta-info
    contains the descriptor .xml files)
    (2) web (containing web-inf and html,jsp and image files. Web-inf
    contains weblogic.xml and web.xml)
    (3) Meta-Inf (containing the application.xml)
    I get the 'Error 404--Not Found' error when I go to
    http://localhost:8001/banking/login.html. (my server is running on
    8001 port, i hope this doesn't matter)
    When I try to edit the web application descriptor I get the following
    error
    java.lang.NullPointerException
         at weblogic.management.console.utils.MBeans.getMBeanClassFor(MBeans.java:860)
         at weblogic.management.console.actions.internal.ActionUtils.getAreaFor(ActionUtils.java:142)
         at weblogic.management.console.actions.mbean.MBeanDescriptorFramesetAction.perform(MBeanDescriptorFramesetAction.java:133)
         at weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:167)
         at weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2456)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2039)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Could someone please help me ? I am trying to deploy this in the
    exploded form. My server is running in the development mode.
    - Thanks in advance,
    Sonali

  • Problem starting Weblogic (please help!)

    Hi there,
    When executing startWeblogic.cmd, I get the next message:
    <22-nov-2005 17H50' CET> <Error> <Configuration Management> <BEA-150029> <There
    was an error reading the MBean MyDomain:Name=MyDomain,Type=SecurityConfiguration.
    The value null for attribute CredentialEncrypted could not be read successfully.>
    Can anyone help me, please? The config.xml file is this one:
    <?xml version="1.0" encoding="UTF-8"?>
    <Domain ConfigurationVersion="8.1.4.0" Name="MyDomain">
    <Server ExpectedToRun="false" GracefulShutdownTimeout="30"
    IgnoreSessionsDuringShutdown="true" ListenAddress=""
    ListenPort="8901" Name="server" NativeIOEnabled="true"
    ReliableDeliveryPolicy="RMDefaultPolicy" ServerVersion="8.1.4.0" XMLEntityCache="XMLCacheMBean_myserver">
    <SSL Enabled="false" HostnameVerificationIgnored="false"
    IdentityAndTrustLocations="KeyStores" Name="server"/>
    </Server>
    <FileRealm Name="wl_default_file_realm"/>
    <Realm FileRealm="wl_default_file_realm" Name="wl_default_realm"/>
    <PasswordPolicy Name="wl_default_password_policy"/>
    <SecurityConfiguration
    CredentialEncrypted="{3DES}rpkvoFDJmmyTWYGN1KCGZtrhXBcrsQQaYlmqBlH9m0nS827bRobwP9PIGPBZJozOY6EwBkM7I7TJlAezo+KX57a7U2NpIzep"
    Name="MyDomain" RealmBootStrapVersion="1"/>
    <Security Name="MyDomain" PasswordPolicy="wl_default_password_policy"
    Realm="wl_default_realm" RealmSetup="true"/>
    <EmbeddedLDAP
    CredentialEncrypted="{3DES}cyV/5NQJJ37DW6um0jeqNVqm/Xv1AoQ5jsrImQ4GcRc=" Name="MyDomain"/>
    <JMSConnectionFactory JNDIName="jms/DCJMSConnectionFactory"
    Name="DCJMSConnectionFactory" Targets="server"/>
    <JMSConnectionFactory ClientId="MPEvents"
    JNDIName="weblogic.jms.connectionFactoryName.dfltTopicConnFactory"
    Name="dfltTopicConnFactory" Targets="server"/>
    <JMSConnectionFactory
    JNDIName="weblogic.jms.connectionFactoryName.QueueConnectionFactory"
    Name="QueueConnectionFactoryMarket" Targets="server"/>
    <JMSConnectionFactory JNDIName="MKPFactory" Name="MKPFactory"
    Targets="server" XAConnectionFactoryEnabled="true"/>
    <JMSFileStore Directory="rmfilestore" Name="FileStore"/>
    <JMSJDBCStore ConnectionPool="JMSPool" Name="JMSPool" PrefixName="JMS_INTEGRATION"/>
    <JMSJDBCStore ConnectionPool="JMSDirUsuPool" Name="JMSDirUsuPool" PrefixName="dcliadmin"/>
    <JMSServer Name="MyJMS Server" Store="JMSDirUsuPool" Targets="server">
    <JMSTopic CreationTime="1110272622444"
    JNDIName="jms/LuceneJMSTopic" Name="LuceneJMSTopic"/>
    </JMSServer>
    <JMSServer Name="MKPJMSServer" Store="JMSPool" Targets="server">
    <JMSQueue CreationTime="1110277182315"
    JNDIName="javax.jms.TaskQueue" Name="TaskQueue"/>
    <JMSTopic CreationTime="1110277142737"
    JNDIName="javax.jms.POTopic" Name="POTopic"/>
    <JMSQueue CreationTime="1122017950470"
    JNDIName="javax.jms.RetryQueue" Name="RetryQueue" StoreEnabled="true"/>
    <JMSTopic CreationTime="1122389282746"
    JNDIName="javax.jms.MPEventsTopic" Name="MPEventsTopic"/>
    </JMSServer>
    <WSReliableDeliveryPolicy DefaultRetryCount="10"
    DefaultTimeToLive="60000" Name="RMDefaultPolicy" Store="FileStore"/>
    <XMLEntityCache Name="XMLCacheMBean_myserver"/>
    <XMLEntityCache Name="XMLCacheMBean_MKServer"/>
    <JDBCConnectionPool DriverName="weblogic.jdbc.oracle.OracleDriver"
    MaxCapacity="10" Name="DirUsuariosPool"
    PasswordEncrypted="{3DES}Wg8/8zuW/7qxEipi50AhDw=="
    Properties="user=DCLIADMIN;portNumber=1521;SID=DSO901;serverName=192.168.33.3"
    Targets="server" URL="jdbc:bea:oracle://192.168.33.3:1521"/>
    <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver"
    MaxCapacity="2" Name="JMSDirUsuPool"
    PasswordEncrypted="{3DES}Wg8/8zuW/7qxEipi50AhDw=="
    Properties="user=DCLIADMIN" Targets="server"
    TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@CADIZ:1521:DSO902"/>
    <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver"
    MaxCapacity="50" Name="ECMarketplacePool"
    PasswordEncrypted="{3DES}J0fAKFZFJ8g="
    Properties="user=ecwebuser" Targets="server"
    TestConnectionsOnRelease="true" TestConnectionsOnReserve="true"
    TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@cadiz:1521:DSO902"/>
    <JDBCConnectionPool ConnLeakProfilingEnabled="true"
    DriverName="weblogic.jdbc.oracle.OracleDriver" Name="JMSPool"
    PasswordEncrypted="{3DES}ptpiY+jYxJ8="
    Properties="user=JMS_INTEGRATION;portNumber=1521;SID=dso902;serverName=cadiz"
    Targets="server" TestConnectionsOnReserve="true"
    TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:bea:oracle://cadiz:1521"/>
    <JDBCDataSource JNDIName="jdbc/ECMarketplaceDS"
    Name="ECMarketplaceDS" PoolName="ECMarketplacePool" Targets="server"/>
    <JDBCTxDataSource JNDIName="jdbc/DirUsuariosDS" Name="DirUsuariosDS"
    PoolName="DirUsuariosPool" Targets="server"/>
    <JMSServer Name="WSStoreForwardInternalJMSServerserver"
    Store="FileStore" Targets="server">
    <JMSQueue CreationTime="1114159788293"
    JNDIName="jms.internal.queue.WSStoreForwardQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSStoreForwardQueueserver"/>
    <JMSQueue CreationTime="1114159788465"
    JNDIName="jms.internal.queue.WSDupsEliminationHistoryQueue"
    JNDINameReplicated="false" Name="WSInternaljms.internal.queue.WSDupsEliminationHistoryQueueserver"/>
    </JMSServer>
    <JDBCTxDataSource JNDIName="jdbc/ejbDS" Name="jdbc/ejbDS"
    PoolName="ejbPool" Targets="server"/>
    <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver"
    Name="ejbPool" PasswordEncrypted="{3DES}J0fAKFZFJ8g="
    Properties="user=ecwebuser;portNumber=1521;SID=dsO902;serverName=CADIZ"
    Targets="server" TestConnectionsOnReserve="true"
    TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@CADIZ:1521:DSO902"/>
    <Application Name="MarketApp"
    Path="C:\bea\user_projects\domains\MyDomain\applications\MarketApp"
    StagingMode="nostage" TwoPhase="true">
    <EJBComponent Name="TXServer.jar" Targets="server" URI="TXServer.jar"/>
    <EJBComponent Name="TXTransmissionImpl.jar" Targets="server" URI="TXTransmissionImpl.jar"/>
    <EJBComponent Name="productfind_bean20.jar" Targets="server" URI="productfind_bean20.jar"/>
    <EJBComponent Name="cxmlcatalogimport_bean20.jar"
    Targets="server" URI="cxmlcatalogimport_bean20.jar"/>
    <EJBComponent
    Name="cXMLCancelShipNoticeRequestOutputListenerMDB.jar"
    Targets="server" URI="cXMLCancelShipNoticeRequestOutputListenerMDB.jar"/>
    <EJBComponent Name="cXMLShipNoticeRequestOutputListenerMDB.jar"
    Targets="server" URI="cXMLShipNoticeRequestOutputListenerMDB.jar"/>
    <EJBComponent
    Name="cXMLCancelShipNoticeRequestAsynchronousOutputListenerMDB.jar"
    Targets="server" URI="cXMLCancelShipNoticeRequestAsynchronousOutputListenerMDB.jar"/>
    <EJBComponent
    Name="cXMLShipNoticeRequestAsynchronousOutputListenerMDB.jar"
    Targets="server" URI="cXMLShipNoticeRequestAsynchronousOutputListenerMDB.jar"/>
    <EJBComponent Name="cXMLConfirmRequestOutputListenerMDB.jar"
    Targets="server" URI="cXMLConfirmRequestOutputListenerMDB.jar"/>
    <EJBComponent Name="cXMLTransmitterListenerMDB.jar"
    Targets="server" URI="cXMLTransmitterListenerMDB.jar"/>
    <EJBComponent Name="JMSEmailEventListenerMDB.jar"
    Targets="server" URI="JMSEmailEventListenerMDB.jar"/>
    <EJBComponent Name="JMSTaskRunnerMDB.jar" Targets="server" URI="JMSTaskRunnerMDB.jar"/>
    <EJBComponent Name="JMSXMLEventListenerMDB.jar" Targets="server" URI="JMSXMLEventListenerMDB.jar"/>
    <EJBComponent Name="MassShipReceiveErrorListenerMDB.jar"
    Targets="server" URI="MassShipReceiveErrorListenerMDB.jar"/>
    <EJBComponent Name="xCBLInvoiceOutputListenerMDB.jar"
    Targets="server" URI="xCBLInvoiceOutputListenerMDB.jar"/>
    <EJBComponent Name="xCBLInvoiceResponseOutputListenerMDB.jar"
    Targets="server" URI="xCBLInvoiceResponseOutputListenerMDB.jar"/>
    <WebAppComponent Name="DefaultWebApp" Targets="server" URI="DefaultWebApp"/>
    <EJBComponent Name="BILbeans20.jar" Targets="server" URI="BILbeans20.jar"/>
    </Application>
    </Domain>

    Well friend I can do you one better. Take a look please at my particular error message that I have gotten/received from the server when I have tried to activate weblogic. :
    "The WebLogic Server did not start up properly.java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class
    incompatible: stream classdesc serialVersionUID = 7043855487133450673, local cla
    ss serialVersionUID = 8644704819898565848
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:154
    6)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:154
    6)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
    693)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1628)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1293)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:19
    12)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1
    713)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
    at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.jav
    a:274)
    at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(Ty
    pesHelper.java:384)
    at weblogic.management.internal.ConfigurationMBeanImpl.<init>(Configurat
    ionMBeanImpl.java:137)
    at weblogic.management.AdminServer.<init>(AdminServer.java:59)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java
    :245)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:770)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:669)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:343)
    at weblogic.Server.main(Server.java:32)"<<
    So needless to say, I need some degree of help also with this I am afraid to say.

  • No output at all from weblogic.Admin HELP | GETSTATE | VERSION on linux

    Hi, somehow I am getting zero output from weblogic.Admin command, is it redirected somewhere?
    #>java -cp $WH/server/lib/weblogic.jar weblogic.Admin -adminurl $AURL -username weblogic -password $WPWD VERSION
    #>java -cp $WH/server/lib/weblogic.jar weblogic.Admin -adminurl $AURL -username weblogic -password $WPWD GETSTATE
    #>
    #>java -cp $WH/server/lib/weblogic.jar weblogic.Admin -username weblogic -password $WPWD HELP
    #>
    Thanks.

    Hi,
    You need to Run the SetDomainEnv.sh/cmd from the Domain_Home/bin and then you can execute the below Commands and they will execute succesfully
    Eg:From Windows Environment Same applies in Linux Environmet as well
    C:\Oracle\Middleware\wlserver_10.3\server\lib>java -cp weblogic.jar weblogic.Admin -adminurl  t3://localhost:7001  -username weblogic -password weblogic1 VERSION
    WebLogic Server 10.3.5.0  Fri Apr 1 20:20:06 PDT 2011 1398638
    C:\Oracle\Middleware\wlserver_10.3\server\lib>java -cp weblogic.jar weblogic.Admin -adminurl  t3://localhost:7001  -username weblogic -password weblogic1 GETSTATE
    Current state of "AdminServer" : RUNNING
    C:\Oracle\Middleware\wlserver_10.3\server\lib>java -cp weblogic.jar weblogic.Admin -adminurl  t3://localhost:7001  -username weblogic -password weblogic1 HELP
    Usage: java [<SSL trust options>] weblogic.Admin
            [ [-url | -adminurl] [<protocol>://]<listen-address>:<port>]
            -username <username> [-password <password>]
            <COMMAND> <ARGUMENTS>
    Hope it helps

  • Problem with weblogic server help me...!

    HI,
    i have developed and application that was deployed successfully in Tomcat 5.0, but it was not with weblogic 8...
    plz help me... thanks in advance..

    In this case, I would call the OP up from asking a stupid question, with no details at all, rather than Soultech for responding to it in humorous manner.
    Hence why I included that link to "How to ask smart questions"
    "It doesn't work on Weblogic" will not get any helpful responses
    WHAT doesn't work?
    Is there an error message?
    What have you tried?
    The onus is on the OP to post a clear and concise description of his problem, along with error messages/stack traces, anything else that may help diagnose the issue.
    I believe Soultechs post was justified, if a little short.

  • Weblogic examples help?

    I think I have gotten around the javai.dll problem by starting weblogic
    server from the setenv.cmd and startWeblogic.cmd. Is this right?
    I am trying to get the example appps to work but tehy won't. It keeps
    telling me the classes are not found. I have set JAVA_HOME to c:\jdk1.3 and
    I am using v.5.1. I have gone through the "Setting Your Development
    Environment" helpfile and none of that has seemed to help me. I am running
    this on NT server sp6. Can anyone point me in the right direction?

    "Jesse E Tilly" <[email protected]> wrote in message
    news:[email protected]..
    >
    But, to your problem. Things I would like to know include which JRE's are
    installed and which one was the last installed. I'd also like to knowyour
    system PATH (another thing configurable in a script, and thus easily
    changed or debugged). Here are the things I'll be looking for: multiple
    JRE's in the path, JRE registry confusion.WL_HOME is set as c:\weblogic
    JAVA_HOME is set as c:\jdk1.3
    PATH is set as %WL_HOME%\bin;%JAVA_HOME%:PATH
    So after running setenv.cmd my PATH is
    c:\weblogic\bin;c:\jdk1.3\bin;c:\WINNT\system32;c:\WINNT;c:\programfiles\MTS
    ;e:\MSSQL7\bin
    e is my other drive
    You can try this for kicks. Uninstall WebLogic and your JDK/JREs (JDK's
    include JREs). Install JDK 1.2.2 and WebLogic. (Make no properties
    changes) Start WebLogic from the Start menu and open a browser. Go to
    http://localhost:7001/session (one of the example servlets already
    installed and registered). This should work. If not either my memory
    about the base install is off (unlikely) or you have a registry conflict
    (previous installation of WebLogic, JDK, etc). Search the machine for
    javai.dll and see what you find.I have never been able to find Javai.dll, before or after changing JAVA_HOME
    which is what starts the problem.
    When I run the localhost URL it works fine(thanks) but none of the examples
    do. What could I be setting incorrectly for the Development environment?
    Thanks for your help

  • EJB 2 into weblogic 8, help please.. how to invoke

    hello
    i have one ejb into weblogic, session ejb stateless.
    the ejb-jar file has this:
    <session>
    <description><![CDATA[MiCallejeroSession Session]]></description>
    <display-name>MiCallejeroSessionEJB</display-name>
    <ejb-name>MiCallejeroSessionEJB</ejb-name>
    <home>MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSessionHome</home>
    <remote>MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSession</remote>
    <ejb-class>MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSessionBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Container</transaction-type>
    </session>
    and into the weblogic-ejb.jar i have this:
    <weblogic-enterprise-bean>
    <ejb-name>MiCallejeroSessionEJB</ejb-name>
    <stateless-session-descriptor>
    <pool>
    <max-beans-in-free-pool>50</max-beans-in-free-pool>
    <initial-beans-in-free-pool>0</initial-beans-in-free-pool>
    </pool>
    <stateless-clustering></stateless-clustering>
    </stateless-session-descriptor>
    <transaction-descriptor>
    </transaction-descriptor>
    <jndi-name>Mi.MiCallejeroSessionEJB</jndi-name>
    </weblogic-enterprise-bean>
    when i want to referer to the ejb i think that i must to invoque the jndi name (Mi.MiCallejeroSessionEJB) but if i make this produces one error.
    for running imust to invoke using the:
    MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSessionHome. the home interface.
    wich is my error? can you help me?
    thanks

    You can invoke the SessionEJb without the JNDI name as
    MiCallejeroSessionHome sessionhome=null;
    InitialContext ctx = new InitialContext();
    sessionhome=(MiCallejeroSessionHome)ctx.lookup("java:comp/env/MiCallejeroSessionEJB");
    MiCallejeroSession session=null;
    session=sessionhome.create();
    I think we can invoke the EJBs without their JNDI names also.

  • WebLogic deployment help needed ..

    Hi
    Apologies, if this posting is inappropriate here, but couldn't find a
    better
    way ..
    We are developing J2EE based applications on the WebLogic 6.0 platform.
    Our
    developers are experts in Java and J2EE technologies.
    We will be deploying our applications into a production environment
    early March.
    At this point, we do not have expertise in deploying J2EE based
    applications
    into a 'real' Wl6.0 production environment with clustering, failover,
    load-balancing, virtual-hosting and all those other production type
    features.
    We can and will obviously learn all this over time, but our release
    dates are
    quite close ..
    We're looking for some very short-term consulting help and guidance in
    this
    area, from experts who have 'been there and done that'. Please contact
    me, if
    you have the right experience and are willing to help. We are located in
    Fremont, California.
    My email address: [email protected]
    thanks,
    -john

    Hi Srini,
    I also have similar kind of requirement. I have did all the things mentioned in the above Rittmanmead URL. All the things are working fine, but when Primary BI server is down, then I am not able to log in to the application (it is showing authentication failure). In log file of BI Server it is showing below error
    (Error Message From BI Security Service: WSM-06162 The policy referenced by URI "oracle/wss_username_token_service_policy" could not be retrieved as connection to Policy Manager cannot be established at "t3://01HW486222:7001,01HW486222:9704,01HW486222:9704" due to invalid configuration or inactive state.)
    where 01HW486222 is our secondary server.
    Same error is coming if I am trying to login with Primary server.
    Please let me know if anything else need to configure, other than above mention rittmanmead link.
    Thanks
    Anirban

  • WebLogic Integration help me?

    Hi,
    We are planning to use WLS as our new portal
    site platform. We already have an e-commerce
    server and want to integrate it with WL server.
    (The components of the e-commerce server are
    written in Perl and communicate to each other in
    their own protocol.) We want to use this server
    as our shopping engine in our site.
    I am just wondering how WL Ingegration can help me.
    Can any body give me some suggestions?
    What additional components that our original
    server should provide?
    Please let me know if I describe the scenario unclearly.
    Thanks.
    David Lin

    David,
    WebLogic Integration could provide a platform for easier integration of
    other applications and businesses for your portal. You would have to
    look at your Portal and Backend Application architecture. Chances are,
    it will not always be one type of architecture/technologies or
    applications. But you will need to share information between all of
    them.
    WLI provides several parts that help you do the end to end integration,
    all built using the J2EE based WebLogic Server Platform:
    1 - Business Process Management - this is a Process Engine that gives
    you flexiblity on how your components are used in your application. Your
    applications no longer need to be hardcoded at a source code level or
    script level. It provides the glue between your different components
    with a Visio like flowchart visual graphical interface. It also allows
    you to monitor your business process instances in a runtime environment.
    The business processes can be initiated either using Event Messages
    (normally XML, but don't have to be) or using a java API.
    2 - Application Integration - this is a integration framework built on
    the J2EE Connection Architecture standard, that allows you to integrate
    with backend applications at a business level (referred to as Enterprise
    Information Systems, or EIS in the spec).
    This framework allows you to integration with the EIS at a business
    level (using XML msgs). The framework accesses the EIS using a resource
    adapter (defined as part of the specification). Since the J2EE
    Connection Architecture is a java standard (part of J2EE 1.3 spec),
    resource adapters will be available for main EIS systems (applications
    like SAP, ...). The business level services can be called from a
    Business Process or they can be used to start a Business Process as
    well.
    3 - Data Integration - provides data translation (XML<->non-XML) and
    data transformation (XML<->XML). These can be called from a Business
    Process.
    4 - B2B Integration - allows you to extend your Business Processes
    across the internet with secure, reliable messaging to other companies
    you do business with. These can be suppliers, distributors, logistic
    companies ...
    Since your current components are based on Perl, there would be some
    initial work needed to access these from WLI. This could be done by
    writing a java wrapper (either as a java class or an EJB) that would
    call your perl scripts. This would allow you to call your perl scripts
    from Business Processes.
    The Business Process provides the flexiblity to change the process
    without having to change source code. The process engine also allows you
    to view active Business Process Instances, to see what point it is at in
    the Process. You could then use the WLI Application Integration to share
    information with your back end applications at a business level
    interface.
    There is a lot more information about each part of WebLogic Integration,
    so I would suggest you contact a local BEA person for more information.
    Online documentation on WLI is available at edocs.bea.com.
    Hope this information is helpful.
    Bill
    David Lin wrote:
    Hi,
    We are planning to use WLS as our new portal
    site platform. We already have an e-commerce
    server and want to integrate it with WL server.
    (The components of the e-commerce server are
    written in Perl and communicate to each other in
    their own protocol.) We want to use this server
    as our shopping engine in our site.
    I am just wondering how WL Ingegration can help me.
    Can any body give me some suggestions?
    What additional components that our original
    server should provide?
    Please let me know if I describe the scenario unclearly.
    Thanks.
    David Lin

  • Weblogic 10 - Help me configure Log4j ????

    I have deploy an Application and using Weblogic 10.3. I want using Log4j to control debug but i don't know configure it. Who was using it please help me.

    Re: How to use log4j into weblogic 10.3

  • JMSClientExceptions:055053 -WebLogic10 Cluster - Remote WebLogic JMS - Help

    All,
    We are using a foreign JMS provider from WeLogic 10 cluster to connect to the Remote WebLogic JMS Server. We are getting below error while posting the data to the queue. Any help , ideas as to why this is occuring please?
    / Error
    Error during connection/session creation:weblogic.jms.common.JMSException: [*JMSClientExceptions:055053*]Error creating connection to the server: java.rmi.UnmarshalException: failed to unmarshal class weblogic.jms.client.JMSConnection; nested exception is: java.io.StreamCorruptedException|portal
    Thanks a lot for your help.

    All
    The issue popped up gain. Below is the full stack trace. I confirmed that we are using the t3 URL to connect to remote JMS server (which is Weblogic 10 /JMS). Appreciate any insights help to resolve this issue.
    // Stack Trace
    weblogic.jms.common.JMSException: [JMSClientExceptions:055053]Error creating connection to the server: java.rmi.UnmarshalException:
    failed to unmarshal class weblogic.jms.client.JMSConnection; nested exception is:
    java.io.StreamCorruptedException
    at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:253)
    at weblogic.jms.client.JMSConnectionFactory.createConnectionInternal(JMSConnectionFactory.java:285)
    at weblogic.jms.client.JMSConnectionFactory.createQueueConnection(JMSConnectionFactory.java:165)
    at com.juniper.core.mdb.MessageSender.initSession(MessageSender.java:79)
    at com.juniper.core.mdb.MessageSender.<init>(MessageSender.java:64)
    at com.juniper.core.mdb.MDBHelper.processMessage(MDBHelper.java:98)
    at com.juniper.core.mdb.BaseMDB.onMessage(BaseMDB.java:35)
    at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466)
    at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371)
    at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4072)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:3964)
    at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:4490)
    at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:464)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Caused by: java.rmi.UnmarshalException: failed to unmarshal class weblogic.jms.client.JMSConnection; nested exception is:
    java.io.StreamCorruptedException
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:229)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:338)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:252)
    at weblogic.jms.frontend.FEConnectionFactoryImpl_1001_WLStub.connectionCreate(Unknown Source)
    at weblogic.jms.client.JMSConnectionFactory.setupJMSConnection(JMSConnectionFactory.java:244)
    ... 15 more
    Caused by: java.io.StreamCorruptedException
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1332)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:195)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.java:565)
    at weblogic.utils.io.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:191)
    at weblogic.rmi.internal.ObjectIO.readObject(ObjectIO.java:62)
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:227)
    ... 19 more
    Thanks
    Edited by: user3285437 on May 4, 2009 9:26 AM

  • Deploying EJB EARs to Weblogic -- need help with descriptor file?

    I posted this in a different area... maybe it will help to post here.
    Hi all...
    Can someone give me a hand with getting the descriptor correct? I find lots of information about the structure of the XML file, but not much on what needs to go in it.
    If I deploy with it i the default state I don't get that error... but I can't dig my beans out with JNDI.
    I also notice that the class is not the generated class I would expect (and see on other deployments) but is "com.java.proxy.PROXY"
    Here is the top of my bean...
    package f17.ejb.creditdata;
    import javax.ejb.SessionContext;
    import javax.ejb.Stateful;
    @Stateful(name = "creditScoreData", mappedName = "f17.ejb.creditData-creditScoreData")
    public class creditScoreDataBean implements creditScoreData {
    This is my weblogic-ejb-jar.xml as it stands:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <weblogic-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                      xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-ejb-jar http://www.bea.com/ns/weblogic/weblogic-ejb-jar/1.0/weblogic-ejb-jar.xsd"
                      xmlns="http://www.bea.com/ns/weblogic/weblogic-ejb-jar">
      <weblogic-enterprise-bean>
        <ejb-name>creditScoreDataBean</ejb-name>
        <stateful-session-descriptor>
          <business-interface-jndi-name-map>
            <business-remote>creditScoreData</business-remote>
            <jndi-name>creditScoreData</jndi-name>
          </business-interface-jndi-name-map>
        </stateful-session-descriptor>
        <ejb-reference-description>
          <ejb-ref-name>creditScoreData</ejb-ref-name>
          <jndi-name>f17.ejb.creditdata.creditScoreData</jndi-name>
        </ejb-reference-description>
        <jndi-name>f17.ejb.creditdata.creditScoreData</jndi-name>
      </weblogic-enterprise-bean>
    </weblogic-ejb-jar>

    I figure this out.. wanted to delete the thread.. but I can't find that option. lol

  • Weblogic hangs --- help!!!

    hi,
    We got the problem on Solaris box. Even few browsers are connecting to the
    WL5.1 testing there, no error message.
    It is emergent. Any suggestion ( TCP/IP setting on Solaris? or some
    configuration on WL side? ) will be greately appreciated.
    Thanks in advance!
    Louis
    2000/03/04

    Please post a thread dump of the server when it is hung (kill -3 <pid>).
    louis wrote:
    hi,
    We got the problem on Solaris box. Even few browsers are connecting to the
    WL5.1 testing there, no error message.
    It is emergent. Any suggestion ( TCP/IP setting on Solaris? or some
    configuration on WL side? ) will be greately appreciated.
    Thanks in advance!
    Louis
    2000/03/04

  • Weblogic MBeanMaker throws exception during MBean Jar generation in WLS 9.2

    Hi,
    I followed the steps provided in weblogic guide(http://edocs.bea.com/wls/docs92/dvspisec/atn.html), to develop a custom authenticator provider.But, when i use weblogic MBean maker to create MBean jar file(by executing the command java -DMJF=jarfile -Dfiles=filesdir weblogic.management.commo.WebLogicMBeanMaker), i seem to get the following exception.
    I get exactly the same exception when i ant SampleSecurityProviders91 code found in bea code share.Any help will be very much appreciated.
    all:
    [mkdir] Created dir: C:\Work\bea\SampleSecurityProviders91\build
    [mkdir] Created dir: C:\Work\bea\SampleSecurityProviders91\classes
    [copy] Copying 1 file to C:\Work\bea\SampleSecurityProviders91\build
    [copy] Copying 30 files to C:\Work\bea\SampleSecurityProviders91\build
    [java] Creating an MJF from the contents of directory C:\Work\bea\SampleSecurityProviders91/build...
    [java] Compiling the files...
    [java] Creating the list.
    [java] Doing the compile.
    [java] Note: Some input files use unchecked or unsafe operations.
    [java] Note: Recompile with -Xlint:unchecked for details.
    [java] WLMaker-SubProcess: : Usage: javaw [-options] class [args...]
    [java] WLMaker-SubProcess: : (to execute a class)
    [java] WLMaker-SubProcess: : or javaw [-options] -jar jarfile [args...]
    [java] WLMaker-SubProcess: : (to execute a jar file)
    [java] WLMaker-SubProcess: :
    [java] WLMaker-SubProcess: : where options include:
    [java] WLMaker-SubProcess: : -client to select the "client" VM
    [java] WLMaker-SubProcess: : -server to select the "server" VM
    [java] WLMaker-SubProcess: : -hotspot is a synonym for the "client" VM [deprecated]
    [java] WLMaker-SubProcess: : The default VM is client.
    [java] WLMaker-SubProcess: :
    [java] WLMaker-SubProcess: : -cp <class search path of directories and zip/jar files>
    [java] WLMaker-SubProcess: : -classpath <class search path of directories and zip/jar files>
    [java] WLMaker-SubProcess: : A ; separated list of directories, JAR archives,
    [java] WLMaker-SubProcess: : and ZIP archives to search for class files.
    [java] WLMaker-SubProcess: : -D<name>=<value>
    [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess:
    [java] WLMaker-SubProcess: : set a system property
    [java] BeanGen code generation failed
    [java] WLMaker-SubProcess: : -verbose[:class|gc|jni]
    [java] WLMaker-SubProcess: : enable verbose output
    [java] WLMaker-SubProcess: : -version print product version and exit
    [java] WLMaker-SubProcess: : -version:<value>
    [java] WLMaker-SubProcess: : require the specified version to run
    [java] WLMaker-SubProcess: : -showversion print product version and continue
    [java] WLMaker-SubProcess: : -jre-restrict-search | -jre-no-restrict-search
    [java] WLMaker-SubProcess: : include/exclude user private JREs in the version search
    [java] WLMaker-SubProcess: : -? -help print this help message
    [java] WLMaker-SubProcess: : -X print help on non-standard options
    [java] WLMaker-SubProcess: : -ea[:<packagename>...|:<classname>]
    [java] WLMaker-SubProcess: : -enableassertions[:<packagename>...|:<classname>]
    [java] WLMaker-SubProcess: : enable assertions
    [java] WLMaker-SubProcess: : -da[:<packagename>...|:<classname>]
    [java] WLMaker-SubProcess: : -disableassertions[:<packagename>...|:<classname>]
    [java] WLMaker-SubProcess: : disable assertions
    [java] WLMaker-SubProcess: : -esa | -enablesystemassertions
    [java] WLMaker-SubProcess: : enable system assertions
    [java] WLMaker-SubProcess: : -dsa | -disablesystemassertions
    [java] WLMaker-SubProcess: : disable system assertions
    [java] WLMaker-SubProcess: : -agentlib:<libname>[=<options>]
    [java] WLMaker-SubProcess: : load native agent library <libname>, e.g. -agentlib:hprof
    [java] WLMaker-SubProcess: : see also, -agentlib:jdwp=help and -agentlib:hprof=help
    [java] WLMaker-SubProcess: : -agentpath:<pathname>[=<options>]
    [java] WLMaker-SubProcess: : load native agent library by full pathname
    [java] WLMaker-SubProcess: : -javaagent:<jarpath>[=<options>]
    [java] WLMaker-SubProcess: : load Java programming language agent, see java.lang.instrument
    [java] WLMaker-SubProcess: : Stopped draining WLMaker-SubProcess:
    BUILD FAILED
    thanks,
    Josh

    The console does not list RealmAdapterAuthenticator I'm no WLS security expert but this suggests to me that the appropriate mbean implementation is missing from your servers mbeantypes. If you have the mbeans for a RealmAdapterAuthenticar you need to stick them under:
    /wlserver9.2/weblogic92/server/lib/mbeantypes/
    and restart the admin console.
    Hussein Badakhchani
    http://dev2dev.bea.com/blog/hoos
    London Middleware
    http://londonmiddleware.org/index.html
    Edited by hoos at 01/04/2007 8:49 AM

  • Custom JMX MBeans not showing JRMC under Weblogic 10.3.1

    Hi,
    I have created some custom JMX MBeans and registered them with the Runtime MBean Server as described in the documentation in a ApplicationLifecycleListener. Even though the ObjectInstances I get back from the MBeanServer indicate that the MBean is registered, when I connect to the server using JRockit Mission Control I only see the standard Weblogic MBeans and my custom MBeans do not show.
    Side note, when I deploy my application in Weblogic 9.2.3 my custom MBeans do show in JRMC? Weird!!!! Both servers are in development mode and both are using JRockit as the JVM.
    Regards,
    Mark P Ashworth

    You should be able define a remote connection to the WLS MBean server in the JRMC Console in the same fashion as in JConsole. You will however loose a lot of functionality, since (I assume) the JVM MBeans in the platform MBean server will not be avilable from the WLS specific MBean server. Pretty much the only remaining tabs of interest will be MBean browser and the trigger tabs. I guess you could also redefine the other tabs to show WLS specific attributes of interest.
    If you wish to monitor the JVM MBeans in the platform MBean server together with the WLS MBeans, then you need to make WLS use the platform MBean server instead of its own, just like the previous entry suggested.

Maybe you are looking for