Problem while implementing note 1034868 for MAM 3.0
Hi,
I have another problem implementing this note. As described in that note at point no. 3. I'm not able to activate text elements for "RALM_ME_EQUI_FULL_DOWNLOAD_SD".
I receive an error "Error during activation" --> Message no. EU837
I've looked for it but found nothing. Any idea?
Thank you!
Regards,
Florian
Hi Martin,
as we work with the standard SAP function module, we have restored first the last active version for the texts because there was a inconsistence, which we have found under the debugging and next the texts were activated successfully without this inconsistency.
I hope this helps a bit.
Regards,
Florian
Similar Messages
-
Problem while implementing Application Integration for Yahoo
Hi,
Im trying to communicate with yahoo server by using Application Integrator. For this I have uploaded the PAR file, created System Template, system Object and Alias also.
when come to User Mapping Im able to find my system that is myYahoo, but not able to enter user and password details. Those fields are inactive.
can any one help me with this?
Regards,
Ravi.Hi vasu,
Thank you very much. It really worked..
And i got one more problem. After user mapping, I have created an iview. And have given
URL template as
<System.protocol>://<System.server><System.uri>?<Authentication>
and URL template fraction for user mapping as
login=<MappedUser>&passwd=<MappedPassword>.
but Im getting runtime error as
Unable to process template '<System.protocol>://<System.server><System.uri>?<Authentication>', because 'protocol' is an invalid terminal property of the context 'System.'..
Can u plz guide me regarding this.
Thanks,
Ravi. -
Problem while implementing OSS note(1157904)
HI,
I am facing a problem while implementing OSS note 1157904.I am getting a message "no valid correction instruction".
I checked support pack levels .I checked source code also, it is not implemented.
Regards,
Pratap.You need to get back to SAP. Sometimes notes have incorrect information in them.
-
A problem while implementing a file to file senario
hi all :
There is some problem while implement a file to file senario. the file couldn't be sent or recieved.
and as I try to check Check the Sender File Adapter Status via
Runtime Workbench -> Component Monitoring -> Communication Channel Monitoring ,
It is found that Adapter Engine has error status with red light. Is it why the file couldn't be sent?
Could you please tell me how to make Adapter Engine available?
Thank you very much!!!Hi Sony
Error getting JPR configuration from SLD. Exception: No entity of class SAP_BusinessSystem for EC1.SystemHome.cnbjw3501 found
No access to get JPR configuration
Along with what experts suggested
What is the type of Business system is this. Standalone Java?
JPR can have problem if you have a business system thats not ABAP/Java type if this system is not having a SAP TS in landscape then create Java type.
Thanks
Gaurav -
MIGO-Capturing problem-Item is not available for Excise invoice,deselect th
Hi Gurus
while doing MIGO and part 1 posting am getting following error
MIGO-Capturing problem-Item is not available for Excise invoice,deselect the item
kindly help in this
Maruthihi
check all settings in J1ID
or
in po did u got ur all values correctly for excise cess and hcess
if yes then check ur vendor excise details in j1id
if above setting are done properly then check ur CIN setting in spro>log gen>tax on goods movement >india>account determination >specify excise acct as per transaction/specify G/L acct as per transaction
regards
kunal -
Problem while postings a MIRO for partial deliveries.
Hi,
We ar facing a problem
while posting a Miro for the Planned delivery costs for the import orders.
when we receive an item in partial consignment of the same order.
The system will allow for the first time to post the deliver cost, after this the MIGO and MIRO will be done and cycle will be completed.
For the second remaining consignment, the system is not allowing to post the Miro itself for the delivery costs.
IT is giving an error message."Quantity invoiced greater than goods receipt quantity."
We have disable GR based IV in PO
Provide me the solution.
Sunilhi,
i hope you have done the following steps
1) for import do MIRO first for the custom duties ( CVD, Edu Cess, S& H Cess on CVD) by selecting planned delivery cost.
2) J1IEX ( capture) referencing material document number of MIRO.
3) MIGO of the qty received.
4) J1IEX ( post).
follow the same steps for the next consignment.
what I see is that you have mentioned the full qty against the value in MIRO.
say ur PO qty is 10 and your partial shipment is of qty 5.
then in first MIRO entry enter qty as 5 not 10.
pl check your material documents of MIRO and MIGO and see what qty you have entered.
Thanks and regard
Rajesh -
There's an error while delivery note creation for STO order
There's an error while delivery note creation for STO order even stock available in unrestricted stock
Edited by: sharma aman on Nov 8, 2011 9:00 AMDear Sharma Aman,
Check whether the following link helps you.
Mesaage : while creation of delivery : An item with no delivery quantity .)
Please search in google with the error message and definitely you will get some older posts in SDN which is solved.
In that case , you need not wait for the solution as it is already available.
If the solution provided do not suit you, then post it in SDN so that it will be a learning for others.
Try to search in the forum or in google before posting further queries
Thanks & Regards,
Hegal K Charles -
Problem while implementing OSS note 1077403
Hi,
I am trying to implement a OSS note ( 1077403) using SNOTE transaction. When I download the note, the status of this note is u201CCan be implementedu201D. It creates few standard programs which are utility programs related to Unicode conversion. While implementing this note, I am facing the issue "Objects can only be created in SAP package" and some of the objects in the note are not created. The note status becomes u2018Incompletely Implementedu2019.
Can you please suggest what could be the issue?HI,
For more efficence direct link to note Note 1077403 - Cluster table check using SDBI_CLUSTER_CHECK
Have you a basis release version >= 6.20 ?
you can use transaction SNOTE to implement the version for Basis Release 6.20 and higher.
Rgds
Edited by: stéphane mouraux on Mar 1, 2010 6:31 PM -
Bins problem while creating goods receipt for production order.
Hi All,
I am facing a problem with selection of bins while creating goods receipt for production order in transaction MB31 and MBBE.
The order of filling bins is with respect to storage Unit not by document no, Please suggest something.
The scene is like that.
The bins are not filled in the proper sequence, the system checks for the empty bins and filled those later on.
like this,.
Typ StorageBin SC SS Stock Avail.st BUn GR Date DocumentNo Storage Unit Time
SLoc Batch Re IA PutawayS Pick qty Cert. No.
VN1 106A088 0 0 CS 01/25/2010 4739297 1005721391 10:00:59
100 0001020069 60 0
VN1 107B076 0 0 CS 01/25/2010 4739298 1005721392 10:01:01
100 0001020069 60 0
VN1 108B076 0 0 CS 01/25/2010 4739299 1005721393 10:01:04
100 0001020069 60 0
VN1 109A077 0 0 CS 01/25/2010 4739300 1005721394 10:01:06
100 0001020069 60 0
VN1 110B079 0 0 CS 01/25/2010 4739301 1005721395 10:01:08
100 0001020069 60 0
VN1 106B088 0 0 CS 01/25/2010 4739302 1005721403 10:01:11
100 0001020069 60 0
VN1 123B158 0 0 CS 01/25/2010 4739303 1005721389 10:01:13
100 0001020069 60 0
VN1 124A160 0 0 CS 01/25/2010 4739304 1005721390 10:01:15
100 0001020069 60 0
VN1 118A133 0 0 CS 01/25/2010 4739305 1005721396 10:01:17
100 0001020069 60 0
VN1 119A128 0 0 CS 01/25/2010 4739306 1005721397 10:01:20
100 0001020069 60 0
VN1 120B162 0 0 CS 01/25/2010 4739307 1005721398 10:01:22
100 0001020069 60 0
VN1 121B159 0 0 CS 01/25/2010 4739308 1005721399 10:01:24
100 0001020069 60 0
VN1 122B159 0 0 CS 01/25/2010 4739309 1005721400 10:01:26
100 0001020069 60 0
VN1 123B159 0 0 CS 01/25/2010 4739310 1005721401 10:01:29
100 0001020069 60 0
VN1 124B160 0 0 CS 01/25/2010 4739311 1005721402 10:01:31
100 0001020069 60 0
Thnks you,
Anmol.
Edited by: anmol112 on Jan 25, 2010 10:34 PMno replay, clossing threat.
-
Problems while defining EJB relations for container managed bean
I am having a problem while trying to create my relations for my container managed bean.
My Database schema is:
Order table
order_id
message
WorkItem table:
order_id
item_id
message
I have defined my OrderBean to have:
@LocalMethod()
@CmrField
public abstract Collection getCmWorkItemsCmr();
@LocalMethod()
public abstract void setCmWorkItemsCmr(Collection workItems);
I am not sure how to define my relation for my class:
@Relation(cmrField = "cmWorkItemsCmr", multiplicity = Relation.Multiplicity.MANY, name = "Orders-CmWorkItems")
An order can have many workitems. I am not sure how to fill in the rest for foreign Key jointable and such.
Any help pointing me in the right direction would be helpful.
Thanks,
IanI am having a problem while trying to create my relations for my container managed bean.
My Database schema is:
Order table
order_id
message
WorkItem table:
order_id
item_id
message
I have defined my OrderBean to have:
@LocalMethod()
@CmrField
public abstract Collection getCmWorkItemsCmr();
@LocalMethod()
public abstract void setCmWorkItemsCmr(Collection workItems);
I am not sure how to define my relation for my class:
@Relation(cmrField = "cmWorkItemsCmr", multiplicity = Relation.Multiplicity.MANY, name = "Orders-CmWorkItems")
An order can have many workitems. I am not sure how to fill in the rest for foreign Key jointable and such.
Any help pointing me in the right direction would be helpful.
Thanks,
Ian -
WebDynpro error while implementing business package for hr administrator
Hi,
I am implementing Business package for Hr administrative services in EP 7.0. When I click the iview Start processess I get the following dynpro error. Please do help me as to how should I trace back the problem. com.sap.tc.webdynpro.services.exceptions.TypeNotFoundException: type com.sap.pa.asr.procst.model.procst.types.Asr_Withoutee could not be loaded: com.sap.dictionary.runtime.DdException: Type com.sap.pa.asr.procst.model.procst.types.Asr_Withoutee does not exist
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:250)
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getDataType(DataTypeBroker.java:213)
at com.sap.tc.webdynpro.progmodel.context.DataAttributeInfo.init(DataAttributeInfo.java:318)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initUnmappedAttributes(NodeInfo.java:670)
at com.sap.tc.webdynpro.progmodel.context.DataNodeInfo.doInit(DataNodeInfo.java:233)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:654)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)
at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)
at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:932)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.createComponent(ClientComponent.java:176)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:142)
at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:134)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$ComponentUsageManager.createBLCComponentUsage(FPMComponent.java:840)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:1020)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPM.attachComponentToUsage(FPMComponent.java:979)
at com.sap.pcuigp.xssfpm.wd.FPMComponent$FPMProxy.attachComponentToUsage(FPMComponent.java:1230)
at com.sap.pa.asr.procst.vac.vinit.VInitComp.onInit(VInitComp.java:200)
at com.sap.pa.asr.procst.vac.vinit.wdp.InternalVInitComp.onInit(InternalVInitComp.java:153)
at com.sap.pa.asr.procst.vac.vinit.VInitCompInterface.onInit(VInitCompInterface.java:161)
at com.sap.pa.asr.procst.vac.vinit.wdp.InternalVInitCompInterface.onInit(InternalVInitCompInterface.java:144)
at com.sap.pa.asr.procst.vac.vinit.wdp.InternalVInitCompInterface$External.onInit(InternalVInitCompInterface.java:220)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:614)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:474)
at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:218)
at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:357)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:670)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:267)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:726)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:662)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:808)
at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:227)
at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1240)
at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:340)
at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:538)
at com.sap.portal.pb.PageBuilder.wdDoInit(PageBuilder.java:177)
at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoInit(InternalPageBuilder.java:150)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:357)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:670)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:267)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:706)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:660)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:228)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.dictionary.runtime.DdException: Type com.sap.pa.asr.procst.model.procst.types.Asr_Withoutee does not exist
at com.sap.dictionary.types.mdi.util.ProviderUtil.createAbapTypeXmlMap(ProviderUtil.java:400)
at com.sap.dictionary.runtime.mdi.DataProvider.createSimpleTypeFromAbapType(DataProvider.java:586)
at com.sap.dictionary.runtime.mdi.DataProvider.getDataType(DataProvider.java:286)
at com.sap.dictionary.runtime.DdDictionary.getDataType(DdDictionary.java:95)
at com.sap.dictionary.runtime.DdBroker.getDataType(DdBroker.java:164)
at com.sap.dictionary.runtime.DdBroker.getSimpleType(DdBroker.java:170)
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeBroker.getSimpleType(DataTypeBroker.java:242)
... 75 more
Please do let me know if anybody could help.
Regards,
RameshMaybe the user used for RFC connection either does not exist or is not granted access to the model data.
Best Regards,
Martin -
Hi,
I have migrated my Sharepoint from 2010 to 2013.I am able to get the data at the first time of refresh when I click on refresh for the second time I am getting the empty the sheet.
below find the flow of refresh
First Refresh
On Click of refresh open the workbook with excel services and return the session id.
Using that session I am invoking RefrehAsync method of excel services
After refresh completed I am setting the calculation of workbook as automatic(to calculate the formulas) using the same session id
After setting the calculation as Automatic I am setting the calculation type as full(recalculate) using the same session id.
Now I am able to see the data
Second Refresh
After clicking on refresh instead of opening the workbook I am using the session id(already opened workbook) and setting the calculation type as manual
I am following the same process from refresh(RefreshAsync) as I have followed in first refresh.
This time my formulas are not getting calculated because of that I am not able to see the data.
Could you please let me know that am I missing anything here?
Is this know issue in Sharepoint2013 excel services as same code is working fine with Sharepoint2010.
If I close the workbook(session id null) and opens(new session id) for all the refreshes it is working and I am able to see the data.
Thanks,
Meenakshi Nagpal
N.MeenakshiI am able to see the data for the second refresh if I change the data source.If I use the same data source which is used in the first refresh I am not getting the data.Excel services will contact the cubes and calculate the formulas in my workbook.
Could you please let me know what could be the problem at second refresh while contacting the same data source with same session id?
Please help me asap.
Thanks,
Meenakshi Nagpal
N.Meenakshi -
Problem while generating Update progam for a Change Document Object
Hi,
I'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced
"Function module name is reserved for SAP"
Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.
My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?
Further (I decided not to open a new thread) - generated Update program uses
CALL FUNCTION 'xxxxx' IN UPDATE TASK
for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.
Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?
Well, to be precise, I think I have to give a sample:
1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).
2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).
3. I call the CDO FM.
4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).
Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.
In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.
Any hints are wellcome.
Thanks in advance.
Ivaylo Mutafchiev
Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM"IN UPDATE TASK" resolved by myself. The one should explicitly call 'COMMIT WORK' from Z-program after CALL FUNCTION '...' IN UPDATE TASK in order to get changes in the CDHDR/CDPOS commited. The key in this issue for me was to check the documentation of CALL FUNCTION :-).
Regards,
Ivo -
Price problem while making budget PO for a Project
Dear Friends,
I wanted help from all you guys, this is related to budgetting in PS, the PS consultant prepares PR for a material wrt to a project , he has set a budget of say Rs 10000 to procure this material, now I use this PR to make a PO , & the net price of the PO is say 10000, it has a tax code carrying cenvat & say 4% CST, now the problem is when i try to save the PO , it gives me an error message saying that the budget has exceeded, that means though the net price is within the budget (Rs 10000), its also considering the tax part ,ideally it shouldnt have happened.
Kindly guide me how do I resolve this issue .
Regards,
DGNPlease check this link for maintaining budget for project:
/message/5616626#5616626 [original link is broken]
OR
if you are not allowed to change buget, you can tell your PS consultant to maintain the budget for this project according
to your requirement.
Edited by: Afshad Irani on Jun 4, 2010 3:35 PM -
Facing problem while implementing JMS in Weblogic 8.1
Hi all,
I am very new to JMS.
I am trying to implement JMS in Weblogic.
I have cofigured the server properly but while i am executing my receiver class i am getting the following error:
javax.naming.NameNotFoundException: Unable to resolve 'MyJMSQueue1' Resolved [Root exception is javax.naming.NameNotFoundException: Unable to resolve 'MyJMSQueue1' Resolved ]; remaining name 'MyJMSQueue1'
Waiting for messages....
and my receiver program is as follows:
import java.util.Hashtable;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.jms.Queue;
import javax.jms.QueueConnection;
import javax.jms.QueueConnectionFactory;
import javax.jms.QueueReceiver;
import javax.jms.QueueSession;
import javax.jms.TextMessage;
import javax.naming.Context;
import javax.naming.InitialContext;
public class SampleQueueReceiver implements MessageListener
private boolean done = false;
private Context ctx = null;
private QueueConnectionFactory connectionFactory = null;
private QueueConnection connection = null;
private QueueSession session = null;
private QueueReceiver receiver = null;
private Queue queue = null;
private Hashtable ht = null;
public void init()
try
ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
ctx = new InitialContext(ht);
connectionFactory =(QueueConnectionFactory)ctx.lookup("weblogic.jms.ConnectionFactory");
connection = connectionFactory.createQueueConnection();
session = connection.createQueueSession(false,javax.jms.QueueSession.AUTO_ACKNOWLEDGE);
queue = (Queue) ctx.lookup("MyJMSQueue1");
receiver = session.createReceiver(queue);
receiver.setMessageListener(this);
connection.start();
catch ( Exception e )
System.out.println(e);
public void close() throws JMSException
try
receiver.close();
session.close();
connection.close();
catch ( Exception e )
System.out.println(e);
public void onMessage(Message message)
if ( message instanceof TextMessage )
try
TextMessage textMessage = (TextMessage) message;
String msg = textMessage.getText();
System.out.println("Received message: " + msg);
if ( msg.equals("exit") )
synchronized (this)
done = true;
this.notifyAll();
catch ( Exception e )
System.out.println(e);
public static void main(String[] args)
try
SampleQueueReceiver sqr = new SampleQueueReceiver();
sqr.init();
System.out.println("Waiting for messages....");
synchronized (sqr)
while ( !sqr.done )
try
sqr.wait();
catch ( InterruptedException ie )
sqr.close();
catch ( Exception e )
System.out.println(e);
I have already configured MyJMSQueue in the server.....
Someone please guide me...
Thanks in Advance........
GoutamLooks like configuration prob.
Have you tried jms examples of weblogic ? you may need to re-configure your server setup, to create example server.
Maybe you are looking for
-
Can't install montain lion, mavericks or yosemite on my mac pro early 2008 8core
I tried installing mountain lion mavericks and yosemite on my mac pro early 2008 I upgraded the video card to see if that was the problems and still the same the problem is that after installing even during install the mouse moves super slow and the
-
Upgrade my iPhone 4 from iOS 5.0.1 to 7.1.2?
Someone help me on how to upgrade my iPhone 4 from iOS 5.0.1 to 7.1.2 pls...
-
Preloading in Flash CS3/Actionscript 3
I am wondering if anyone know why this is happening: I built a preloader based on code from the net. Once the preloader plays through (in simulated download) it opens to the first "stop();" in the MC timeline instead of starting at frame 1. Here is t
-
HT1338 My MacBook Pro OS 10.6.8 won't update after its been restarted?
I tried to use software update on my laptop and it immediately told me to restart it so I did except it didn't update anything. I tried this two more times and still nothing. How can I fix this? Thanks
-
Problem updating JTree via RMI
I'm programming an Instant Messenger application in Java using RMI extensively. Much like most IM applications, my IM clients display a "buddy list" window upon successful authentication with the server. I have reached a huge stumbling block at this